Re: Problems building AbiWord 2.4.0 on Linux

From: Tom Williams <tomdkat_at_comcast.net>
Date: Thu Oct 06 2005 - 07:23:38 CEST

Yep, that was it. I had a 2-yr old version of libfontconfig.so in
/opt/gnome/lib. :)

I'm up and running now! Thanks!

Peace...

Tom

Mark Gilbert wrote:

>Yeah... most likely, though this is a complete shot in the dark and I
>can think of a couple not-too-likely reasons, somehow the linker line is
>picking up an old version of fc. Your headers are correct, your grep
>shows that the libs are correct...
>
>Got any old installs lying about? Like at /usr/lib/libfontconfig.so?
>Ask ld where it's finding -lfontconfig (verbose mode).
>
>Regards
>-MG
>
>On Wed, 2005-10-05 at 19:36 -0700, Tom Williams wrote:
>
>
>>Hi! I'm in the process of building AbiWord 2.4.0 on my Linux system
>>(Slackware 8-base with many custom updates). Everything runs fine
>>until I hit this linker issue:
>>
>>---------------START---------------------
>>
>>make[4]: Entering directory `/build/abiword-2.4.0/abi/src/wp/main/xp'
>>make[4]: Nothing to be done for `all'.
>>make[4]: Leaving directory `/build/abiword-2.4.0/abi/src/wp/main/xp'
>>Making all in unix
>>make[4]: Entering directory `/build/abiword-2.4.0/abi/src/wp/main/unix'
>>g++ -Wall -pedantic -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -pipe -DNDEBUG
>>-O3 -I/usr/include/libxml2 -I/usr/include/fribidi
>>-I/home/tom/build/abiword-2.4.0/wv -I/usr/X11R6/include -
>>I/usr/X11R6/include/freetype2 -I/usr/include/libpng12
>>-DHAVE_THREADS=1 -pthread -I/opt/gnome/include/glib-2.0
>>-I/opt/gnome/lib/glib-2.0/include -DABISIZEOF_LONG_INT=4
>>-I/opt/gn ome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include
>>-I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/cairo
>>-I/opt/gnome/include/pango-1.0 -I/usr/X11R6/include/freetype2
>>-I/usr/X11R 6/include -I/opt/gnome/include -I/usr/include/libpng12
>>-I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include
>>-I/opt/gnome/include/libglade-2.0 -I/opt/gnome/include/libxml2
>> -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include
>>-I/opt/gnome/include -I/opt/gnome/include/gtk-2.0
>>-I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include
>>-I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0
>>-I/opt/gnome/include/cairo -I/opt/gnome/include/pango-1.0
>>-I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -I/usr/inc
>>lude/libpng12 -DUSE_GUCHARMAP -I/opt/gnome/include/libgnomeprint-2.2
>>-I/opt/gnome/include/libart-2.0 -I/opt/gnome/include/glib-2.0
>>-I/opt/gnome/lib/glib-2.0/include -I/opt/gnome/in clude/libxml2
>>-I/opt/gnome/include/pango-1.0 -I/opt/gnome/include/libgnomeprintui-2.2
>>-I/opt/gnome/include/libgnomecanvas-2.0 -I/usr/X11R6/include
>>-I/usr/X11R6/include/freetype2 -I/o pt/gnome/include/gtk-2.0
>>-I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0
>>-I/opt/gnome/include/cairo -I/opt/gnome/include
>>-I/usr/include/libpng12 -DSUPPORTS_UT_IDLE=1
>> -DABISUITE_HOME=\"/opt/gnome/share/AbiSuite-2.4\"
>>-DABI_BUILD_VERSION=\"2.4.0\" -o AbiWord-2.4 abi_ver.o UnixMain.o
>>../../../../src/wp/ap/libAp.a ../../../../src/wp/impexp/libIm
>>pExp.a ../../../../src/af/xap/libXap.a ../../../../src/af/util/libUtil.a
>>../../../../src/af/gr/libGr.a ../../../../src/af/ev/libEv.a
>>../../../../src/other/spell/xp/libSpell.a ../../.
>>./../src/other/ttftool/unix/libTtfTool.a
>>../../../../src/pkg/linux/apkg/libApkg.a
>>../../../../src/text/fmt/xp/libFmt.a
>>../../../../src/text/ptbl/xp/libPtbl.a ../../../../src/wp/ap/li
>>bAp.a ../../../../src/wp/impexp/libImpExp.a
>>../../../../src/af/xap/libXap.a ../../../../src/af/util/libUtil.a
>>../../../../src/af/gr/libGr.a ../../../../src/af/ev/libEv.a
>>../../../../ src/other/spell/xp/libSpell.a
>>../../../../src/other/ttftool/unix/libTtfTool.a
>>../../../../src/pkg/linux/apkg/libApkg.a
>>../../../../src/text/fmt/xp/libFmt.a ../../../../src/text/ptbl/
>>xp/libPtbl.a ../../../../src/wp/ap/libAp.a
>>../../../../src/wp/impexp/libImpExp.a ../../../../src/af/xap/libXap.a
>>../../../../src/af/util/libUtil.a ../../../../src/af/gr/libGr.a
>>../.. /../../src/af/ev/libEv.a
>>../../../../src/other/spell/xp/libSpell.a
>>../../../../src/other/ttftool/unix/libTtfTool.a
>>../../../../src/pkg/linux/apkg/libApkg.a
>>../../../../src/text/fmt/x p/libFmt.a
>>../../../../src/text/ptbl/xp/libPtbl.a ../../../../src/wp/ap/libAp.a
>>../../../../src/wp/impexp/libImpExp.a ../../../../src/af/xap/libXap.a
>>../../../../src/af/util/libUtil. a ../../../../src/af/gr/libGr.a
>>../../../../src/af/ev/libEv.a ../../../../src/other/spell/xp/libSpell.a
>>../../../../src/other/ttftool/unix/libTtfTool.a
>>../../../../src/pkg/linux/apkg /libApkg.a
>>../../../../src/text/fmt/xp/libFmt.a
>>../../../../src/text/ptbl/xp/libPtbl.a -L/opt/gnome/lib -lpangoxft-1.0
>>-lpangoft2-1.0 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -
>>lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0
>>-lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/usr/X11R6/lib
>>-lSM -lICE -lX11 -Wl,--export-dynam ic -L/opt/gnome/lib
>>-lgmodule-2.0 -ldl -lglib-2.0 -L/opt/gnome/lib -lgucharmap
>>-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
>>-lpangocairo-1.0 -lpango-1.0 -lcairo -lgob ject-2.0 -lgmodule-2.0
>>-ldl -lglib-2.0 -Wl,--export-dynamic -L/opt/gnome/lib
>>-lgnomeprintui-2-2 -lgnomeprint-2-2 -lgnomecanvas-2 -lxml2 -lpthread -lz
>>-lart_lgpl_2 -lpangoft2-1.0 -l gtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
>>-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0
>>-lgmodule-2.0 -ldl -lglib-2.0 -Wl,--export-dynamic -L/opt/gnome/lib
>>-len chant -lgmodule-2.0 -ldl -lglib-2.0 -L/usr/lib -lxml2 -lz
>>-lm -lfribidi ../../../../../wv/libwv.a -L/opt/gnome/lib -lglib-2.0
>>-lpng12 -lz -lm -lz -lpopt -L/usr/X11R6/lib -lX ft -lfreetype
>>-lXrender -lfontconfig -pthread -L/opt/gnome/lib -lgthread-2.0
>>-lglib-2.0 ../../../../src/af/xap/libXap.a(xap_UnixApp.o): In function
>>`XAP_UnixApp::~XAP_UnixApp()':
>>xap_UnixApp.cpp:(.text+0x2c): undefined reference to `FcFini'
>>../../../../src/af/xap/libXap.a(xap_UnixApp.o): In function
>>`XAP_UnixApp::~XAP_UnixApp()':
>>xap_UnixApp.cpp:(.text+0xdc): undefined reference to `FcFini'
>>../../../../src/af/xap/libXap.a(xap_UnixApp.o): In function
>>`XAP_UnixApp::~XAP_UnixApp()':
>>xap_UnixApp.cpp:(.text+0x18c): undefined reference to `FcFini'
>>collect2: ld returned 1 exit status
>>make[4]: *** [AbiWord-2.4] Error 1
>>make[4]: Leaving directory `/build/abiword-2.4.0/abi/src/wp/main/unix'
>>make[3]: *** [all-recursive] Error 1
>>make[3]: Leaving directory `/build/abiword-2.4.0/abi/src/wp/main'
>>make[2]: *** [all-recursive] Error 1
>>make[2]: Leaving directory `/build/abiword-2.4.0/abi/src/wp'
>>make[1]: *** [all-recursive] Error 1
>>make[1]: Leaving directory `/build/abiword-2.4.0/abi/src'
>>make: *** [all-recursive] Error 1
>>tom@linux:~/build/abiword-2.4.0/abi$
>>
>>------------------END---------------------
>>
>>Here is my configure command:
>>
>>./configure --prefix=/opt/gnome --enable-threads
>>--enable-extra-optimization
>>
>>FcFini is defined in /usr/X11R6/lib/libfontconfig.so and
>>/usr/X11R6/lib/libfontconfig.so:
>>
>>tom@linux:~/build/abiword-2.4.0/abi$ nm /usr/X11R6/lib/libfontconfig.so
>>| grep FcFini
>>00015e10 T FcFini
>>tom@linux:~/build/abiword-2.4.0/abi$ nm /usr/X11R6/lib/libfontconfig.a |
>>grep FcFini
>>000000c0 T FcFini
>>tom@linux:~/build/abiword-2.4.0/abi$
>>
>>so I'm not sure why I'm getting this link error. I'm compiling AbiWord
>>2.4.0 using gcc-4.0.2 and I have these other tools/apps installed:
>>
>>binutils 2.16.1
>>glibc-2.3.4
>>XFree86 4.5.0
>>glib-2.8.2
>>gtk+-2.8.4
>>fontconfig 2.3.2
>>
>>Any ideas?
>>
>>Thanks!
>>
>>Peace...
>>
>>Tom
>>-----------------------------------------------
>>To unsubscribe from this list, send a message to
>>abiword-user-request@abisource.com with the word
>>unsubscribe in the message body.
>>
>>
>>
>
>-----------------------------------------------
>To unsubscribe from this list, send a message to
>abiword-user-request@abisource.com with the word
>unsubscribe in the message body.
>
>
>

-----------------------------------------------
To unsubscribe from this list, send a message to
abiword-user-request@abisource.com with the word
unsubscribe in the message body.
Received on Thu Oct 6 07:24:06 2005

This archive was generated by hypermail 2.1.8 : Thu Oct 06 2005 - 07:24:06 CEST