I tried the last subversion ebuild but it didn't work with the +apache2 USE flag set. It builds well without it. Apache had been recompiled against db-4 before I tried to emerge subversion. I've attached the full emerge output. Thanks!
Created attachment 18484 [details] emerge output
I have noticed it myself too. The strange thing is that on the host I initially build subversion it did work with apache2 installed. I'll be looking into this for sure.
Do you, by any chance, have db4.1 installed?
no, i have installed 4.0. look : * sys-libs/db : [ I] sys-libs/db-1.85-r1 (1) [ ] sys-libs/db-3.2.9-r2 (3) [M~ ] sys-libs/db-3.2.9-r6 (3) [ ] sys-libs/db-3.2.9-r7 (3) [M~ ] sys-libs/db-3.2.9-r8 (3) [ I] sys-libs/db-3.2.9-r9 (3) [M~ ] sys-libs/db-3.3.11 (3) [M~ ] sys-libs/db-4.0.14 (4) [M~ ] sys-libs/db-4.0.14-r1 (4) [ I] sys-libs/db-4.0.14-r2 (4) [M ] sys-libs/db-4.1.25_p1 (4.1) [M ] sys-libs/db-4.1.25_p1-r1 (4.1) [M ] sys-libs/db-4.1.25 (4.1)
problems here, too. wanted to upgrade subversion from 0.28 to 0.30 without changes in apache2, neon was updated to 0.24.2 in the process. db-4.0.14-r2 is installed but i get a different error (only the last lines here): <snip> cd subversion/tests/libsvn_diff && /bin/sh /var/tmp/portage/subversion-0.30.0/work/subversion-0.30.0/libtool --silent --mode=link gcc -march=pentium3 -O3 -pipe -pthread -DNEON_ZLIB -DNEON_SSL -L/usr/lib -rpath /usr/lib -o diff3-test diff3-test.o ../../../subversion/libsvn_diff/libsvn_diff-1.la ../../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libaprutil-0.la -lgdbm -ldb -lexpat /usr/lib/libapr-0.la -lrt -lm -lcrypt -lnsl -ldl /usr/lib/libaprutil-0.so: undefined reference to `db_create' /usr/lib/libaprutil-0.so: undefined reference to `db_strerror' collect2: ld returned 1 exit status make: *** [subversion/tests/libsvn_diff/diff-test] Error 1 make: *** Waiting for unfinished jobs.... /usr/lib/libaprutil-0.so: undefined reference to `db_create' /usr/lib/libaprutil-0.so: undefined reference to `db_strerror' collect2: ld returned 1 exit status make: *** [subversion/tests/libsvn_diff/diff3-test] Error 1 !!! ERROR: dev-util/subversion-0.30.0 failed. !!! Function src_compile, Line 96, Exitcode 2 !!! make of subversion failed </snip>
did you rebuild apache2 after db4 has been installed ? i believe apache2 needs to be rebuilded against db4.
This problem appears to go away after you do the following: unmerge apache2 and subversion emerge subversion (for which apache2 will be pulled in). It is probably caused by some wrong linking in the apache build script (linking with old libs)
And yes, either apache2 needs to be recompiled after installation of db4 (preferrably) or you could change /usr/bin/apu-config so that -ldb is replaced with -ldb-3. The stability of the second option is unclear though.
unmerged apache2, emerge subversion unstable (and apache2 unstable came too): the build of subversion failed with exactly the same error. maybe my libtool is b0rked ?
Well, libtool is borked in any case (DESTDIR support is lousy), but that shouldn't be the problem in this case. Could you in any case try to compile subversion again, but using the ebuild tool: { ebuild /usr/portage/dev-util/subversion/subversion-0.30.0.ebuild unpack sed -i -e "s,--silent,," \ /var/tmp/subversion-0.30.0/work/subversion-0.30.0/Makefile.in ebuild /usr/portage/dev-util/subversion/subversion-0.30.0.ebuild compile && \ ebuild /usr/portage/dev-util/subversion/subversion-0.30.0.ebuild install && \ ebuild /usr/portage/dev-util/subversion/subversion-0.30.0.ebuild qmerge } &>/tmp/subversion.log and attach the logfile (the above process makes the compilation a bit more verbose)
Created attachment 18915 [details] emerge output without --silent option emerged without --silent.
Sorry to add to the confusion, but I have yet another subversion compile problem that i thought i would add just for reference as I have not been able to solve it. <snip> /var/tmp/portage/subversion-0.30.0/work/subversion-0.30.0/ac-helpers/install-sh -c .libs/libsvn_swig_py-1.so.0.0.0T /var/tmp/portage/subversion-0.30.0/image//usr/lib/libsvn_swig_py-1.so.0.0.0 (cd /var/tmp/portage/subversion-0.30.0/image//usr/lib && rm -f libsvn_swig_py-1.so.0 && ln -s libsvn_swig_py-1.so.0.0.0 libsvn_swig_py-1.so.0) (cd /var/tmp/portage/subversion-0.30.0/image//usr/lib && rm -f libsvn_swig_py-1.so && ln -s libsvn_swig_py-1.so.0.0.0 libsvn_swig_py-1.so) /var/tmp/portage/subversion-0.30.0/work/subversion-0.30.0/ac-helpers/install-sh -c .libs/libsvn_swig_py-1.lai /var/tmp/portage/subversion-0.30.0/image//usr/lib/libsvn_swig_py-1.la /var/tmp/portage/subversion-0.30.0/work/subversion-0.30.0/ac-helpers/install-sh -c .libs/libsvn_swig_py-1.a /var/tmp/portage/subversion-0.30.0/image//usr/lib/libsvn_swig_py-1.a ranlib /var/tmp/portage/subversion-0.30.0/image//usr/lib/libsvn_swig_py-1.a chmod 644 /var/tmp/portage/subversion-0.30.0/image//usr/lib/libsvn_swig_py-1.a libtool: install: warning: remember to run `libtool --finish /usr/lib' subversion/svnversion/svnversion . /repos/svn/trunk > /var/tmp/portage/subversion-0.30.0/image//usr/include/subversion-1/svn-revision.txt make: *** [revision-install] Error 139 !!! ERROR: dev-util/subversion-0.30.0 failed. !!! Function src_install, Line 115, Exitcode 2 !!! Installation of subversion failed
Dave, that is a particularly nasty one. Please make sure that you sync your tree, as I initially made a mistake with the sed script that is supposed this. If that doesn't work you could consider to first unmerge the existing subversion, in which case it should work.
wow, paul... thanks! indeed that did work 100% on all my affected machines. since they are multi-user machines i didn't want to make subversion dissapear even for a few minutes but thats all it took and its working now. thanks for helping solve the mystery!
For what it's worth. Emerging 0.28 then 'upgrading' to 0.30 worked for me ( i have no idea why) but a emerging 0.30 from scratch did not work.
damned ! it worked ! thanks darryl, building 0.28 then upgrading to 0.30 was successful.
> damned ! it worked ! thanks darryl, building 0.28 then upgrading > to 0.30 was successful. The ebuild for O.28 has disappeared from the portage tree but the trick also works with 0.27.
I'll close this bug for now as all bugs seem to be fixed
*** Bug 31305 has been marked as a duplicate of this bug. ***