Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27386 - gnome-network fails to emerge
Summary: gnome-network fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 29131 29772 30484 37072 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-26 18:29 UTC by Adam
Modified: 2004-01-16 13:44 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to configure to fix ldb1 to ldb (gnome-network-1.0.2-r1.ldb1.patch,2.33 KB, patch)
2003-08-31 21:27 UTC, Mike Gardiner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam 2003-08-26 18:29:39 UTC
I cannot emerge gnome-network.  It exits with the following error: 
db.o(.text+0x2b): In function `database_open':
: undefined reference to `__db185_open'
collect2: ld returned 1 exit status
distcc[1664] ERROR: compile on localhost failed with exit code 1
make[2]: *** [gnome-sync] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gnome-network-1.0.2-r1/work/gnome-network-1.0.2/sync'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gnome-network-1.0.2-r1/work/gnome-network-1.0.2'
make: *** [all-recursive-am] Error 2

!!! ERROR: gnome-extra/gnome-network-1.0.2-r1 failed.
!!! Function src_compile, Line 38, Exitcode 2
!!! compile error

My emerge info reads:  
Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/var/cache/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ mad
mikmod mmx mpeg ncurses pdflib png spell truetype xml2 xmms xv alsa gdbm berkdb
slang readline arts tetex bonobo svga ggi tcltk guile X sdl gpm tcpd pam libwww
ssl esd imlib oggvorbis gnome gtk qt kde opengl ldap cdr aalib cjk cscope dga
dnd doc ethereal evo gtk2 jikes libgda maildir mbox md5sum mng moznocompose
moznoirc moznomail mpi music nowin nptl offensive pic S3TC sasl sis src sse
stroke threads type1 usb xml -java -motif -nls -quicktime -zlib -perl -python"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon -fomit-frame-pointer -frename-registers -funroll-loops
-pipe"
CXXFLAGS="-O2 -march=athlon -fomit-frame-pointer -frename-registers
-funroll-loops -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox usersandbox userpriv distcc"
Comment 1 foser (RETIRED) gentoo-dev 2003-08-31 10:44:45 UTC
confirmed, the problem is the '-ldb1' which should be '-ldb' ..

need to hack up a fix for this.
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2003-08-31 21:27:05 UTC
Created attachment 16886 [details, diff]
patch to configure to fix ldb1 to ldb

the owner takes no responsibility for damage to eyes caused by ugly hacks. do
not continue if you have a known allergy to said hacks.
Comment 3 Mathew Alexander (Marsupilami23) 2003-09-13 16:38:57 UTC
ok, not that I want to sound like a total idiot, but how are we suppose to apply this patch, and to what are we to apply the patch to? The ebuild? the configure file?
Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2003-09-13 20:29:13 UTC
if you look at the first line of the patch you'll see 'configure' but if you're not used to patching that sort of thing is easy to miss. the best way for you to test this is to save the patch into gnome-extra/gnome-network/files and then add the following function under DEPEND and before src_compile( ) in the gnome-network ebuild.

src_unpack() {

unpack ${A}
cd ${S}
epatch ${FILESDIR}/gnome-network-1.0.2-r1.ldb1.patch

}
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-09-17 13:43:05 UTC
is it just me or there actually is a /usr/lib/libdb1.so provided by sys-libs/db-1.85-r1 ? 

mcvaio lib # etcat belongs /usr/lib/libdb1.so.2 sys-libs
Searching for /usr/lib/libdb1.so.2 in sys-libs ...
sys-libs/db-1.85-r1

if anything, that should be patched to replace -ldb1 to -ldb-1, right?
Comment 6 foser (RETIRED) gentoo-dev 2003-09-19 09:50:13 UTC
i think it's a header type of problem, it now probably builds against the db4 headers with 185 compatability and picks the db1 .so which points to db1 (if around?) . What to do depends on which dep brings in db and if that one is compatible with newer db versions, if not we should fix the ebuild to only use db1 headers (there is some old hack to do this already in the ebuild, apperantly it doesn't work as expected anymore) otherwise we can just go for the generic db headers/shared objects.

lqx: the -ldb1 is correct btw, it's part of the name not of the versioning. db1 uses both btw (the part which gives us problems here).
Comment 7 Michal Januszewski (RETIRED) gentoo-dev 2003-09-20 12:46:35 UTC
On my system it builds against db1, but gets headers from db3. I fixed it by changing the "old hack" in ebuild to:

sed -i "N ; N ; N ; N ; N ; N ; s/#ifdef HAVE_DB_185_H\n# include <db_185.h>\n#else\n# include <db.h>\n#endif/#include <db1\/db.h>/g" sync/sync.h

This gets rid of db_185.h and makes sure gnome-network uses db1 headers and not db2/db3/db4/whatever.
Comment 8 foser (RETIRED) gentoo-dev 2003-09-28 04:58:47 UTC
*** Bug 29772 has been marked as a duplicate of this bug. ***
Comment 9 foser (RETIRED) gentoo-dev 2003-10-06 09:13:54 UTC
*** Bug 30484 has been marked as a duplicate of this bug. ***
Comment 10 foser (RETIRED) gentoo-dev 2003-10-12 10:02:16 UTC
*** Bug 29131 has been marked as a duplicate of this bug. ***
Comment 11 Adam 2003-10-25 21:56:37 UTC
Gnome-network 1.99.2 has just been released.  Maybe that will compile more
successfully...
Comment 12 Jacob Sheck 2003-11-11 13:14:17 UTC
I have duplicated this problem with my fresh install on a P4 system.
Comment 13 Adam 2003-12-19 14:21:58 UTC
Mask maybe?  Untill gnome-2.6 when its officially released?
Comment 14 foser (RETIRED) gentoo-dev 2004-01-03 09:52:22 UTC
*** Bug 37072 has been marked as a duplicate of this bug. ***
Comment 15 Adam 2004-01-13 13:53:25 UTC
I am assuming it will be added when gnome 2.6 comes out.
Comment 16 foser (RETIRED) gentoo-dev 2004-01-13 15:13:10 UTC
That still leaves the intial bug, which is a problem, but we're sort of pressed on time and don't get around to the bugs of less immediate importance atm. 
Comment 17 foser (RETIRED) gentoo-dev 2004-01-16 13:44:28 UTC
Ok, finally got around to this. I made the suggested fix in #7 into a patch and applied it. That should fix these problems as far as i can see. Please do test.

I also added 1.99.5 to the tree, p.mask-ed . It probably misses some runtime deps & configure time switches, but it should work mostly. If anyone can clean that ebuild a bit more up, that would be cool. Please post patches here on bugzilla.

Closing FIXED, i assume the problems got solved with this patch.