Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 105084

Summary: evince build failure USE="dvi": undefined reference to `kpse_fclose_trace'
Product: Gentoo Linux Reporter: Ed Catmur <ed>
Component: [OLD] GNOMEAssignee: Daniel Gryniewicz (RETIRED) <dang>
Status: RESOLVED FIXED    
Severity: normal CC: tom.gl
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
URL: http://bugzilla.gnome.org/show_bug.cgi?id=313708
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 105418    
Bug Blocks:    

Description Ed Catmur 2005-09-06 17:19:51 UTC
i686-pc-linux-gnu-gcc -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow
-mfpmath=387 -o evince eggfindbar.o ev-application.o ev-document-types.o
ev-job-queue.o ev-jobs.o ev-job-xfer.o ev-marshal.o ev-metadata-manager.o
ev-page-action.o ev-page-cache.o ev-password.o ev-password-view.o
ev-pixbuf-cache.o ev-print-job.o ev-properties-dialog.o ev-properties-fonts.o
ev-utils.o ev-view.o ev-window.o ev-sidebar.o ev-sidebar-links.o
ev-sidebar-page.o ev-sidebar-thumbnails.o ev-statusbar.o ev-stock-icons.o main.o
-Wl,--export-dynamic -pthread  /usr/lib/libgnomeui-2.so -L/usr/lib
/usr/lib/libgnome-keyring.so /usr/lib/libbonoboui-2.so -lSM -lICE
/usr/lib/libgnome-2.so /usr/lib/libesd.so /usr/lib/libaudiofile.so
/usr/lib/libasound.so /usr/lib/libgnomevfs-2.so -lssl -lcrypto
/usr/lib/libhowl.so -lresolv -lrt /usr/lib/libbonobo-2.so
/usr/lib/libbonobo-activation.so /usr/lib/libORBitCosNaming-2.so
/usr/lib/libgnomeprintui-2-2.so /usr/lib/libpixman.so
/usr/lib/libgnomeprint-2-2.so /usr/lib/libgnomecanvas-2.so
/usr/lib/libart_lgpl_2.so /usr/lib/libglade-2.0.so /usr/lib/libpangoxft-1.0.so
/usr/lib/libpangox-1.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so
/usr/lib/libatk-1.0.so /usr/lib/libgconf-2.so /usr/lib/libORBit-2.so
/usr/lib/libpopt.so /usr/lib/libgthread-2.0.so -lpthread
/usr/lib/libpoppler-glib.so -L/usr/i686-pc-linux-gnu/bin
-L/usr/i686-pc-linux-gnu/lib /usr/lib/libgdk-x11-2.0.so
/usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so
/usr/lib/libpango-1.0.so /usr/lib/libpoppler.so /usr/lib/libcairo.so -lXrender
-lX11 -lXext -lpng12 /usr/lib/libglitz.so /usr/lib/libfontconfig.so
/usr/lib/libfreetype.so /usr/lib/libexpat.so /usr/lib/libgdk_pixbuf-2.0.so
/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libdbus-glib-1.so
/usr/lib/libgobject-2.0.so /usr/lib/libdbus-1.so -lnsl /usr/lib/libglib-2.0.so
/usr/lib/libtiff.so /usr/lib/libjpeg.so -lz
../cut-n-paste/recent-files/.libs/librecent.a
../cut-n-paste/zoom-control/.libs/libephyzoom.a
../cut-n-paste/toolbar-editor/.libs/libtoolbareditor.a
../properties/.libs/libevproperties.a ../lib/.libs/libev.a
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so
-L/usr/lib/gcc/i686-pc-linux-gnu/3.4.4
-L/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/lib -lm
-lgcc_s -lc
../lib/.libs/libev.a(dviread.o): In function `mdvi_destroy_context':
dviread.c:(.text+0x624): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(dviread.o): In function `mdvi_init_context':
dviread.c:(.text+0x7bb): undefined reference to `kpse_fopen_trace'
../lib/.libs/libev.a(dviread.o): In function `mdvi_reload':
dviread.c:(.text+0x17b8): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(dviread.o): In function `mdvi_dopage':
dviread.c:(.text+0x20a3): undefined reference to `kpse_fopen_trace'
../lib/.libs/libev.a(font.o): In function `font_reopen':
font.c:(.text+0x71): undefined reference to `kpse_fopen_trace'
../lib/.libs/libev.a(font.o): In function `font_drop_one':
font.c:(.text+0x13b): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(font.o): In function `font_reference':
font.c:(.text+0x3b9): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(font.o): In function `font_get_glyph':
font.c:(.text+0x884): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(font.o): In function `font_reset_font_glyphs':
font.c:(.text+0xb85): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(font.o): In function `font_free_unused':
font.c:(.text+0xd5a): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(fontsrch.o): In function `mdvi_lookup_font':
fontsrch.c:(.text+0x389): undefined reference to `kpse_find_glyph'
fontsrch.c:(.text+0x4f6): undefined reference to `kpse_find_file'
fontsrch.c:(.text+0x5db): undefined reference to `kpse_find_glyph'
fontsrch.c:(.text+0x6b2): undefined reference to `kpse_find_file'
../lib/.libs/libev.a(pk.o): In function `pk_lookup':
pk.c:(.text+0x56): undefined reference to `kpse_find_glyph'
pk.c:(.text+0x98): undefined reference to `kpse_set_program_enabled'
../lib/.libs/libev.a(pk.o): In function `pk_lookupn':
pk.c:(.text+0x126): undefined reference to `kpse_find_glyph'
pk.c:(.text+0x168): undefined reference to `kpse_set_program_enabled'
../lib/.libs/libev.a(setup.o): In function `mdvi_init_kpathsea':
setup.c:(.text+0x1f): undefined reference to `kpse_make_tex_discard_errors'
setup.c:(.text+0x49): undefined reference to `kpse_set_program_name'
setup.c:(.text+0x66): undefined reference to `kpse_init_prog'
setup.c:(.text+0x82): undefined reference to `kpse_set_program_enabled'
setup.c:(.text+0x9e): undefined reference to `kpse_set_program_enabled'
setup.c:(.text+0xba): undefined reference to `kpse_set_program_enabled'
setup.c:(.text+0xd6): undefined reference to `kpse_set_program_enabled'
../lib/.libs/libev.a(tfm.o): In function `tfm_load_font':
tfm.c:(.text+0x3a8): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(tfmfile.o): In function `tfm_load_file':
tfmfile.c:(.text+0x28): undefined reference to `kpse_fopen_trace'
tfmfile.c:(.text+0x12c): undefined reference to `kpse_fclose_trace'
tfmfile.c:(.text+0x148): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(tfmfile.o): In function `lookup_font_metrics':
tfmfile.c:(.text+0x6b9): undefined reference to `kpse_find_file'
tfmfile.c:(.text+0x714): undefined reference to `kpse_find_file'
../lib/.libs/libev.a(tfmfile.o): In function `get_font_metrics':
tfmfile.c:(.text+0x913): undefined reference to `kpse_fopen_trace'
tfmfile.c:(.text+0xdc8): undefined reference to `kpse_fclose_trace'
tfmfile.c:(.text+0x10cd): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(util.o): In function `mdvi_set_logfile':
util.c:(.text+0x31): undefined reference to `kpse_fopen_trace'
util.c:(.text+0x86): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(util.o): In function `mdvi_set_logstream':
util.c:(.text+0xee): undefined reference to `kpse_fclose_trace'
collect2: ld returned 1 exit status
make[3]: *** [evince] Error 1
make[3]: Leaving directory `/var/tmp/portage/evince-0.4.0/work/evince-0.4.0/shell'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/evince-0.4.0/work/evince-0.4.0/shell'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/evince-0.4.0/work/evince-0.4.0'
make: *** [all] Error 2

Looks similar to http://bugzilla.gnome.org/show_bug.cgi?id=313708 but not
identical.
Comment 1 Ed Catmur 2005-09-06 17:33:51 UTC
I guess the problem is that tetex does not install a dynamic lib for kpathsea.

Note: EXTRA_EMAKE="LIBS=-lkpathsea" fixes the build as a temporary hackaround.
Comment 2 TGL 2005-09-06 21:01:05 UTC
Something interesting is that here it happened with libtool-1.5.20, but not with
1.5.18-r1. Ed, what version were you using?

Also, note that there is a bug opened upstream about this issue ("probably a
libtool bug" they say, which is why i tried a previous version):
http://bugzilla.gnome.org/show_bug.cgi?id=313708
Comment 3 Ed Catmur 2005-09-07 03:26:33 UTC
libtool-1.5.20. However tetex-3.0-r2 was merged with libtool-1.5.18 - is that
relevant?
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-09-07 09:18:28 UTC
Aha!  That explains why I got it on one system and not another.  I'll look into
this.

Note that tetex needs to install a shared lib for that so that the nautilus
plugin for evince can be built. I'm working on a fix for tetex, that should also
fix this issue.
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-09-09 13:15:33 UTC
This is fixed by making libkpathsea a shared lib, as is done in bug #105418
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-09-13 11:53:18 UTC
Fixed by tetex fix
Comment 7 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-09-13 11:54:10 UTC
And actually resolve bug