[kronolith] MCAL and Solaris problem

C. M. Rahman (jr.) cmrahman@ccsi.com
Tue, 8 Jan 2002 16:08:41 -0600


this is what I get with -v option..

# make
rm -f libmcal.so
gcc -v -O0 -Wall -g -Imstore -Iicap    -I.  -shared -o libmcal.so mcal.o
datetime.o lex.ical_yy.o icalroutines.o cal_misc.o icap/icap_driver.o
mstore/mstore_driver.o
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/collect2 -V -G -dy -z
text -Y P,/usr/ccs/lib:/usr/lib -Qy -o libmcal.so
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crti.o
/usr/ccs/lib/values-Xa.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crtbegin.o -L/usr/local/l
ib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/
local/lib mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o
icap/icap_driver.o mstore/mstore_driver.o -lgcc -lgcc
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crtend.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crtn.o
ld: Software Generation Utilities - Solaris-ELF (4.0)
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x22e0      mcal.o
<unknown>                           0x22e4      mcal.o


&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*
C.M. Rahman Jr.
CTO
CCS Internet
http://www.ccsi.com
13740 Research Blvd. suite o-4
Austin, TX 78750
Tel: 512-257-2274


----- Original Message -----
From: "Mike Hardy" <mhardy@h3c.com>
To: <kronolith@lists.horde.org>
Sent: Tuesday, January 08, 2002 3:41 PM
Subject: Re: [kronolith] MCAL and Solaris problem


>
> On Tue, 8 Jan 2002, C. M. Rahman (jr.) wrote:
>
> > I am on Sun Solaris 2.8 and getting this error everytime I try to
compile
> > MCAL. Can somebody help on this issue? I tryed on Solaris 2.7 as well.
but
> > no luck
>
> Solaris...
>
> > ld: fatal: relocations remain against allocatable but non-writable
sections
> > collect2: ld returned 1 exit status
> > make: *** [libmcal.so] Error 1
>
> ...with relocation linkage problems
>
> The only thing I remember about building .so's on Solaris was that it was
> a PITA (pain in the butt)
>
> You might try altering the makefile so that gcc uses a "-v" argument, it
> will then print out the command line it calls the linker with. Take that
> command line and start changing options on it until it works (I'm serious
> - this worked for me)
>
> I had to xterms up with one used for trying new link-lines, and the other
> holding the ld manpage on Solaris playing with its dynamic-linking
> arguments, and got it right in around 10 minutes. It wasn't fun, but it
> did work.
>
> Of course, there's only so many arguments to play with, if none of them
> work, its a deeper problem...
>
> Googling for the error message before spending any time is also a good way
> to find the linker line (or whatever problem it is if its not linkage)
>
> Hope this helps somewhat-
> -Mike
>
>
> --
> Kronolith mailing list: http://horde.org/kronolith/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe@lists.horde.org
>