Connecting Tech Pros Worldwide Forums | Help | Site Map

ld: fatal: too many symbols require `small' PIC references

adisabat@gmail.com
Guest
 
Posts: n/a
#1: Oct 22 '08
Hi


I was linking a lot of libraries on Solaris10 sun studio 12 and I got
the following errors:


ld: fatal: too many symbols require `small' PIC references:
have 3942, maximum 2048 -- recompile some modules -K PIC.
*** Error code 1
make: Fatal error: Command failed for target

of course I tried to re-compile my code using -K PIC I mean c-code,
but it did not solve my problem

The option for linking are: CC -g -qoption ld -i -G

any idea please?

Rgds
Antonio





Ian Collins
Guest
 
Posts: n/a
#2: Oct 22 '08

re: ld: fatal: too many symbols require `small' PIC references


adisabat@gmail.com wrote:
Quote:
Hi
>
>
I was linking a lot of libraries on Solaris10 sun studio 12 and I got
the following errors:
>
>
ld: fatal: too many symbols require `small' PIC references:
have 3942, maximum 2048 -- recompile some modules -K PIC.
*** Error code 1
make: Fatal error: Command failed for target
>
The error says it all. I see you have also asked on
comp.unix.programmer. One of the Sun Studio forums would have been more
appropriate.

--
Ian Collins
Keith Thompson
Guest
 
Posts: n/a
#3: Oct 23 '08

re: ld: fatal: too many symbols require `small' PIC references


Ian Collins <ian-news@hotmail.comwrites:
Quote:
adisabat@gmail.com wrote:
Quote:
>I was linking a lot of libraries on Solaris10 sun studio 12 and I got
>the following errors:
>>
>>
>ld: fatal: too many symbols require `small' PIC references:
> have 3942, maximum 2048 -- recompile some modules -K PIC.
>*** Error code 1
>make: Fatal error: Command failed for target
>>
The error says it all. I see you have also asked on
comp.unix.programmer. One of the Sun Studio forums would have been more
appropriate.
Or comp.unix.solaris.

--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Closed Thread