You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by dp...@tri8.com on 2008/04/24 15:40:22 UTC

build errors on SCO UnixWare 7.1.1

Greetings,

It's possible that this should go merely in the *nix
forum--please pardon if so.

I will summarize the problem here--normally I'd plan on
driving this thing until I get a solution, but unfortunately
the group I'm doing this for cannot pursue it much, so I may
just have to "quit" (very irksome).

I am trying to install Subversion (both server and client)
from the tarball, 1.4.6, on UnixWare 7.1.1.

It fails, with this:

...
cd subversion/libsvn_subr && /bin/ksh
/home/users/dyost/bz/831/subversion-1.4.6/libtool --tag=CC
--silent --mode=link gcc  -g -O2  -g -O2 -pthread
-D_LARGEFILE64_SOURCE -DNE_LFS
-L/home/users/dyost/bz/831/subversion-1.4.6/apr-util/xml/expat/lib
-rpath /usr/local/lib -o libsvn_subr-1.la  auth.lo
cmdline.lo compat.lo config.lo config_auth.lo config_file.lo
config_win.lo constructors.lo ctype.lo date.lo dso.lo
error.lo hash.lo io.lo kitchensink.lo lock.lo md5.lo nls.lo
opt.lo path.lo pool.lo prompt.lo quoprint.lo
simple_providers.lo sorts.lo ssl_client_cert_providers.lo
ssl_client_cert_pw_providers.lo
ssl_server_trust_providers.lo stream.lo subst.lo
svn_base64.lo svn_string.lo target.lo time.lo user.lo
username_providers.lo utf.lo utf_validate.lo validate.lo
version.lo xml.lo
/home/users/dyost/bz/831/subversion-1.4.6/apr-util/libaprutil-0.la
/home/users/dyost/bz/831/subversion-1.4.6/apr-util/xml/expat/lib/libexpat.la
/home/users/dyost/bz/831/subversion-1.4.6/apr/libapr-0.la
-lm -lsocket -lnsl -lresolv  -lsocket  -lz
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
collect2: ld returned 1 exit status
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.




I have Googled and Googled and Googled, and to my
NON-surprise, hardly anybody out there is running Subversion
on UnixWare 7, or at least it appears that way.

I have tried the suggestions on this thread:

http://subversion.tigris.org/servlets/BrowseList?list=users&by=thread&from=529675

I have tried --disabled-shared, --enabled-shared, and also
the static options.

I have tried to use my own zlib, though I don't think that's
the issue as I *have* used the subversion-deps package,
which I always untar over the top of my Subversion tarball
when building (never had any issues until trying to use the
archaic UnixWare 7.1.1).


Normally a post to this list by me would invite responses to
try to fix this. That'd be great, but again I'm pretty much
at the end of my allotted time and so I can't pick/hack at
this any more, really. I need to either "solve/finish it
fast" or I'm required to hang it up (arg!).

Does anybody either:

a) Have a simple binary package of Subversion (any "recent"
version is fine) for SCO UnixWare 7.1.1?

or

b) Have an *easy* "this will solve it" suggestion for the
build process, though I'm out of time?

Thanks very much for any help.

Regards,
Dan

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

Re: build errors on SCO UnixWare 7.1.1

Posted by Alan Barrett <ap...@cequrux.com>.
On Thu, 24 Apr 2008, dpsvn@tri8.com wrote:
> > Perhaps you just need to add "-lc" to the end of the command?
> 
> Are you saying I should edit the makefile itself to try to
> do that, or is there a better way to add that to the
> command?

I meant: Somehow figure out which script or Makefile is responsible for
that command, and edit it.

--apb (Alan Barrett)

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

Re: build errors on SCO UnixWare 7.1.1

Posted by dp...@tri8.com.
On Thu, 24 Apr 2008, Alan Barrett wrote:

>   [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?



I am not sure, but these folks (for whom I am doing this)
don't really build ANYTHING on this system, so I'd not be
surprised if lots of things crater.



> Perhaps you just need to add "-lc" to the end of the command?


Are you saying I should edit the makefile itself to try to
do that, or is there a better way to add that to the
command?

Thanks much,
Dan

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

Re: build errors on SCO UnixWare 7.1.1

Posted by dp...@tri8.com.
On Thu, 24 Apr 2008, Peter Wemm wrote:

> 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...
>



Well, but again I already tried that (--disable-shared).

Really, I did. Seriously. I know I did.

And yet...I tried it again and...it worked!

I'm telling you, I know I tried that already but,
regardless, who cares, it worked! Somebody change the root
password and don't give it to me. And take my car keys away
too.

Thanks so very much.

Regards,
Dan

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

Re: build errors on SCO UnixWare 7.1.1

Posted by Peter Wemm <pe...@wemm.org>.
On Thu, Apr 24, 2008 at 10:52 AM, Alan Barrett <ap...@cequrux.com> wrote:
> On Thu, 24 Apr 2008, dpsvn@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@wemm.org; peter@FreeBSD.org; peter@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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: build errors on SCO UnixWare 7.1.1

Posted by Alan Barrett <ap...@cequrux.com>.
On Thu, 24 Apr 2008, dpsvn@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)

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