all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#8030: 23.2.93; libfontconfig is not configured in
@ 2011-02-13 15:06 Peter Dyballa
  2011-02-23 19:05 ` bug#8030: configure.in clears FONTCONFIG_CFLAGS and FONTCONFIG_LIBS Sven Joachim
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Dyballa @ 2011-02-13 15:06 UTC (permalink / raw)
  To: 8030

Hello!

Building GNU Emacs 23.2.92 fails with:

	gcc-4.2 -I/opt/local/include -L/opt/local/lib  -prebind -Xlinker - 
headerpad -Xlinker 690 -Wl,-dead_strip_dylibs -Wl,-bind_at_load -Wl,- 
t  -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   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 - 
lXaw3d -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 -liconv  -lncurses   -L/opt/ 
local/lib -lz -lotf -lfreetype
	/usr/lib/crt1.10.5.o
	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
	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
	/opt/local/lib/libXaw3d.dylib
	/opt/local/lib/libXmu.dylib
	/opt/local/lib/libXt.dylib
	/opt/local/lib/libSM.dylib
	/opt/local/lib/libICE.dylib
	/opt/local/lib/libXext.dylib
	/opt/local/lib/libtiff.dylib
	/opt/local/lib/libjpeg.dylib
	/opt/local/lib/libpng.dylib
	/opt/local/lib/libz.dylib
	/usr/lib/libm.dylib
	/opt/local/lib/libgif.dylib
	/opt/local/lib/libXpm.dylib
	/opt/local/lib/libX11.dylib
	/opt/local/lib/libXrender.dylib
	/opt/local/lib/libXft.dylib
	/opt/local/lib/librsvg-2.dylib
	/opt/local/lib/libgio-2.0.dylib
	/opt/local/lib/libgdk_pixbuf-2.0.dylib
	/opt/local/lib/libcairo.dylib
	/opt/local/lib/libgobject-2.0.dylib
	/opt/local/lib/libgmodule-2.0.dylib
	/opt/local/lib/libpng14.dylib
	/opt/local/lib/libgthread-2.0.dylib
	/opt/local/lib/libglib-2.0.dylib
	/opt/local/lib/libintl.dylib
	/opt/local/lib/libiconv.dylib
	/opt/local/lib/libncurses.dylib
	/opt/local/lib/libotf.dylib
	/opt/local/lib/libfreetype.dylib
	/usr/lib/libgcc_s.10.5.dylib
	/Developer/usr/lib/gcc/powerpc-apple-darwin9/4.2.1/libgcc.a
	/usr/lib/libSystemStubs.a
	/usr/lib/libSystem.dylib
	/usr/lib/system/libmathCommon.A.dylib
	../lwlib/liblw.a(lwlib.o)
	../lwlib/liblw.a(xlwmenu.o)
	../lwlib/liblw.a(lwlib-Xlw.o)
	../lwlib/liblw.a(lwlib-Xaw.o)
	../lwlib/liblw.a(lwlib-utils.o)
	Undefined symbols:
	  "_FcPatternBuild", referenced from:
	      _ftfont_lookup_cache in ftfont.o
	  "_FcPatternAddLangSet", referenced from:
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcPatternAddDouble", referenced from:
	      _apply_xft_settings in xsettings.o
	      _ftfont_spec_pattern in ftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	  "_FcPatternGetMatrix", referenced from:
	      _xftfont_open in xftfont.o
	  "_FcCharSetCreate", referenced from:
	      _ftfont_lookup_cache in ftfont.o
	      _ftfont_get_charset in ftfont.o
	      _ftfont_spec_pattern in ftfont.o
	  "_FcPatternGetLangSet", referenced from:
	      _ftfont_list in ftfont.o
	  "_FcPatternAddString", referenced from:
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_list in ftfont.o
	      _ftfont_list in ftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	  "_FcDefaultSubstitute", referenced from:
	      _ftfont_match in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcPatternDestroy", referenced from:
	      _apply_xft_settings in xsettings.o
	      _ftfont_lookup_cache in ftfont.o
	      _ftfont_list_family in ftfont.o
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_match in ftfont.o
	      _ftfont_match in ftfont.o
	      _ftfont_list in ftfont.o
	      _ftfont_list in ftfont.o
	      _ftfont_list in ftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	  "_FcPatternAdd", referenced from:
	      _ftfont_match in ftfont.o
	  "_FcPatternDel", referenced from:
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _ftfont_list in ftfont.o
	      _ftfont_list in ftfont.o
	      _ftfont_list in ftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	  "_FcFontList", referenced from:
	      _ftfont_lookup_cache in ftfont.o
	      _ftfont_list_family in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcCharSetHasChar", referenced from:
	      _ftfont_list in ftfont.o
	      _ftfont_has_char in ftfont.o
	  "_FcPatternCreate", referenced from:
	      _apply_xft_settings in xsettings.o
	      _ftfont_list_family in ftfont.o
	      _ftfont_spec_pattern in ftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_open in xftfont.o
	  "_FcPatternDuplicate", referenced from:
	      _ftfont_list in ftfont.o
	  "_FcCharSetAddChar", referenced from:
	      _ftfont_get_charset in ftfont.o
	      _ftfont_spec_pattern in ftfont.o
	  "_FcPatternGetDouble", referenced from:
	      _apply_xft_settings in xsettings.o
	      _ftfont_pattern_entity in ftfont.o
	      _ftfont_pattern_entity in ftfont.o
	      _xftfont_open in xftfont.o
	  "_FcPatternGetString", referenced from:
	      _ftfont_list_family in ftfont.o
	      _get_adstyle_property in ftfont.o
	      _ftfont_pattern_entity in ftfont.o
	      _ftfont_pattern_entity in ftfont.o
	      _ftfont_pattern_entity in ftfont.o
	      _ftfont_list in ftfont.o
	      _ftfont_list in ftfont.o
	      _ftfont_list in ftfont.o
	      _ftfont_font_format in ftfont.o
	  "_FcNameConstant", referenced from:
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	  "_FcPatternGetBool", referenced from:
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _ftfont_pattern_entity in ftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	  "_FcFontSetDestroy", referenced from:
	      _ftfont_lookup_cache in ftfont.o
	      _ftfont_list_family in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcFontMatch", referenced from:
	      _ftfont_match in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcLangSetDestroy", referenced from:
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcLangSetAdd", referenced from:
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcInit", referenced from:
	      _ftfont_list_family in ftfont.o
	      _ftfont_match in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcLangSetCreate", referenced from:
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_spec_pattern in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcCharSetCopy", referenced from:
	      _ftfont_lookup_cache in ftfont.o
	  "_FcPatternAddCharSet", referenced from:
	      _ftfont_spec_pattern in ftfont.o
	      _xftfont_open in xftfont.o
	  "_FcCharSetDestroy", referenced from:
	      _ftfont_get_charset in ftfont.o
	      _ftfont_spec_pattern in ftfont.o
	  "_FcPatternAddInteger", referenced from:
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	  "_FcObjectSetDestroy", referenced from:
	      _ftfont_lookup_cache in ftfont.o
	      _ftfont_list_family in ftfont.o
	      _ftfont_list_family in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcPatternAddBool", referenced from:
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _ftfont_spec_pattern in ftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_add_rendering_parameters in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	  "_FcObjectSetAdd", referenced from:
	      _ftfont_list in ftfont.o
	  "_FcObjectSetBuild", referenced from:
	      _ftfont_lookup_cache in ftfont.o
	      _ftfont_list_family in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcConfigSubstitute", referenced from:
	      _ftfont_match in ftfont.o
	      _ftfont_match in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcPatternGetCharSet", referenced from:
	      _ftfont_lookup_cache in ftfont.o
	      _ftfont_list in ftfont.o
	      _ftfont_list in ftfont.o
	  "_FcPatternGetInteger", referenced from:
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _apply_xft_settings in xsettings.o
	      _ftfont_pattern_entity in ftfont.o
	      _ftfont_pattern_entity in ftfont.o
	      _ftfont_pattern_entity in ftfont.o
	      _ftfont_pattern_entity in ftfont.o
	      _ftfont_pattern_entity in ftfont.o
	      _ftfont_list in ftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_cached_font_ok in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	      _xftfont_open in xftfont.o
	ld: symbol(s) not found
	collect2: ld returned 1 exit status
	make[1]: *** [temacs] Error 1
	make: *** [src] Error 2

Config.log contains:

	configure:9159: checking for pkg-config
	configure:9190: result: /opt/local/bin/pkg-config
	configure:9204: checking for fontconfig >= 2.2.0
	configure:9208: result: yes
	configure:9212: checking FONTCONFIG_CFLAGS
	configure:9215: result: -I/opt/local/include
	configure:9218: checking FONTCONFIG_LIBS
	configure:9221: result: -L/opt/local/lib -lfontconfig

But as you can see, the last result is not saved or fed forward for  
building temacs. This happens "--with-x-toolkit=athena" or "--with-x- 
toolkit=lucid".

Mac OS X 10.5.8 (Leopard), PPC hardware.

--
Greetings

   Pete
               <\
                 \__     O                       __O
                 | O\   _\\/\-%                _`\<,
                 '()-'-(_)--(_)               (_)/(_)






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#8030: configure.in clears FONTCONFIG_CFLAGS and FONTCONFIG_LIBS
  2011-02-13 15:06 bug#8030: 23.2.93; libfontconfig is not configured in Peter Dyballa
@ 2011-02-23 19:05 ` Sven Joachim
  2011-03-01  3:20   ` bug#7936: " Chong Yidong
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Joachim @ 2011-02-23 19:05 UTC (permalink / raw)
  To: 7936, 8030

It seems to me that bugs #7936 and #8030 are the same, so they should
probably be merged.

Moreover, AFAICS the root of the problem is that configure.in (in Emacs
23.2 and emacs-23) inadvertently clears FONTCONFIG_LIBS, so that
'-lfontconfig' is not passed to the linker.  This has been fixed by
Miles on the trunk in revision 102932:

revno: 102932
committer: Miles Bader <miles@gnu.org>
branch nick: trunk
timestamp: Sat 2011-01-22 11:45:57 +0900
message:
  configure.in: Don't zero-out FONTCONFIG_CFLAGS and FONTCONFIG_LIBS
  when building with XFT (doing so is incorrect, as Emacs directly uses
  fontconfig, and breaks building when using a strict linker).

--8<---------------cut here---------------start------------->8---
=== modified file 'configure.in'
--- configure.in	2011-01-22 00:12:10 +0000
+++ configure.in	2011-01-22 02:45:57 +0000
@@ -2252,17 +2252,9 @@ if test "${HAVE_X11}" = "yes"; then
        HAVE_XFT=no
     fi
 
-
-    HAVE_FREETYPE=no
     ## We used to allow building with FreeType and without Xft.
     ## However, the ftx font backend driver is not in good shape.
-    if test "${HAVE_XFT}" = "yes"; then
-      dnl As we use Xft, we anyway use freetype.
-      dnl There's no need for additional CFLAGS and LIBS.
-      HAVE_FREETYPE=yes
-      FONTCONFIG_CFLAGS=
-      FONTCONFIG_LIBS=
-    fi
+    HAVE_FREETYPE=$HAVE_XFT
 
     HAVE_LIBOTF=no
     if test "${HAVE_FREETYPE}" = "yes"; then

--8<---------------cut here---------------end--------------->8---

This bug causes Emacs to FTBFS on GNU/Linux as well with a strict
linker when configured "--with-x-toolkit=lucid", see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614823.  I can confirm
that Miles' change fixes that problem.

Any chance to get this fix into Emacs 23.3?

Regards,
        Sven





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#7936: bug#8030: configure.in clears FONTCONFIG_CFLAGS and FONTCONFIG_LIBS
  2011-02-23 19:05 ` bug#8030: configure.in clears FONTCONFIG_CFLAGS and FONTCONFIG_LIBS Sven Joachim
@ 2011-03-01  3:20   ` Chong Yidong
  0 siblings, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2011-03-01  3:20 UTC (permalink / raw)
  To: Sven Joachim; +Cc: 7936

Sven Joachim <svenjoac@gmx.de> writes:

> It seems to me that bugs #7936 and #8030 are the same, so they should
> probably be merged.
>
> Moreover, AFAICS the root of the problem is that configure.in (in Emacs
> 23.2 and emacs-23) inadvertently clears FONTCONFIG_LIBS, so that
> '-lfontconfig' is not passed to the linker.  This has been fixed by
> Miles on the trunk in revision 102932:
>
> This bug causes Emacs to FTBFS on GNU/Linux as well with a strict
> linker when configured "--with-x-toolkit=lucid", see
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614823.  I can confirm
> that Miles' change fixes that problem.
>
> Any chance to get this fix into Emacs 23.3?

I discussed this with Stefan.  It's not obviously safe, so it seems
better to leave it for Emacs 24.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-01  3:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-13 15:06 bug#8030: 23.2.93; libfontconfig is not configured in Peter Dyballa
2011-02-23 19:05 ` bug#8030: configure.in clears FONTCONFIG_CFLAGS and FONTCONFIG_LIBS Sven Joachim
2011-03-01  3:20   ` bug#7936: " Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.