On Friday, May 4, 2012 6:36 PM, Alexander Hansen wrote:
>
> On 5/4/12 10:31 AM, Klaus Klausness wrote:
> >
> > On Tue, 01 May 2012 10:43:54 -0700, Alexander Hansen wrote:
> >>
> >> On 5/1/12 9:39 AM, Klaus Klausness wrote:
> >> > Hi,
> >> >
> >> > I'm getting the following error trying to update fontforge (on OS X
> > 10.6.8):
> >> >
> >> > [...]
> >> > gcc -Os -I/sw/include/libxml2 -I/sw/lib/fontconfig2/include
> >> > -I/sw/lib/xft2/include -I/sw/include -I/sw/include/cairo
> >> > -I/sw/include/freetype2/ -I/sw/include/freetype2 -I/sw/include
> >> > -I/sw/include/libxml2/ -I/sw/include/cairo -I/sw/include/pango-1.0
> >> > -I/sw/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include
> >> > -I/sw/include/freetype2 -I/usr/X11/include -I/usr/X11R6/include
> >> > -I/sw/include/pango-1.0 -I/sw/include/cairo -I/sw/include/glib-2.0
> >> > -I/sw/lib/glib-2.0/include -I/sw/include/freetype2 -I/sw/include
> >> > -I/usr/X11R6/include -I/usr/X11/include -I/sw/lib/fontconfig2/include
> >> > -MD -I/sw/include/python2.7 -I../inc -I../inc -I. -I.
> >> > -Wmissing-prototypes -Wunused -Wimplicit -Wreturn-type -Wparentheses
> >> > -Wformat -Wchar-subscripts -DHAVE_CONFIG_H
> >> > '-DSHAREDIR="/sw/share/fontforge"' -DLIBDIR='"/sw/lib/fontforge"'
> >> > -I/sw/lib/fontconfig2/include -MD -I/sw/include/python2.7
> >> > '-DPREFIX="/sw"' -c cvexportdlg.c
> >> > cvexportdlg.c:251: error: initializer element is not constant
> >> > cvexportdlg.c:251: error: (near initialization for
> > 'formats[7].userdata')
> >> > cvexportdlg.c:253: error: initializer element is not constant
> >> > cvexportdlg.c:253: error: (near initialization for
> > 'formats[8].userdata')
> >> > make[1]: *** [cvexportdlg.o] Error 1
> >> > make[1]: *** Waiting for unfinished jobs....
> >> > make: *** [fontforge] Error 2
> >> > ### execution of /tmp/fink.2KjHO failed, exit code 2
> >> >
> >> > system information:
> >> > Package manager version: 0.32.6
> >> > Distribution version: selfupdate-rsync Tue May 1 16:18:48 2012,
> > 10.6, i386
> >> > Trees: local/main stable/main stable/crypto
> >> > Xcode: 4.1
> >> > Max. Fink build jobs: 2
> >> >
> >> > Any ideas?
> >> >
> >> > Thanks.
> >> >
> >> >
> >>
> >> The package appears not to build with llvm-gcc, which is what Fink uses
> >> on 10.6/Xcode 4.1. I was able to reproduce the issue on 10.7 by telling
> >> the package to use llvm-gcc instead of the default compiler there, which
> >> is clang. Daniel may need to set things up such that the package uses
> >> clang for 10.6/Xcode 4.1, or to come up with another fix.
> >>
> >> Klaus: you can edit
> >> /sw/fink/10.4/stable/main/finkinfo/graphics/fontforge.info and add the
> >> following line:
> >>
> >> SetCC: clang
> >>
> >> You can add this below the line that starts with "SetLDFLAGS:"
> >> --
> >> Alexander Hansen, Ph.D.
> >> Fink User Liaison
> >> http://finkakh.wordpress.com/2012/02/21/got-job/
> >
> > Thanks for the suggestion, Alexander. Unfortunately, clang fails with a
> > link error:
> >
> > Undefined symbols for architecture x86_64:
> > "_pango_xft_get_font_map", referenced from:
> > __GXPDraw_NewWindow in gxcdraw.o
>
>
> ...
>
> >
> > - Klaus
> >
> >
> >
> >
>
> Could you please post the line of output from just before this error?
>
>
> --
> Alexander Hansen, Ph.D.
> Fink User Liaison
> http://finkakh.wordpress.com/2012/02/21/got-job/
>
Here's the last few lines before the ones I sent (back to the last clang call):
clang -dynamiclib -o ../.libs/libgdraw.4.0.10.dylib .libs/choosericons.o
.libs/ctlvalues.o .libs/drawboxborder.o .libs/gaskdlg.o .libs/gbuttons.o
.libs/gcolor.o .libs/gchardlg.o .libs/gcontainer.o .libs/gdraw.o
.libs/gdrawbuildchars.o .libs/gdrawerror.o .libs/gdrawtxt.o
.libs/gdrawtxtinit.o .libs/gfilechooser.o .libs/gfiledlg.o .libs/ggadgets.o
.libs/ggroupbox.o .libs/gimageclut.o .libs/gimagecvt.o .libs/gimagepsdraw.o
.libs/gimagewriteeps.o .libs/gdrawgimage.o .libs/gimagexdraw.o .libs/gkeysym.o
.libs/glist.o .libs/gmenu.o .libs/gprogress.o .libs/gpsdraw.o
.libs/gpstxtinit.o .libs/gradio.o .libs/gresource.o .libs/gresourceimage.o
.libs/gresedit.o .libs/gsavefiledlg.o .libs/gscrollbar.o .libs/gtabset.o
.libs/gtextfield.o .libs/gtextinfo.o .libs/gwidgets.o .libs/gxdraw.o
.libs/gxcdraw.o .libs/ghvbox.o .libs/gmatrixedit.o .libs/gdrawable.o
.libs/gspacer.o .libs/xkeysyms_unicode.o ../.libs/libgunicode.dylib
-L/sw/lib/fontconfig2/lib -L/sw/lib/xft2/lib
-L/sw/lib/python2.7/config -L/sw/lib -L/usr/X11R6/lib ../.libs/libgutils.dylib
/sw/lib/fontforge/libgunicode.dylib -lpython2.7 -lpthread -lpng12 -lz -lSM
-lICE /sw/lib/pango-ft219/lib/libpangoxft-1.0.dylib
/sw/lib/pango-ft219/lib/libpangoft2-1.0.dylib
/sw/lib/pango-ft219/lib/libpangox-1.0.dylib
/sw/lib/fontconfig2/lib/libfontconfig.dylib
/sw/lib/freetype219/lib/libfreetype.dylib
/sw/lib/pango-ft219/lib/libpango-1.0.dylib /sw/lib/libgobject-2.0.dylib
/sw/lib/libgmodule-2.0.dylib /sw/lib/libglib-2.0.dylib /sw/lib/libintl.dylib
/sw/lib/xft2/lib/libXft.dylib -lXi -lX11 -lxkbui -Wl,-dead_strip_dylibs
-Wl,/System/Library/Frameworks/CoreServices.framework/CoreServices
-Wl,/System/Library/Frameworks/Carbon.framework/Carbon -install_name
/sw/lib/fontforge/libgdraw.4.dylib -compatibility_version 5 -current_version
5.10 -Wl,-single_module
ld: warning: ignoring file /sw/lib/fontforge/libgunicode.dylib, file was built
for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /sw/lib/python2.7/config/libpython2.7.dylib, file
was built for unsupported file format which is not the architecture being
linked (x86_64)
ld: warning: ignoring file /sw/lib/pango-ft219/lib/libpangoxft-1.0.dylib, file
was built for unsupported file format which is not the architecture being
linked (x86_64)
ld: warning: ignoring file /sw/lib/pango-ft219/lib/libpangoft2-1.0.dylib, file
was built for unsupported file format which is not the architecture being
linked (x86_64)
ld: warning: ignoring file /sw/lib/pango-ft219/lib/libpangox-1.0.dylib, file
was built for unsupported file format which is not the architecture being
linked (x86_64)
ld: warning: ignoring file /sw/lib/fontconfig2/lib/libfontconfig.dylib, file
was built for unsupported file format which is not the architecture being
linked (x86_64)
ld: warning: ignoring file /sw/lib/freetype219/lib/libfreetype.dylib, file was
built for unsupported file format which is not the architecture being linked
(x86_64)
ld: warning: ignoring file /sw/lib/pango-ft219/lib/libpango-1.0.dylib, file was
built for unsupported file format which is not the architecture being linked
(x86_64)
ld: warning: ignoring file /sw/lib/libgobject-2.0.dylib, file was built for
unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /sw/lib/libgmodule-2.0.dylib, file was built for
unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /sw/lib/libglib-2.0.dylib, file was built for
unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /sw/lib/libintl.dylib, file was built for
unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /sw/lib/xft2/lib/libXft.dylib, file was built for
unsupported file format which is not the architecture being linked (x86_64)
Thanks.
-Klaus
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users