Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29925 - subversion 0.30 doesn't build
Summary: subversion 0.30 doesn't build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-29 10:03 UTC by Julien Allanos (RETIRED)
Modified: 2003-10-17 02:36 UTC (History)
1 user (show)

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


Attachments
emerge output (subversion-0.30.0.log,188.89 KB, text/plain)
2003-09-29 10:04 UTC, Julien Allanos (RETIRED)
Details
emerge output without --silent option (subversion-0.30.0.log,383.48 KB, text/plain)
2003-10-07 10:50 UTC, Julien Allanos (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Allanos (RETIRED) gentoo-dev 2003-09-29 10:03:39 UTC
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!
Comment 1 Julien Allanos (RETIRED) gentoo-dev 2003-09-29 10:04:31 UTC
Created attachment 18484 [details]
emerge output
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2003-09-30 03:59:41 UTC
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.
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-03 05:11:34 UTC
Do you, by any chance, have db4.1 installed?
Comment 4 Julien Allanos (RETIRED) gentoo-dev 2003-10-03 05:50:10 UTC
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)
Comment 5 Stephan Wentz 2003-10-06 09:30:07 UTC
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>
Comment 6 Julien Allanos (RETIRED) gentoo-dev 2003-10-06 10:39:36 UTC
did you rebuild apache2 after db4 has been installed ? i believe apache2
needs to be rebuilded against db4.
Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-07 02:22:33 UTC
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)
Comment 8 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-07 03:09:10 UTC
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.
Comment 9 Julien Allanos (RETIRED) gentoo-dev 2003-10-07 04:19:23 UTC
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 ?
Comment 10 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-07 05:35:01 UTC
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)
Comment 11 Julien Allanos (RETIRED) gentoo-dev 2003-10-07 10:50:36 UTC
Created attachment 18915 [details]
emerge output without --silent option

emerged without --silent.
Comment 12 Dave Nellans 2003-10-08 11:43:56 UTC
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

Comment 13 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-08 12:27:12 UTC
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.
Comment 14 Dave Nellans 2003-10-08 20:33:59 UTC
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!
Comment 15 Darryl VanDorp 2003-10-09 17:03:09 UTC
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.
Comment 16 Julien Allanos (RETIRED) gentoo-dev 2003-10-10 04:33:25 UTC
damned ! it worked ! thanks darryl, building 0.28 then upgrading to 0.30
was successful.
Comment 17 Alastair Burt 2003-10-12 14:05:32 UTC
> 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.
Comment 18 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-13 00:22:10 UTC
I'll close this bug for now as all bugs seem to be fixed
Comment 19 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-17 02:36:43 UTC
*** Bug 31305 has been marked as a duplicate of this bug. ***