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 78803 - Problem compiling gnome-db
Problem compiling gnome-db
Status: RESOLVED FIXED
Product: gnome-db
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Rodrigo Moya
Rodrigo Moya
Depends on:
Blocks:
 
 
Reported: 2002-04-15 20:41 UTC by Pierre
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pierre 2002-04-15 20:41:43 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.
Comment 1 Rodrigo Moya 2002-04-16 18:49:13 UTC
oops, seems something wrong in your setup. Have you got libpopt
installed in your system?
Comment 2 Pierre 2002-04-16 19:01:41 UTC
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*
Comment 3 Rodrigo Moya 2002-04-16 19:08:17 UTC
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.
Comment 4 Pierre 2002-04-25 11:46:22 UTC
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.
Comment 5 Rodrigo Moya 2002-04-25 21:15:24 UTC
then, add '-L/usr/local/lib' to the linking command, or the library
won't be found.
Comment 6 Pierre 2002-04-25 21:39:54 UTC
Which linking command are you talking about ?

And why the scripts can't detect this automatically ?
Comment 7 Rodrigo Moya 2002-04-25 21:56:48 UTC
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.
Comment 8 Pierre 2002-04-26 08:01:18 UTC
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.
Comment 9 Rodrigo Moya 2002-04-26 10:52:23 UTC
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?
Comment 10 Pierre 2002-04-26 16:02:01 UTC
>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.

Comment 11 Rodrigo Moya 2002-04-30 21:40:22 UTC
gnome-config --libs gnomeui

what does that say?
Comment 12 Pierre 2002-05-01 05:01:15 UTC
# 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

Comment 13 Rodrigo Moya 2002-05-01 12:08:54 UTC
and 'gnome-config --libs gnome' ?
Comment 14 Pierre 2002-05-01 17:24:38 UTC
# gnome-config --libs gnome
-L/usr/local/lib -lgnome -lgnomesupport -lesd -lasound -laudiofile -lm
-ldb1 -lglib
Comment 15 Pierre 2003-11-11 06:38:40 UTC
Not fixed...
Comment 16 Rodrigo Moya 2003-11-15 21:55:35 UTC
This is very old code, please update to libgda/libgnomedb 1.0.1 and
re-open if it still happens.