You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Amos <a....@gmail.com> on 2006/02/17 07:41:45 UTC

Solaris 9 link failure

I'm hitting a brick wall trying to get subversion-1.3.0 installed on
Solaris 9. Just installed apr-1.2.2 and apr-util-1.2.2 and updated a
bunch of other things. The compile of Subversion seems to go fine,
until it hits this point towards the end.

I should probably point out that for the last 10 or so years we've
been compiling things such that the "make install" throws the binaries
out into another directory that is then linked into client systems
under /usr/local. I've noticed lately libtool seems to be causing some
fuss about this, which I'm guessing is related to the "library X was
moved" business. I don't know if this is related to the final failure
in any way or not.

gcc -I/usr/local/include/apr-1 -DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -D_LARGEFILE64_SOURCE  -g -O2  -g -O2 -pthreads 
-D_LARGEFILE64_SOURCE -DNE_LFS  -I./subversion/include -I./subversion
-I/usr/local/include/neon -I/usr/local/apr/include/apr-1  
-I/usr/local/apr/include/apr-1 -I/usr/local/BerkeleyDB.4.3/include
-I/usr/local/include -o subversion/clients/cmdline/util.o -c
subversion/clients/cmdline/util.c
cd subversion/clients/cmdline && /bin/bash
/usr/soft/that/subversion-1.3.0/src/default/sparc_sun_solaris2.9/libtool
--tag=CC --silent --mode=link gcc -I/usr/local/include/apr-1  -g -O2 
-g -O2 -pthreads  -D_LARGEFILE64_SOURCE -DNE_LFS  -L/usr/local/lib
-Wl,-R/usr/local/BerkeleyDB.4.3/lib,-R/usr/local/lib   
-L/usr/local/BerkeleyDB.4.3/lib -L/usr/local/lib  -rpath
/usr/local/lib -o svn  add-cmd.o blame-cmd.o cat-cmd.o checkout-cmd.o
cleanup-cmd.o commit-cmd.o copy-cmd.o delete-cmd.o diff-cmd.o
export-cmd.o help-cmd.o import-cmd.o info-cmd.o lock-cmd.o log-cmd.o
ls-cmd.o main.o merge-cmd.o mkdir-cmd.o move-cmd.o notify.o prompt.o
propdel-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o props.o
propset-cmd.o resolved-cmd.o revert-cmd.o status-cmd.o status.o
switch-cmd.o unlock-cmd.o update-cmd.o util.o
../../../subversion/libsvn_client/libsvn_client-1.la
../../../subversion/libsvn_wc/libsvn_wc-1.la
../../../subversion/libsvn_ra/libsvn_ra-1.la
../../../subversion/libsvn_delta/libsvn_delta-1.la
../../../subversion/libsvn_subr/libsvn_subr-1.la -L/usr/local/apr/lib
-R/usr/local/apr/lib -laprutil-1 -ldb-4.3 -lexpat
/usr/local/apr/lib/libapr-1.la -luuid -lsendfile -lrt -lsocket -lnsl 
-lpthread -ldl /usr/local/lib/libneon.la -lsocket
libtool: link: warning: library `/usr/local/lib/libaprutil-1.la' was moved.
libtool: link: warning: library `/usr/local/lib/libaprutil-1.la' was moved.
ld: warning: file ../../../subversion/libsvn_wc/.libs/libsvn_wc-1.so:
linked to /usr/soft/that/subversion-1.3.0/src/default/sparc_sun_solaris2.9/subversion/libsvn_wc/.libs/libsvn_wc-1.so:
attempted multiple inclusion of file
ld: warning: file ../../../subversion/libsvn_ra/.libs/libsvn_ra-1.so:
linked to /usr/soft/that/subversion-1.3.0/src/default/sparc_sun_solaris2.9/subversion/libsvn_ra/.libs/libsvn_ra-1.so:
attempted multiple inclusion of file
ld: warning: file
../../../subversion/libsvn_delta/.libs/libsvn_delta-1.so: linked to
/usr/soft/that/subversion-1.3.0/src/default/sparc_sun_solaris2.9/subversion/libsvn_delta/.libs/libsvn_delta-1.so:
attempted multiple inclusion of file
ld: warning: file
../../../subversion/libsvn_subr/.libs/libsvn_subr-1.so: linked to
/usr/soft/that/subversion-1.3.0/src/default/sparc_sun_solaris2.9/subversion/libsvn_subr/.libs/libsvn_subr-1.so:
attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
libintl_dgettext                    blame-cmd.o
libintl_bind_textdomain_codeset    
/usr/soft/that/subversion-1.3.0/src/default/sparc_sun_solaris2.9/subversion/libsvn_subr/.libs/libsvn_subr-1.so
libintl_bindtextdomain             
/usr/soft/that/subversion-1.3.0/src/default/sparc_sun_solaris2.9/subversion/libsvn_subr/.libs/libsvn_subr-1.so
ld: fatal: Symbol referencing errors. No output written to svn
collect2: ld returned 1 exit status
gmake: *** [subversion/clients/cmdline/svn] Error 1


The closest thing in the archives I could find to this is:

http://article.gmane.org/gmane.comp.version-control.subversion.user/35959

However, there didn't seem to be any followups, alas. I assume there
are some folks compiling this on Solaris 9, right? Any advice would be
appreciated. Have used CVS for a long time and am wanting to explore
Subversion now.

Amos

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


Re: Solaris 9 link failure

Posted by Amos <a....@gmail.com>.
On 2/17/06, Amos <a....@gmail.com> wrote:
>
>
> Undefined                       first referenced
> symbol                             in file
> libintl_dgettext                    blame-cmd.o
> libintl_bind_textdomain_codeset
> /usr/soft/that/subversion-1.3.0
> /src/default/sparc_sun_solaris2.9/subversion/libsvn_subr/.libs/libsvn_subr-
> 1.so
> libintl_bindtextdomain
> /usr/soft/that/subversion-1.3.0
> /src/default/sparc_sun_solaris2.9/subversion/libsvn_subr/.libs/libsvn_subr-
> 1.so
> ld: fatal: Symbol referencing errors. No output written to svn
> collect2: ld returned 1 exit status
> gmake: *** [subversion/clients/cmdline/svn] Error 1
>
>
> The closest thing in the archives I could find to this is:
>
> http://article.gmane.org/gmane.comp.version-control.subversion.user/35959



Well, for the benefit of the archives, it seems the fix was as simple as
just defining the LDFLAGS environment variable thusly before running
configure:

LDFLAGS="-lintl"

Though, for my sake, to ensure completeness, this is what I used:

CC="gcc -I/usr/local/include/apr-1 -I${apache}/include"
LDFLAGS="-lintl -L/usr/local/lib -R/usr/local/lib -L${berkdb}/lib
-R${berkdb}/lib -L${apache}/lib -R${apache}/lib"