After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 333334 - evince 0.5.1 failing to compile
evince 0.5.1 failing to compile
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
0.5.x
Other Linux
: Urgent critical
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-03-04 04:31 UTC by Robin Cook
Modified: 2006-05-05 15:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bzip2 compile log with config.log appended. (22.93 KB, application/x-bzip)
2006-03-04 22:36 UTC, Robin Cook
Details
libev.la file (1.21 KB, application/octet-stream)
2006-03-05 21:26 UTC, Robin Cook
Details

Description Robin Cook 2006-03-04 04:31:28 UTC
/usr/bin/make  all-am
make[3]: Entering directory `/usr/src/evince-0.5.1/shell'
/bin/sh ../libtool --mode=link gcc  -march=athlon-mp -mmmx -mfpmath=sse -msse -m3dnow -pipe -DPIC -fPIC -O3  -z combreloc -s -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-properties-dialog.o ev-properties-fonts.o ev-utils.o ev-view-accessible.o ev-view.o ev-window.o ev-window-title.o ev-sidebar.o ev-sidebar-links.o ev-sidebar-page.o ev-sidebar-thumbnails.o ev-stock-icons.o main.o ev-print-job.o ../cut-n-paste/recent-files/librecent.la ../cut-n-paste/zoom-control/libephyzoom.la ../cut-n-paste/toolbar-editor/libtoolbareditor.la ../properties/libevproperties.la ../lib/libev.la -pthread -L/usr/X11R6/lib -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgnomevfs-2 -lbonobo-2 -lbonobo-activation -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lz -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgconf-2 -lORBit-2 -lgthread-2.0 -lpoppler-glib -lpoppler -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lgnome-keyring -lglib-2.0   -ldbus-glib-1 -ldbus-1 -lglib-2.0   -lz -ltiff -Wl,--export-dynamic -lgnomeprintui-2-2 -lgnomeprint-2-2 -lgnomecanvas-2 -lxml2 -lz -lart_lgpl_2 -lpangoft2-1.0 -lgtk-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
gcc -march=athlon-mp -mmmx -mfpmath=sse -msse -m3dnow -pipe -DPIC -fPIC -O3 -z combreloc -s -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-properties-dialog.o ev-properties-fonts.o ev-utils.o ev-view-accessible.o ev-view.o ev-window.o ev-window-title.o ev-sidebar.o ev-sidebar-links.o ev-sidebar-page.o ev-sidebar-thumbnails.o ev-stock-icons.o main.o ev-print-job.o -pthread -Wl,--export-dynamic  ../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/libstdc++.so -L/usr/src/gcc-4.0.2.bld/i686-pc-linux-gnu/libstdc++-v3/src -L/usr/src/gcc-4.0.2.bld/i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/usr/src/gcc-4.0.2.bld/gcc -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.0.2 -L/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../.. -lc -lgcc_s /usr/lib/libt1.so -L/usr/X11R6/lib /usr/lib/libgnomeui-2.so /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libbonoboui-2.so /usr/lib/libgnome-2.so /usr/lib/libpopt.so /usr/lib/libgnomevfs-2.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libglade-2.0.so /usr/lib/libgconf-2.so /usr/lib/libORBit-2.so /usr/lib/libgthread-2.0.so /usr/lib/libpoppler-glib.so /usr/lib/libpoppler.so /usr/lib/libgnome-keyring.so /usr/lib/libdbus-glib-1.so /usr/lib/libdbus-1.so /usr/lib/libtiff.so /usr/lib/libgnomeprintui-2-2.so /usr/lib/libgnomeprint-2-2.so /usr/lib/libgnomecanvas-2.so /usr/lib/libxml2.so -lz /usr/lib/libart_lgpl_2.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
make[3]: Leaving directory `/usr/src/evince-0.5.1/shell'
make[2]: Leaving directory `/usr/src/evince-0.5.1/shell'
../lib/.libs/libev.a(dviread.o): In function `mdvi_destroy_context':
dviread.c:(.text+0x639): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(dviread.o): In function `mdvi_init_context':
dviread.c:(.text+0x1a03): undefined reference to `kpse_fopen_trace'
../lib/.libs/libev.a(dviread.o): In function `mdvi_reload':
dviread.c:(.text+0x28c5): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(dviread.o): In function `mdvi_dopage':
dviread.c:(.text+0x2b60): 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 `load_font_file':
font.c:(.text+0x130): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(font.o): In function `font_drop_one':
font.c:(.text+0x1e2): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(font.o): In function `font_reset_font_glyphs':
font.c:(.text+0xb91): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(font.o): In function `font_free_unused':
font.c:(.text+0xccd): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(fontsrch.o): In function `mdvi_lookup_font':
fontsrch.c:(.text+0x4fc): undefined reference to `kpse_find_glyph'
fontsrch.c:(.text+0x538): undefined reference to `kpse_find_file'
fontsrch.c:(.text+0x6c4): undefined reference to `kpse_find_glyph'
fontsrch.c:(.text+0x765): 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+0x116): undefined reference to `kpse_find_glyph'
pk.c:(.text+0x158): 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(t1.o): In function `t1_lookup_font':
t1.c:(.text+0x4b): undefined reference to `kpse_find_file'
t1.c:(.text+0x1a0): undefined reference to `kpse_find_file'
../lib/.libs/libev.a(t1.o): In function `t1_load_font':
t1.c:(.text+0x463): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(tfm.o): In function `tfm_load_font':
tfm.c:(.text+0x4e0): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(tfmfile.o): In function `lookup_font_metrics':
tfmfile.c:(.text+0x54): undefined reference to `kpse_find_file'
tfmfile.c:(.text+0x84): undefined reference to `kpse_find_file'
../lib/.libs/libev.a(tfmfile.o): In function `tfm_load_file':
tfmfile.c:(.text+0x26e): undefined reference to `kpse_fopen_trace'
tfmfile.c:(.text+0x36a): undefined reference to `kpse_fclose_trace'
tfmfile.c:(.text+0x37c): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(tfmfile.o): In function `get_font_metrics':
tfmfile.c:(.text+0xa72): undefined reference to `kpse_fopen_trace'
tfmfile.c:(.text+0xe51): undefined reference to `kpse_fclose_trace'
tfmfile.c:(.text+0x14d0): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(util.o): In function `mdvi_set_logfile':
util.c:(.text+0x62): undefined reference to `kpse_fclose_trace'
util.c:(.text+0x80): undefined reference to `kpse_fopen_trace'
../lib/.libs/libev.a(util.o): In function `mdvi_set_logstream':
util.c:(.text+0xeb): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(fontmap.o): In function `register_encoding':
fontmap.c:(.text+0x1e7): undefined reference to `kpse_find_file'
fontmap.c:(.text+0x206): undefined reference to `kpse_fopen_trace'
fontmap.c:(.text+0x2dc): undefined reference to `kpse_fclose_trace'
fontmap.c:(.text+0x518): undefined reference to `kpse_find_file'
fontmap.c:(.text+0x53e): undefined reference to `kpse_find_file'
../lib/.libs/libev.a(fontmap.o): In function `ps_init_default_paths':
fontmap.c:(.text+0xa0c): undefined reference to `kpse_path_expand'
fontmap.c:(.text+0xa1e): undefined reference to `kpse_path_expand'
../lib/.libs/libev.a(fontmap.o): In function `mdvi_ps_read_fontmap':
fontmap.c:(.text+0xad2): undefined reference to `kpse_path_search'
fontmap.c:(.text+0xaea): undefined reference to `kpse_fopen_trace'
fontmap.c:(.text+0xc5b): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(fontmap.o): In function `mdvi_ps_find_font':
fontmap.c:(.text+0xfe5): undefined reference to `kpse_path_search'
../lib/.libs/libev.a(fontmap.o): In function `mdvi_load_fontmap':
fontmap.c:(.text+0x10be): undefined reference to `kpse_find_file'
fontmap.c:(.text+0x10e5): undefined reference to `kpse_fopen_trace'
fontmap.c:(.text+0x13cc): undefined reference to `kpse_fclose_trace'
fontmap.c:(.text+0x1792): undefined reference to `kpse_find_file'
fontmap.c:(.text+0x17b4): undefined reference to `kpse_fopen_trace'
fontmap.c:(.text+0x1818): undefined reference to `kpse_find_file'
../lib/.libs/libev.a(fontmap.o): In function `mdvi_request_encoding':
fontmap.c:(.text+0x1945): undefined reference to `kpse_fopen_trace'
fontmap.c:(.text+0x1a00): undefined reference to `kpse_fclose_trace'
fontmap.c:(.text+0x1c4f): undefined reference to `kpse_fclose_trace'
fontmap.c:(.text+0x1c7e): undefined reference to `kpse_fclose_trace'
../lib/.libs/libev.a(fontmap.o): In function `mdvi_init_fontmaps':
fontmap.c:(.text+0x1e6b): undefined reference to `kpse_cnf_get'
fontmap.c:(.text+0x1e95): undefined reference to `kpse_find_file'
fontmap.c:(.text+0x1eb1): undefined reference to `kpse_fopen_trace'
fontmap.c:(.text+0x2030): undefined reference to `kpse_fclose_trace'
fontmap.c:(.text+0x2189): undefined reference to `kpse_path_expand'
fontmap.c:(.text+0x21bc): undefined reference to `kpse_fopen_trace'
fontmap.c:(.text+0x222b): undefined reference to `kpse_path_expand'
../lib/.libs/libev.a(fontmap.o): In function `mdvi_ps_get_metrics':
fontmap.c:(.text+0x25b0): undefined reference to `kpse_path_search'
collect2: ld returned 1 exit status
make[3]: *** [evince] Error 1
make[2]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/evince-0.5.1'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Comment 1 Nickolay V. Shmyrev 2006-03-04 04:47:05 UTC
What configure keys are you using?
Comment 2 Martin Kretzschmar 2006-03-04 21:15:55 UTC
Didn't we have some confusion wrt. libkpathsea in the past? (Like, no libkpathsea.so, only libkpathsea.a? Can't remember the details.)
Comment 3 Robin Cook 2006-03-04 22:34:30 UTC
It was created by evince configure 0.5.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info --enable-comics --enable-ps --enable-tiff --enable-t1lib --disable-djvu --enable-nautilus --enable-dvi --enable-pixbuf --build=i686-pc-linux-gnu

Comment 4 Robin Cook 2006-03-04 22:36:12 UTC
Created attachment 60663 [details]
Bzip2 compile log with config.log appended.
Comment 5 Nickolay V. Shmyrev 2006-03-05 17:40:45 UTC
Can you attach libev.la also?
Comment 6 Nickolay V. Shmyrev 2006-03-05 18:51:32 UTC
Mine libtool does much more advanced things with kpathsea:

rm -fr .libs/libmdvi.lax
mkdir .libs/libmdvi.lax
rm -fr .libs/libmdvi.lax/libkpathsea.a
mkdir .libs/libmdvi.lax/libkpathsea.a
(cd .libs/libmdvi.lax/libkpathsea.a && ar x /usr/lib/libkpathsea.a)
copying selected object files to avoid basename conflicts...
ln .libs/libmdvi.lax/libkpathsea.a/hash.o .libs/libmdvi.lax/lt1-hash.o || cp .liln .libs/libmdvi.lax/libkpathsea.a/fontmap.o .libs/libmdvi.lax/lt2-fontmap.o ||
ar cru .libs/libmdvi.a .libs/afmparse.o .libs/bitmap.o .libs/color.o .libs/commoranlib .libs/libmdvi.a
rm -fr .libs/libmdvi.lax

What libtool version do you have? Probably it's just a libtool bug. Although we need to have workaround it
Comment 7 Robin Cook 2006-03-05 21:26:33 UTC
Created attachment 60714 [details]
libev.la file
Comment 8 Robin Cook 2006-03-05 21:27:36 UTC
Libtool version is 1.5.22
Comment 9 Nickolay V. Shmyrev 2006-03-06 19:49:44 UTC
Well, I've investigated the problem a bit, actually the system libtool is completely unrelated to that problem, with distribution ltmain.sh is going and libtool is created by configure from that ltmain.sh. Can you attach libtool from evince dir here?

If you can debug this shell script and find the reason it ignores -lkpathsea in build of libmdvi.la, that would be helpful.
Comment 10 Nickolay V. Shmyrev 2006-03-06 19:57:37 UTC
Ok, really it's a problem of libtool from distribution :) I also can't build evince from tarball due to the same bug.
Comment 11 Nickolay V. Shmyrev 2006-03-06 21:13:19 UTC
After deeper investigation I've found that it's a libtool bug that seems to be fixed in libtool 1.9 (but this doesn't make our life easier). Here are the lines
in libtool script:

            convenience="$convenience $dir/$old_library"
            old_convenience="$old_convenience $dir/$old_library"
            deplibs="$dir/$old_library $deplibs"
            link_static=yes          
          fi
        fi # link shared/static library?


Unfortunately in 1.5.22 convenience=... is missing and that is the reason of problem.
Comment 12 Nickolay V. Shmyrev 2006-03-06 22:42:41 UTC
As a solution I am going to raise LIBTOOL requirement in autogen.sh, what do others think about that?
Comment 13 Robin Cook 2006-03-06 23:21:51 UTC
Don't know that I can convince the rest of the Sourcemage developer to change the libtool package to the devel version.
Comment 14 Nickolay V. Shmyrev 2006-05-05 15:29:44 UTC
Fixed in rather hackish way, we need to return back when libtool will be able to track library dependencies.