Monkey stumbles upon warpdrive while coding

"I thought it would take 1000 monkeys 1000 years" says ape.

My Photo
Name:
Location: Sydney, New South Wales, Australia

Back from the US, and loving the beaches. Lucky enough to be working in science still.

Friday, February 25, 2005

Shared libraries on the suns

Ok, so I was compiling shared libraries on the sun using the -share flag:
gcc blahblah -share blah

(Nb: this is in the SO_LFLAGS variable in the StGermain configure script).

And I was getting these :

ld: fatal relocations remain against allocatable but non-writable sections

It turns out the -share flag is actually like using a -G -dys (?sp) -z text flags, and for this I don't think you want the z text stuff.
So, there were 2 options: use -share -mimpure-text which gets sort of leaves off the -z text stuff (as far as I can figure) OR just use -G, which is what I did. (Note -mimpure-text is only a sun option apparently).

Next speedbump:
ld: fatal: Symbol referencing errors.
(in: /home/cjoneill/StGermain/StGermain/FE/testApps)

0 Comments:

Post a Comment

<< Home