[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Build Problem on Solaris8 (gcc 2.95.2)

From: Max Bernhardt - extern TAGP - Tel. 3749 <Max.Bernhardt_at_vodafone.com>
Date: 2004-04-14 12:00:02 CEST

Hi,

i tried to build subversion 1.0.1 from scratch, but i ran into some
problems linking libsvn_ra_dav.
(gcc is installed in /usr/local/pd/bin, which is in my path. Furthermore
/usr/local/pd/lib, which
contains libstdc++ is in my LD_LIBRARY_PATH)
Here's my story ....

First i downloaded a current openssl (openssl-0.9.7d.tar.gz) and built
it
like that:

    Configure --prefix=/localdisk/tesp/mbernhar/subversion/usr
    make
    make install

Then i downloaded a current apache tarball (httpd-2.0.49.tar.gz) and
built it
like that:

    buildconf.sh
    configure --prefix=/localdisk/tesp/mbernhar/subversion/usr/
--enable-dav=shared --with-gdbm=no --enable-deflate=shared --enable-so
--with-berkeley-db=/localdisk/tesp/mbernhar/subversion/usr
--with-dbm=db4 --enable-ssl
    make
    make install

At last i downloaded the subversion 1.0.1 tarball
(subversion-1.0.1.tar.gz).
Then i used configure like that:

    configure --with-berkeley-db=/localdisk/tesp/mbernhar/subversion/usr
--with-apxs=/localdisk/tesp/mbernhar/subversion/usr/bin/apxs
--with-apr=/localdisk/tesp/mbernhar/subversion/usr
--with-apr-util=/localdisk/tesp/mbernhar/subversion/usr --with-ssl

This gave me quite a few problems with libneon, so i went into the neon
subdirectory
and did the following:

    configure --prefix=/localdisk/tesp/mbernhar/subversion/usr/
--with-ssl CPPFLAGS=-I/localdisk/tesp/mbernhar/subversion/usr/include
LDFLAGS=-L/localdisk/tesp/mbernhar/subversion/usr/libD3170590_REF1,00.html

    make
    make install

Afterwards i tried to build subversion again with the following
commands:

    configure --with-berkeley-db=/localdisk/tesp/mbernhar/subversion/usr
--with-apxs=/localdisk/tesp/mbernhar/subversion/usr/bin/apxs
--with-apr=/localdisk/tesp/mbernhar/subversion/usr
--with-apr-util=/localdisk/tesp/mbernhar/subversion/usr --with-ssl
CPPFLAGS=-I/localdisk/tesp/mbernhar/subversion/usr/include
--prefix=/localdisk/tesp/mbernhar/subversion/usr/
--with-neon=/localdisk/tesp/mbernhar/subversion/usr
LDFLAGS=-L/localdisk/tesp/mbernhar/subversion/usr/lib

(I'm not certain about the necessity of the CPPFLAGS and
LDFLAGS switches. Well i tried it without them and it didn't
change anything, so ...)

    make

(By the way i use /usr/ccs/bin/ld as linker and /usr/ccs/bin/make as
maketool.)

This works fine until it reaches the libsvn_ra_dav subdirectory. The
compile works fine, but the link step fails
with the following errors:

cd subversion/libsvn_ra_dav && /bin/bash
/localdisk/tesp/mbernhar/subversion/subversion-1.0.1/libtool --silent
--mode=link gcc -g -O2 -g -O2 -pthreads -DNEON_ZLIB -DNEON_SSL
-L/localdisk/tesp/mbernhar/subversion/usr/lib
-L/localdisk/tesp/mbernhar/subversion/usr/lib
-L/localdisk/tesp/mbernhar/subversion/usr//lib -rpath
/localdisk/tesp/mbernhar/subversion/usr//lib -o libsvn_ra_dav-1.la
commit.lo fetch.lo log.lo merge.lo options.lo props.lo session.lo
util.lo ../../subversion/libsvn_delta/libsvn_delta-1.la
../../subversion/libsvn_subr/libsvn_subr-1.la
/localdisk/tesp/mbernhar/subversion/usr//lib/libaprutil-0.la -ldb
-lexpat /localdisk/tesp/mbernhar/subversion/usr//lib/libapr-0.la
-lsendfile -lrt -lm -lsocket -lnsl -lresolv -lpthread -ldl
-L/localdisk/tesp/mbernhar/subversion/usr/lib
-L/localdisk/tesp/mbernhar/subversion/usr//lib -lneon -lssl -lcrypto
-lnsl -lsocket -lz -L/localdisk/tesp/mbernhar/subversion/usr//lib
-R/localdisk/tesp/mbernhar/subversion/usr//lib -lxml2 -lz -lpthread -lm
-lsocket -lnsl -lsocket
libtool: link: warning:
`/localdisk/tesp/mbernhar/subversion/usr/lib/libexpat.la' seems to be
moved
libtool: link: warning:
`/localdisk/tesp/mbernhar/subversion/usr/lib/libexpat.la' seems to be
moved
Text relocation remains referenced
    against symbol offset in file
<unknown> 0xe0
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_request.o)
<unknown> 0xe4
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_request.o)
<unknown> 0xe8
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_request.o)
<unknown> 0xec
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_request.o)
<unknown> 0xf0
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_request.o)
<unknown> 0xf4
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_request.o)

 ... loooong snip (like 40000 lines) ....

fclose 0xef8
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_openssl.o)
fclose 0x10c0
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_openssl.o)
fclose 0x1158
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_openssl.o)
fclose 0x1174
/localdisk/tesp/mbernhar/subversion/usr//lib/libneon.a(ne_openssl.o)
fclose 0x1c8
/localdisk/tesp/mbernhar/subversion/usr/lib/libcrypto.a(bss_file.o)
fclose 0x464
/localdisk/tesp/mbernhar/subversion/usr/lib/libcrypto.a(bss_file.o)
fclose 0x4c4
/localdisk/tesp/mbernhar/subversion/usr/lib/libcrypto.a(bss_file.o)
fclose 0x1a8
/localdisk/tesp/mbernhar/subversion/usr/lib/libcrypto.a(randfile.o)
fclose 0x25c
/localdisk/tesp/mbernhar/subversion/usr/lib/libcrypto.a(randfile.o)
fclose 0xe84
/localdisk/tesp/mbernhar/subversion/usr/lib/libcrypto.a(ui_openssl.o)
fclose 0xea4
/localdisk/tesp/mbernhar/subversion/usr/lib/libcrypto.a(ui_openssl.o)
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target
`subversion/libsvn_ra_dav/libsvn_ra_dav-1.la'

Anybody know what's wrong ?

TIA,
        Max

--
"There is no spoon ..." ;-)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Wed Apr 14 12:00:57 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.