Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#28083 closed defect (fixed)

emacs @23.2_4 +x11 fails to build

Reported by: mgranvik@… Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: cooljeanius (Eric Gallager)
Port: emacs

Description

Leopard 10.5.8 XCode 3.1.4

This is the tail of the build log (full log attached):

:info:build /usr/bin/gcc-4.0  -prebind -Xlinker -headerpad -Xlinker
 690 -L/opt/local/lib -arch i386  -L/opt/local/lib -o temacs 
pre-crt0.o dispnew.o frame.o scroll.o xdisp.o menu.o xmenu.o 
window.o charset.o coding.o category.o ccl.o character.o chartab.o 
cm.o term.o terminal.o xfaces.o xterm.o xfns.o xselect.o xrdb.o 
fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o  
dbusbind.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o 
filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o 
cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o 
alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o 
font.o print.o lread.o syntax.o unexmacosx.o bytecode.o process.o 
callproc.o region-cache.o sound.o atimer.o doprnt.o strftime.o 
intervals.o textprop.o composite.o md5.o    xfont.o ftfont.o 
xftfont.o ftxfont.o terminfo.o lastfile.o  widget.o    ../lwlib
/liblw.a -L/opt/local/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -ltiff 
-ljpeg -lpng -lz -lm -lgif -lXpm -lX11 -lXrender -L/opt/local/lib 
-lXft  -L/opt/local/lib -lrsvg-2 -lgio-2.0 -lgdk_pixbuf-2.0 -lm 
-lcairo -lgobject-2.0 -lgmodule-2.0 -lpng14 -lgthread-2.0 
-lglib-2.0 -lintl -L/opt/local/lib -ldbus-1 -lpthread -lncurses    
:info:build Undefined symbols:
:info:build   "_FcPatternGetMatrix", referenced from:
:info:build       _xftfont_open in xftfont.o
:info:build   "_FT_Get_Char_Index", referenced from:
:info:build       _ftfont_has_char in ftfont.o
:info:build       _ftfont_encode_char in ftfont.o
:info:build   "_FcFontMatch", referenced from:
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_match in ftfont.o
:info:build   "_FcLangSetAdd", referenced from:
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build   "_FT_New_Size", referenced from:
:info:build       _ftfont_open in ftfont.o
:info:build   "_FcPatternDestroy", referenced from:
:info:build       _apply_xft_settings in xsettings.o
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_match in ftfont.o
:info:build       _ftfont_match in ftfont.o
:info:build       _ftfont_list_family in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build   "_FcLangSetCreate", referenced from:
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build   "_FT_Set_Pixel_Sizes", referenced from:
:info:build       _ftfont_open in ftfont.o
:info:build   "_FcObjectSetAdd", referenced from:
:info:build       _ftfont_list in ftfont.o
:info:build   "_FcCharSetCopy", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build   "_FcLangSetDestroy", referenced from:
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build   "_FcPatternGetDouble", referenced from:
:info:build       _apply_xft_settings in xsettings.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build   "_FcPatternGetString", referenced from:
:info:build       _get_adstyle_property in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list_family in ftfont.o
:info:build       _ftfont_font_format in ftfont.o
:info:build   "_FcCharSetAddChar", referenced from:
:info:build       _ftfont_get_charset in ftfont.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build   "_FT_Load_Char", referenced from:
:info:build       _ftfont_open in ftfont.o
:info:build   "_FcObjectSetDestroy", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list_family in ftfont.o
:info:build   "_FcInit", referenced from:
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_match in ftfont.o
:info:build       _ftfont_list_family in ftfont.o
:info:build   "_FT_Get_BDF_Property", referenced from:
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build   "_FcFontSetDestroy", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list_family in ftfont.o
:info:build   "_FcCharSetCreate", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build       _ftfont_get_charset in ftfont.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build   "_FcPatternAddBool", referenced from:
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build   "_FcPatternCreate", referenced from:
:info:build       _apply_xft_settings in xsettings.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_list_family in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build   "_FcPatternAddCharSet", referenced from:
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build   "_FcPatternAddInteger", referenced from:
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build   "_FT_Activate_Size", referenced from:
:info:build       _ftfont_text_extents in ftfont.o
:info:build       _ftfont_get_bitmap in ftfont.o
:info:build       _ftfont_anchor_point in ftfont.o
:info:build       _ftfont_open in ftfont.o
:info:build   "_FcFontList", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list_family in ftfont.o
:info:build   "_FcPatternAddDouble", referenced from:
:info:build       _apply_xft_settings in xsettings.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build   "_FT_Done_Face", referenced from:
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_close in ftfont.o
:info:build       _ftfont_open in ftfont.o
:info:build   "_FcPatternBuild", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build   "_FcPatternAddLangSet", referenced from:
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build   "_FcConfigSubstitute", referenced from:
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_match in ftfont.o
:info:build       _ftfont_match in ftfont.o
:info:build   "_FcPatternAddString", referenced from:
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build   "_FcPatternAdd", referenced from:
:info:build       _ftfont_match in ftfont.o
:info:build   "_FcPatternDel", referenced from:
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build   "_FT_Done_Size", referenced from:
:info:build       _ftfont_close in ftfont.o
:info:build       _ftfont_open in ftfont.o
:info:build   "_FcPatternDuplicate", referenced from:
:info:build       _ftfont_list in ftfont.o
:info:build   "_FcCharSetHasChar", referenced from:
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_has_char in ftfont.o
:info:build   "_FcPatternGetCharSet", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build   "_FcPatternGetInteger", referenced from:
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build   "_FT_Load_Glyph", referenced from:
:info:build       _ftfont_text_extents in ftfont.o
:info:build       _ftfont_get_bitmap in ftfont.o
:info:build       _ftfont_anchor_point in ftfont.o
:info:build   "_FcPatternGetBool", referenced from:
:info:build       _apply_xft_settings in xsettings.o
:info:build       _apply_xft_settings in xsettings.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_open in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build       _xftfont_cached_font_ok in xftfont.o
:info:build   "_FcDefaultSubstitute", referenced from:
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_match in ftfont.o
:info:build   "_FcPatternGetLangSet", referenced from:
:info:build       _ftfont_list in ftfont.o
:info:build   "_FcNameConstant", referenced from:
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build       _xftfont_add_rendering_parameters in xftfont.o
:info:build   "_FcObjectSetBuild", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build       _ftfont_list in ftfont.o
:info:build       _ftfont_list_family in ftfont.o
:info:build   "_FcCharSetDestroy", referenced from:
:info:build       _ftfont_get_charset in ftfont.o
:info:build       _ftfont_spec_pattern in ftfont.o
:info:build   "_FT_Init_FreeType", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build   "_FT_New_Face", referenced from:
:info:build       _ftfont_lookup_cache in ftfont.o
:info:build       _ftfont_pattern_entity in ftfont.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make[1]: *** [temacs] Error 1
:info:build make: *** [src] Error 2

Attachments (1)

main.log (266.9 KB) - added by mgranvik@… 14 years ago.

Download all attachments as: .zip

Change History (9)

Changed 14 years ago by mgranvik@…

Attachment: main.log added

comment:1 Changed 14 years ago by drkp (Dan Ports)

Cc: dports@… openmaintainer@… removed
Owner: changed from macports-tickets@… to dports@…
Status: newassigned

comment:2 Changed 14 years ago by drkp (Dan Ports)

Confirmed that the same thing happens for me. I guess that shows how often I test the +x11 variant. I'll look into it.

In the meantime, the +gtk variant should work and might well be what you'd prefer anyway.

comment:3 Changed 14 years ago by drkp (Dan Ports)

This looks like it's being caused by the pkgconfig change in #25345.

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Configure checks for FONTCONFIG_LIBS, but apparently it then doesn't use them.

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Makefile.in lists @FONTCONFIG_LIBS@ when defining LIBES, which should be correct, but they don't make it into the final Makefile.

comment:6 Changed 14 years ago by jmroot (Joshua Root)

So apparently src/Makefile.in is used to create src/Makefile.c, which is then used to create src/Makefile. The Makefile.c is already missing any reference to FONTCONFIG_LIBS.

comment:7 in reply to:  6 Changed 14 years ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed

Replying to jmr@…:

So apparently src/Makefile.in is used to create src/Makefile.c, which is then used to create src/Makefile. The Makefile.c is already missing any reference to FONTCONFIG_LIBS.

Wow, as though autoconf wasn't bad enough, it looks like emacs is running their makefile through the C preprocessor for good measure. I can't bring myself to mess with anything so perverse.

I put -lfreetype and -lfontconfig into configure.ldflags in r75371

comment:8 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.