Opened 12 years ago

Closed 12 years ago

#35379 closed defect (fixed)

fontforge @20110222 compile fails on Xcode 4.4 (OS X 10.8)

Reported by: machsna (J. ‘mach’ Wust) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: mountainlion Cc: rockinamadeus@…, devin.plompier@…, DanielO (Daniel O'Connor), ja_macports@…, nerdling (Jeremy Lavergne), msandersen@…, rlhamil, dc@…
Port: fontforge

Description

I guess this might be pretty much the same error as Ticket #33284, an absolute path that no longer exists in the new Xcode version.

:info:build giomime.c:68:10: fatal error: '/Applications/Xcode.app/Contents/Developer/Headers/FlatCarbon/Files.h' file not found
:info:build #include </Applications/Xcode.app/Contents/Developer/Headers/FlatCarbon/Files.h>
:info:build          ^

This issue (if I am not mistaken) has been reported to the fontforge developers: https://sourceforge.net/mailarchive/message.php?msg_id=29601573

Attachments (2)

Portfile-fontforge.diff (1.2 KB) - added by nerdling (Jeremy Lavergne) 12 years ago.
use 10.7 SDK for Carbon
Portfile-fontforge.2.diff (1.6 KB) - added by nerdling (Jeremy Lavergne) 12 years ago.
use 10.7 SDK and find/replace AnchorPoint

Download all attachments as: .zip

Change History (21)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mountainlion added

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rockinamadeus@… added

Has duplicate #35411.

comment:3 Changed 12 years ago by devin.plompier@…

Cc: devin.plompier@… added

Cc Me!

comment:4 Changed 12 years ago by DanielO (Daniel O'Connor)

Cc: darius@… added

Cc Me!

comment:5 Changed 12 years ago by ja_macports@…

Cc: ja_macports@… added

Cc Me!

comment:6 Changed 12 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Cc Me!

comment:7 Changed 12 years ago by nerdling (Jeremy Lavergne)

It looks like we may be able to simply change the post-patch phase to accomodate using the 10.7 SDK on 10.8.

comment:8 Changed 12 years ago by nerdling (Jeremy Lavergne)

By using the 10.7 SDK I get past the original error and down to this one:

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/SFNTLayoutTypes.h:1791:41: error: typedef redefinition with different types ('struct AnchorPoint' vs 'struct anchorpoint')
typedef struct AnchorPoint              AnchorPoint;
                                        ^
./splinefont.h:512:3: note: previous definition is here
} AnchorPoint;
  ^

Changed 12 years ago by nerdling (Jeremy Lavergne)

Attachment: Portfile-fontforge.diff added

use 10.7 SDK for Carbon

Changed 12 years ago by nerdling (Jeremy Lavergne)

Attachment: Portfile-fontforge.2.diff added

use 10.7 SDK and find/replace AnchorPoint

comment:9 Changed 12 years ago by nerdling (Jeremy Lavergne)

I have a successful build with the latest suggested patch. Anyone else have success or failure with it?

comment:10 Changed 12 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: newclosed

Committed in r96396.

comment:11 Changed 12 years ago by jmroot (Joshua Root)

Using an older SDK isn't ideal; it would be better to use framework includes instead of FlatCarbon.

comment:12 in reply to:  9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to snc@…:

I have a successful build with the latest suggested patch. Anyone else have success or failure with it?

Wouldn't Xcode 4.4 on 10.7 still fail the same way? Shouldn't the test be for ${xcodeversion} and not ${os.major}?

comment:13 Changed 12 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: closedreopened

Probably not a bad idea. Do you know if it's xcode 4.4 that should serve at the first version having issues?

comment:14 Changed 12 years ago by msandersen@…

fontforge fails to build for me as well on 10.8, I have no idea from the above on how to fix it. Hoping there will be a fix soon.

comment:15 Changed 12 years ago by msandersen@…

Cc: msandersen@… added

Cc Me!

comment:16 in reply to:  14 Changed 12 years ago by truthbk@…

Replying to msandersen@…:

fontforge fails to build for me as well on 10.8, I have no idea from the above on how to fix it. Hoping there will be a fix soon.

Make sure you set developer_dir appropriately in macports.conf (typically /opt/local/etc/macports/macports.conf):

for instance... developer_dir /Applications/Xcode.app/Contents/Developer

comment:17 Changed 12 years ago by rlhamil

Cc: rlhamil@… added

Cc Me!

comment:18 Changed 12 years ago by dc@…

Cc: dc@… added

Cc Me!

comment:19 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.