Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 25721
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: foser (RETIRED) <foser@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: BlockFin <blockfin@yahoo.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 25721 depends on: Show dependency tree
Bug 25721 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-08-01 11:42 0000
I can't emerge abiword-1.99.3.  Here are the last few lines of output:

************************
/usr/lib/libpangoft2-1.0.so: undefined reference to `FT_Set_Hint_Flags' 
/usr/lib/libfontconfig.so: undefined reference to `FT_Get_BDF_Property' 
collect2: ld returned 1 exit status 
make[4]: *** [AbiWord-2.0] Error 1 
make[4]: Leaving directory `/var/tmp/portage/abiword-1.99.3/work/abiword-
1.99.3/abi/src/wp/main/unix' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory `/var/tmp/portage/abiword-1.99.3/work/abiword-
1.99.3/abi/src/wp/main' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/var/tmp/portage/abiword-1.99.3/work/abiword-
1.99.3/abi/src/wp' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/var/tmp/portage/abiword-1.99.3/work/abiword-
1.99.3/abi/src' 
make: *** [all-recursive] Error 1 

!!! ERROR: app-office/abiword-1.99.3 failed. 
!!! Function src_compile, Line -247, Exitcode 2 
!!! (no error message)
*****************************

One of the Gentoo Forumers suggested I trim back on optimizations in my 
CFLAGS.  I have used:

********************
CFLAGS="-march=athlon-tbird -O3 -mmmx -m3dnow -pipe -fomit-frame-pointer" 
CFLAGS="-march=athlon-tbird -mmmx -m3dnow -pipe -fomit-frame-pointer" 
CFLAGS="-pipe"
********************

and they have all resulted in the same error.

Reproducible: Always
Steps to Reproduce:
1.  emerge abiword-1.99.3

------- Comment #1 From foser (RETIRED) 2003-08-01 15:50:18 0000 -------
recompile freetype, fontconfig and pango, make sure they are all at the latest
stable version. Then try again.

This is not a optimizations problem, some libraries do not seem to be in sync
for whatever reason (have you been updating/downgrading one of the names libs
(?)).

------- Comment #2 From BlockFin 2003-08-01 20:34:35 0000 -------
Actually, I've also done this (but I forgot to mention that).  In fact,
upgrading fontconfig to the newest version is what added the second error there
("FT_Get_BDF_Property").

------- Comment #3 From foser (RETIRED) 2003-08-04 09:26:35 0000 -------
ok, remove those packages and then emerge pango or something, it should pull in
the right packages.

What version of xfree do you have and is the xft ebuild installed ? 

------- Comment #4 From BlockFin 2003-08-04 19:16:19 0000 -------
I have xfree-4.2.1, xft-2.0.1, fontconfig-2.2.0-r2, freetype-2.1.4, and
pango-1.2.1-r1.  After unmerging and fontconfig, freetype, and pango, and then
emerging pango, xft was upgraded to 2.0.1-r2.  But emerging abiword-1.99.3
results in the same error as before.

BTW, my USE flags are "3dnow mmx apm 3dfx X x86 xv dga fbcon opengl kde gnome
gtk2 alsa dvd avi mpeg quicktime pam ssl crypt java xml2".  Don't know if that
helps.

------- Comment #5 From BlockFin 2003-08-04 20:54:00 0000 -------
Oh, correction... xft is still 2.0.1, it has NOT been upgraded.  Should I
upgrade it?

------- Comment #6 From foser (RETIRED) 2003-08-05 01:17:37 0000 -------
yes upgrade it.

unrelated : having gtk2 as USE flag is not correct, you should also have gtk. So only USE="gtk gtk2" is right.

------- Comment #7 From BlockFin 2003-08-06 10:48:25 0000 -------
Updating xft has not helped.

I did a google search for "FT_Set_Hint_Flags" and it seems that that function has been removed from freetype.  I wasn't able to find out in which version.

------- Comment #8 From foser (RETIRED) 2003-08-06 11:52:53 0000 -------
what version of mozilla do you have around ?

------- Comment #9 From BlockFin 2003-08-06 12:05:03 0000 -------
I've got mozilla 1.4-r2.  I'm using galeon 1.3.7.

Strange, how'd you know I had mozilla?

------- Comment #10 From foser (RETIRED) 2003-08-06 13:44:30 0000 -------
just a guess... don't think its related after all

there may be some wrong freetype headers around, can you look around for them and figure out where they come from ?

Can you give some more lines of output, cause the really relevant part isn't in here.

------- Comment #11 From BlockFin 2003-08-06 22:35:15 0000 -------
Sure I can look for header files... um... what exactly am I looking for?  And
should they be in /var/tmp?

How much output do you want?

------- Comment #12 From foser (RETIRED) 2003-08-07 07:49:55 0000 -------
well a few more lines of the actual compile commands, so i can see where it
goes wrong.

Freetype has a lot of headers, but you could just look for 'freetype.h' . I'm
not that deep into the freetype API, but i think thats the commonly used
include.

------- Comment #13 From BlockFin 2003-08-07 13:33:11 0000 -------
OK, I went back a couple of g++ commands:

*************************************************************************
source='abi_ver.cpp' object='abi_ver.o' libtool=no \
depfile='.deps/abi_ver.Po' tmpdepfile='.deps/abi_ver.TPo' \
depmode=gcc3 /bin/sh ../../../../ac-helpers/depcomp \
g++ -DPACKAGE_NAME=\"AbiSuite\" -DPACKAGE_TARNAME=\"abisuite\" -DPACKAGE_VERSION=\"2.0\" -DPACKAGE_STRING=\"AbiSuite\ 2.0\" -DPACKAGE_BUGREPORT=\"http://www.abisource.com/\" -DPACKAGE=\"AbiSuite-2.0\" -DVERSION=\"1.99.3\" -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 -DHAVE_LIBXML2=1 -DHAVE_LIBWV=1 -DHAVE_WV=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DRETSIGTYPE=void -DHAVE_RE_COMP=1 -DHAVE_REGCOMP=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1  -I. -I. -DABIWORD_APP_NAME="\"AbiWord\"" -DABISUITE_HOME="\"/usr/share/AbiSuite-2.0\"" -I'../../../../src/af/util/xp'  -I'../../../../src/af/ev/xp' -I'../../../../src/af/ev/xp' -I'../../../../src/af/gr/xp' -I'../../../../src/af/xap/xp' -I'../../../../src/af/util/unix' -I'../../../../src/af/ev/unix' -I'../../../../src/af/gr/unix' -I'../../../../src/af/xap/unix' -I'../../../../src/af/xap/unix/gnome' -I'../../../../src/af/ev/unix/gnome' -I'../../../../src/wp/ap/xp' -I'../../../../src/wp/impexp/xp' -I'../../../../src/wp/ap/unix' -I'../../../../src/wp/ap/xp/ToolbarIcons' -I'../../../../src/wp/ap/unix/gnome' -I'../../../../src/other/spell/xp' -I'../../../../src/other/fribidi/xp' -I'../../../../src/other/ttftool/unix' -I'../../../../src/text/ptbl/xp' -I'../../../../src/text/fmt/xp'  -I../../../../../abiword-plugins    -march=athlon-tbird -O3 -mmmx -m3dnow -pipe  -g -g -g -Wall -pedantic -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -pipe -DNDEBUG -I/usr/include/libxml2   -I/usr/include/fribidi -I/usr/X11R6/include -I/usr/include/freetype2 -DHAVE_THREADS=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -DGNOME_DISABLE_DEPRECATED -pthread -DORBIT2=1 -I/usr/include/eel-2 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/gconf/2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libxml2 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libgnomecanvas-2.0   -DHAVE_NAUTILUS=1 -DORBIT2=1 -pthread -I/usr/include/libbonobo-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/linc-1.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libglade-2.0   -DHAVE_GNOME=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -DSUPPORTS_UT_IDLE=1  -DABISUITE_HOME=\"/usr/share/AbiSuite-2.0\" -DABI_BUILD_VERSION=\"1.99.3\" -c -o abi_ver.o `test -f
abi_ver.cpp || echo './'`abi_ver.cpp
g++  -march=athlon-tbird -O3 -mmmx -m3dnow -pipe  -g -g -g -Wall -pedantic -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -pipe -DNDEBUG -I/usr/include/libxml2   -I/usr/include/fribidi -I/usr/X11R6/include -I/usr/include/freetype2 -DHAVE_THREADS=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -DGNOME_DISABLE_DEPRECATED -pthread -DORBIT2=1 -I/usr/include/eel-2 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/gconf/2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libxml2 -I/usr/include/gail-1.0 -I/usr/include/libglade-2.0 -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libgnomecanvas-2.0   -DHAVE_NAUTILUS=1 -DORBIT2=1 -pthread -I/usr/include/libbonobo-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/linc-1.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libglade-2.0   -DHAVE_GNOME=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -DSUPPORTS_UT_IDLE=1  -DABISUITE_HOME=\"/usr/share/AbiSuite-2.0\" -DABI_BUILD_VERSION=\"1.99.3\"   -o AbiWord-2.0  abi_ver.o UnixMain.o ../../../../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/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/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/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/text/fmt/xp/libFmt.a ../../../../src/text/ptbl/xp/libPtbl.a -Wl,--export-dynamic -pthread -L/usr/X11R6/lib -lnautilus -leel-2 -lgnomeui-2 -lSM -lICE -lgailutil -lglade-2.0 -lbonoboui-2 -lxml2 -lz -lgnomecanvas-2 -lgnome-2 -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation
-lORBit-2 -lm -llinc -lgmodule-2.0 -ldl -lgobject-2.0 -lgthread-2.0 -lglib-2.0
 -pthread -Wl,--export-dynamic -L/usr/X11R6/lib -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-2 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -llinc -lgthread-2.0 -lgnomeprintui-2-2 -lgnomeprint-2-2 -lgnomecanvas-2 -lart_lgpl_2 -lpangoft2-1.0 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lz -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -Wl,--export-dynamic -lgmodule-2.0 -ldl -lglib-2.0
 -Wl,--export-dynamic -lenchant -lgmodule-2.0 -ldl -lglib-2.0   -L/usr/lib -lxml2 -lz -lm   -lfribidi -lwv -lpng -lz -lglib-2.0    -lpng -lz -lpopt -L/usr/X11R6/lib -lXft -lfreetype -lz -lXrender -lfontconfig    -pthread -lgthread-2.0 -lglib-2.0    -lwv
/usr/lib/libpangoft2-1.0.so: undefined reference to `FT_Set_Hint_Flags'
/usr/lib/libfontconfig.so: undefined reference to `FT_Get_BDF_Property'
collect2: ld returned 1 exit status
make[4]: *** [AbiWord-2.0] Error 1
make[4]: Leaving directory `/var/tmp/portage/abiword-1.99.3/work/abiword-1.99.3/abi/src/wp/main/unix'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/abiword-1.99.3/work/abiword-1.99.3/abi/src/wp/main'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/abiword-1.99.3/work/abiword-1.99.3/abi/src/wp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/abiword-1.99.3/work/abiword-1.99.3/abi/src'
make: *** [all-recursive] Error 1
 
!!! ERROR: app-office/abiword-1.99.3 failed.
!!! Function src_compile, Line -247, Exitcode 2
!!! (no error message)
*************************************************************************

Also, from /usr/include/freetype2/freetype/freetype.h, I see:

***********************************************************************
#define FREETYPE_MAJOR 2
#define FREETYPE_MINOR 1
#define FREETYPE_PATCH 4
***********************************************************************

so I believe it is the correct header file.

------- Comment #14 From foser (RETIRED) 2003-08-08 02:20:13 0000 -------
thats not really relevant here, i need to know if there are other headers
around . I don't need their contents, only their existence matters.  And
probably also would be interesting to know if other libs were around. Can you
also search for libfreetype.so around the system ?

I'm trying to figure something out here with little clues on a system i have
never seen, which probably has some weird stuff going on. Exact answers to my
questions might be more helpful than things you think might be relevant.

------- Comment #15 From foser (RETIRED) 2003-08-18 15:57:50 0000 -------
waiting for reply

------- Comment #16 From BlockFin 2003-08-30 21:41:37 0000 -------
Sorry for the delay, I've been busy with other stuff.

The list of header files in /usr/include/freetype2/freetype/ is:

fterrdef.h, ftmac.h, ftsizes.h, fttrigon.h, tttables.h, fterrors.h, ftmm.h, ftsnames.h, fttypes.h, tttags.h, freetype.h, ftglyph.h, ftmoderr.h, ftstroker.h, ftwinfnt.h, ftbbox.h, ftgzip.h, ftmodule.h, ftsynth.h, ftxf86.h, ftbdf.h, ftimage.h, ftoutln.h, ftsysio.h, ftcache.h, ftincrem.h, ftpfr.h, ftsysmem.h, t1tables.h, ftchapters.h, ftlist.h, ftrender.h, ftsystem.h, ttnameid.h

I searched /usr/ for libfreetype.so and found:

/usr/lib/libfreetype.so
/usr/X11R6/lib/libfreetype.so

------- Comment #17 From foser (RETIRED) 2003-08-31 03:40:42 0000 -------
what is the ouput of 'ls -hal /usr/X11R6/lib/libfreetype.*'

and try the latest version in portage btw (1.99.5)

------- Comment #18 From BlockFin 2003-08-31 08:43:14 0000 -------
-rw-r--r--    1 root     root         379K Oct 28  2002
/usr/X11R6/lib/libfreetype.a
lrwxrwxrwx    1 root     root           18 Oct 28  2002
/usr/X11R6/lib/libfreetype.so -> libfreetype.so.6.2
lrwxrwxrwx    1 root     root           18 Oct 28  2002
/usr/X11R6/lib/libfreetype.so.6 -> libfreetype.so.6.2
-rwxr-xr-x    1 root     root         359K Oct 28  2002
/usr/X11R6/lib/libfreetype.so.6.2

I don't understand, I have portage-2.0.48-r5.  Typing "emerge -p
portage-1.99.5" yields:

Calculating dependencies
emerge: there are no masked or unmasked ebuilds to satisfy "portage-1.99.5".

!!! Error calculating dependencies. Please correct.

------- Comment #19 From foser (RETIRED) 2003-08-31 08:47:38 0000 -------
what xfree are you using ? Your freetype links are wrong.

you are trying to emerge some nonexistant portage package, try abiword for a change.

------- Comment #20 From BlockFin 2003-08-31 09:27:01 0000 -------
OIC, I misread that comment about portage.  Emerging abiword-1.99.5 gives the
same errors.

I'm using xfree-4.2.1.

------- Comment #21 From foser (RETIRED) 2003-08-31 14:31:03 0000 -------
update your xfree .. you should use an xfree which uses the system freetype . I
thought 4.2.1 already did this, but the 4.3 series certainly do.

You can probably get around the problem by compiling it like this
'CFLAGS="${CFLAGS} /usr/lib/libfreetype.so" emerge abiword -p' or something
similar . Where you make sure the system libfreetype is the one chosen to link
with.

------- Comment #22 From BlockFin 2003-09-05 07:39:47 0000 -------
Worked like a charm!  Thank you for your help.

------- Comment #23 From foser (RETIRED) 2003-09-21 13:54:34 0000 -------
closing

might 'fix' this by a dep if more problems turn up (which i doubt)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug