GNOME Bugzilla – Bug 78803
Problem compiling gnome-db
Last modified: 2004-12-22 21:47:04 UTC
Hi, I try to compile gnome-db-0.2.96 on my linux slackware 8 with gcc-3.0.4 there was no problem with the configure, but for the make i got this : # gmake gmake all-recursive gmake[1]: Entering directory `/tmp/gnome-db-0.2.96' Making all in po gmake[2]: Entering directory `/tmp/gnome-db-0.2.96/po' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/tmp/gnome-db-0.2.96/po' Making all in macros gmake[2]: Entering directory `/tmp/gnome-db-0.2.96/macros' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/tmp/gnome-db-0.2.96/macros' Making all in intl gmake[2]: Entering directory `/tmp/gnome-db-0.2.96/intl' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/tmp/gnome-db-0.2.96/intl' Making all in idl gmake[2]: Entering directory `/tmp/gnome-db-0.2.96/idl' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/tmp/gnome-db-0.2.96/idl' Making all in lib gmake[2]: Entering directory `/tmp/gnome-db-0.2.96/lib' /bin/sh ../libtool --mode=link gcc -O3 -march=i686 -o libgnomedb.la -rpath /usr/local/lib -version-info 0:0:0 GNOME_Database_UI-common.lo GNOME_Database_UI-skels.lo GNOME_Database_UI-stubs.lo e-hpaned.lo e-paned.lo e-vpaned.lo gnome-db-browser.lo gnome-db-combo.lo gnome-db-component.lo gnome-db-config.lo gnome-db-control-corba.lo gnome-db-control-widget.lo gnome-db-control.lo gnome-db-dataset.lo gnome-db-designer.lo gnome-db-dsn-config.lo gnome-db-dsn-config-druid.lo gnome-db-embeddable.lo gnome-db-entry.lo gnome-db-error-dlg.lo gnome-db-error.lo gnome-db-export.lo gnome-db-grid.lo gnome-db-icon-list.lo gnome-db-init.lo gnome-db-label.lo gnome-db-list.lo gnome-db-log-viewer.lo gnome-db-login-dlg.lo gnome-db-login.lo gnome-db-moniker.lo gnome-db-print.lo gnome-db-report.lo gnome-db-shortcut.lo gnome-db-table-editor.lo gnome-db-util.lo gnome-db-window.lo gnome-db.lo -L/usr/local/lib -L/usr/local/lib -lgda-common -lgda-client -L/usr/local/lib -lgthread -lglib -lpthread -L/usr/local/lib -L/usr/X11/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm -L/usr/local/lib -lxml -lz -L/usr/local/lib -lgconf-1 -loaf -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lm -rdynamic -L/usr/local/lib -L/usr/X11/lib -lbonobo -loaf -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lbonobox -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgnome -lgnomesupport -lesd -lasound -laudiofile -ldb1 -lgdk_pixbuf -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm -lxml -lz -rdynamic -L/usr/local/lib -L/usr/X11/lib -lbonobo -loaf -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lbonobox -lgnomeprint -lgnomeui -lgdk_imlib -lSM -lICE -lgnome -lgnomesupport -lesd -lasound -laudiofile -ldb1 -lart_lgpl -lxml -lz -lfreetype -lgdk_pixbuf -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm grep: /usr/lib/libpopt.la: No such file or directory sed: can't read /usr/lib/libpopt.la: No such file or directory libtool: link: `/usr/lib/libpopt.la' is not a valid libtool archive gmake[2]: *** [libgnomedb.la] Error 1 gmake[2]: Leaving directory `/tmp/gnome-db-0.2.96/lib' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/tmp/gnome-db-0.2.96' gmake: *** [all-recursive-am] Error 2 The libpopt.la file is in /usr/local/lib on my system. How can I solve this ? It would be great if you could help me with this ! Best regards, Pierre.
oops, seems something wrong in your setup. Have you got libpopt installed in your system?
Yes, I habe popt-1.6.4 installed. It has installed libpopt in /usr/local/lib : # ls -la /usr/local/lib/libpop* -rw-r--r-- 1 root root 207792 Mar 21 07:02 /usr/local/lib/libpopt.a-rwxr-xr-x 1 root root 698 Mar 21 07:02 /usr/local/lib/libpopt.la* lrwxrwxrwx 1 root root 16 Mar 21 07:02 /usr/local/lib/libpopt.so -> libpopt.so.0.0.0* lrwxrwxrwx 1 root root 16 Mar 21 07:02 /usr/local/lib/libpopt.so.0 -> libpopt.so.0.0.0* -rwxr-xr-x 1 root root 96324 Mar 21 07:02 /usr/local/lib/libpopt.so.0.0.0*
You need also the libpopt.a file, which usually is in the -devel package. This should be installed when you install gnome-libs-devel. If not, it's an error in the packages for your distribution.
I have it : -rw-r--r-- 1 root root 207792 Mar 21 07:02 /usr/local/lib/libpopt.a and i don't use packages, i compiled from sources.
then, add '-L/usr/local/lib' to the linking command, or the library won't be found.
Which linking command are you talking about ? And why the scripts can't detect this automatically ?
In Makefile.am, there is a whatever_LIBADD or whatever_LDADD variable. Just add -L/usr/local/lib to the value that variable has. The problem is the packages you're using (if you're using that). libpopt is not a gnome-db dependency, but a gnome-libs' one, so, when you install gnome-libs, your package system should, by using dependencies, install libpopt, and gnome-libs-devel should install libpopt-dev. It is not doing this, so either install, via packages, libpopt-dev, or hack the Makefile.am.
Ok, but I'm not using any packages, I compiled everything from sources. So everything was installed for libpopt from the popt sources. So the configure script should see that it is installed in /usr/local/lib, and not think that it is in /usr/lib.
yes, but that's gnome-libs' script which has to check, since libpopt is a dependency of gnome-libs, not of gnome-db. That is, gnome-db calls the gnome-config script to get the list of CFLAGS and LDADD flags to compile against gnome-libs, and gnome-libs is not returning '-lpopt' when it should, since it depends on it. It seems that you have installed some things in /usr and other stuff in /usr/local? Have you also installed from sources gnome-libs?
>yes, but that's gnome-libs' script which has to check, since libpopt >is a dependency of gnome-libs, not of gnome-db. That is, gnome-db >calls the gnome-config script to get the list of CFLAGS and LDADD >flags to compile against gnome-libs, and gnome-libs is not returning >'-lpopt' when it should, since it depends on it. Ok, with which name of library is gnome-config called ? >It seems that you have installed some things in /usr and other stuff >in /usr/local? Have you also installed from sources gnome-libs? Yes I installed gnome-libs from sources too.
gnome-config --libs gnomeui what does that say?
# gnome-config --libs gnomeui -rdynamic -L/usr/local/lib -L/usr/X11/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -ldl -lXext -lX11 -lgnome -lgnomesupport -lesd -lasound -laudiofile -lm -ldb1 -lglib
and 'gnome-config --libs gnome' ?
# gnome-config --libs gnome -L/usr/local/lib -lgnome -lgnomesupport -lesd -lasound -laudiofile -lm -ldb1 -lglib
Not fixed...
This is very old code, please update to libgda/libgnomedb 1.0.1 and re-open if it still happens.