Stoyan
Thanks for your help. It'll be a day or two before I try your idea:
I've got other problems with this install that probably won't fix this
problem but need to be done anyway. But I have a couple of other
questions:
1) Should I do my own gcc compile of binutils even though I have
Sun-provided GNU binutils (no doubt compiled by their
proprietary)?
2) Does GNU ld recognize the relevant command-line args (-R -L -l -o
etc) that g++ does? I.e. can I simply replace "g++" with "ld"
(GNU version, of course), or will I need to RTFM's on ld and g++?
> Date: Wed, 10 Mar 2004 08:14:01 +0200
> From: Stoyan Angelov <[EMAIL PROTECTED]>
> Organization: filibeto.org
> To: Solaris-Users mailing list <[EMAIL PROTECTED]>
> Subject: Re: [Solaris-Users] relocations remain against allocatable but
> non-writable sections
>
> hello Don,
>
> recently i had a similar problem - try using GNU ld - that fixed the
> problem for me. you can find it in the binutils package:
> http://www.gnu.org/directory/binutils.html
>
> /usr/local/lib and /opt/sfw/gcc-3/lib should be before /usr/lib and /lib
> in your LD_LIBRARY_PATH, also /usr/local/bin or wherever you put the ld
> binary should be before /usr/ccs/bin in your PATH variable.
> it is also a good idea to use GNU make.
>
> hope this helps,
>
> Stoyan
>
> Don Wolski wrote:
>
> | Hi. I'm trying to build and install some Free/OpenSource software
> | (mapserver) that is packaged with GNU's automake, but it is failing
> | in a way that I think is Solaris-specific. It seems to be unable to
> | resolve a bunch (13,000) symbols, including ones that should be in the
> | std libs. I've forced the c++ command (which the package's makefile
> | uses to invoke ld) to look every lib directory I could think of, but
> | the results are the same. Should I be specifying /usr/lib before
> | /opt/sfw/gcc-3/lib? Should I be using gcc 2.95.3? Do I need to
> | install a libc in addition to /usr/lib/libc*? Am I completly off-base
> | about what the error msg means?
> |
> | The symptom of my problem is that I get the message "ld: fatal:
> | relocations remain against allocatable but non-writable sections"
> | when the package's Makefile uses c++ to build a shared library after
> | compiling the .o's.
> |
> | The system I am using is complete Solaris 9 (12/03 update, w/
> | recommended patches as of Feb 9) plus the Companion Disk (a bunch
> | of GNU and other F/OSS which get installed in /usr/sfw and /opt/sfw,
> | and which Sun compiles with its proprietary compilers).
> |
> | I do not have the Sun proprietary compilers, and am using gcc 3.3 instead.
> |
> | /usr/local is a symlink to /opt/local.
> |
> | Thanks for taking the time to look at this.
> | /don
> <snip>
> _______________________________________________
> Solaris-Users mailing list
> [EMAIL PROTECTED]
> http://www.filibeto.org/mailman/listinfo/solaris-users
_______________________________________________
Solaris-Users mailing list
[EMAIL PROTECTED]
http://www.filibeto.org/mailman/listinfo/solaris-users