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

Re: build errors on SCO UnixWare 7.1.1

From: Peter Wemm <peter_at_wemm.org>
Date: Thu, 24 Apr 2008 17:42:29 -0700

On Thu, Apr 24, 2008 at 10:52 AM, Alan Barrett <apb_at_cequrux.com> wrote:
> On Thu, 24 Apr 2008, dpsvn_at_tri8.com wrote:
> > I am trying to install Subversion (both server and client)
> > from the tarball, 1.4.6, on UnixWare 7.1.1.
>
> [The build breaks when it performs a complicated command
> that ends with the following arguments:]
>
> > -lm -lsocket -lnsl -lresolv -lsocket -lz
>
> [The error message is:]
>
> > UX:ld: INFO: text relocations referenced from files:
> > libz.a(deflate.o)
> > libz.a(inflate.o)
> > libz.a(infblock.o)
> > libz.a(infcodes.o)
> > UX:ld: ERROR: relocations remain against non-writeable,
> > allocatable section .rodata
>
> I think that error message means "there are undefined symbols referenced
> from libz.a". If you can figure out what the undefined symbols are, and
> then figure out what library defines those symbols, then you can add
> the missing library to the end of the failing command. Are you able to
> build other programs that use libz?
>
> Perhaps you just need to add "-lc" to the end of the command?
>
> --apb (Alan Barrett)

No, the problem is the "text relocations" and "relocations remain
against non-writeable, allocatable section .rodata". The build
process is trying to link libz.a (non-pic) into a (pic) .so file.

Try compiling the libz with -fpic in the compiler cflags. Or build a
libz.so. It has been a VERY long time since I've had to deal with
this toolchain, but I do recall that it rigidly enforces PIC code and
shared libs.

Or, you could try --disable-shared for the svn configure script...

-- 
Peter Wemm - peter_at_wemm.org; peter_at_FreeBSD.org; peter_at_yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5
"If Java had true garbage collection, most programs would delete
themselves upon execution." -- Robert Sewell
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-25 02:43:03 CEST

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.