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
  "_pango_xft_get_context", referenced from:
      __GXPDraw_NewWindow in gxcdraw.o
  "_XftDrawCreate", referenced from:
      __GXPDraw_NewWindow in gxcdraw.o
  "_pango_layout_new", referenced from:
      __GXPDraw_NewWindow in gxcdraw.o
  "_XftDrawDestroy", referenced from:
      __GXPDraw_DestroyWindow in gxcdraw.o
  "_pango_layout_set_font_description", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      __GXPDraw_LayoutInit in gxcdraw.o
  "_pango_layout_set_text", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      __GXPDraw_LayoutInit in gxcdraw.o
  "_pango_layout_get_pixel_extents", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      __GXPDraw_LayoutXYToIndex in gxcdraw.o
      __GXPDraw_LayoutExtents in gxcdraw.o
  "_XftColorAllocValue", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      __GXPDraw_LayoutDraw in gxcdraw.o
  "_XftDrawSetClipRectangles", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      __GXPDraw_LayoutDraw in gxcdraw.o
  "_pango_layout_get_iter", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      _my_xft_render_layout in gxcdraw.o
  "_pango_layout_iter_get_run", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      _my_xft_render_layout in gxcdraw.o
  "_pango_font_get_metrics", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      __GXPDraw_FontMetrics in gxcdraw.o
  "_pango_font_metrics_get_ascent", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      __GXPDraw_FontMetrics in gxcdraw.o
  "_pango_font_metrics_get_descent", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      __GXPDraw_FontMetrics in gxcdraw.o
  "_pango_font_metrics_unref", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      __GXPDraw_FontMetrics in gxcdraw.o
  "_pango_layout_iter_free", referenced from:
      __GXPDraw_DoText8 in gxcdraw.o
      _my_xft_render_layout in gxcdraw.o
  "_pango_font_description_new", referenced from:
      __GXPDraw_configfont in gxcdraw.o
  "_pango_font_description_set_family", referenced from:
      __GXPDraw_configfont in gxcdraw.o
  "_pango_font_description_set_style", referenced from:
      __GXPDraw_configfont in gxcdraw.o
  "_pango_font_description_set_variant", referenced from:
      __GXPDraw_configfont in gxcdraw.o
  "_pango_font_description_set_weight", referenced from:
      __GXPDraw_configfont in gxcdraw.o
  "_pango_font_description_set_stretch", referenced from:
      __GXPDraw_configfont in gxcdraw.o
  "_pango_font_description_set_absolute_size", referenced from:
      __GXPDraw_configfont in gxcdraw.o
  "_pango_layout_iter_get_run_extents", referenced from:
      _my_xft_render_layout in gxcdraw.o
  "_pango_xft_render", referenced from:
      _my_xft_render_layout in gxcdraw.o
  "_pango_layout_iter_next_run", referenced from:
      _my_xft_render_layout in gxcdraw.o
  "_pango_font_map_load_font", referenced from:
      __GXPDraw_FontMetrics in gxcdraw.o
  "_pango_layout_index_to_pos", referenced from:
      __GXPDraw_LayoutIndexToPos in gxcdraw.o
  "_pango_layout_xy_to_index", referenced from:
      __GXPDraw_LayoutXYToIndex in gxcdraw.o
  "_pango_layout_set_width", referenced from:
      __GXPDraw_LayoutSetWidth in gxcdraw.o
  "_pango_layout_get_line_count", referenced from:
      __GXPDraw_LayoutLineCount in gxcdraw.o
  "_pango_layout_get_line", referenced from:
      __GXPDraw_LayoutLineStart in gxcdraw.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [../libgdraw.la] Error 1
make: *** [libgdraw] Error 2
### execution of /tmp/fink.0nh6E failed, exit code 2

 - 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
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to