Re: ld error " linking PIC files with non-PIC files "

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 13, 2001 at 12:09:48PM -0800, Wayne Gowcher wrote:

> I am trying to cross compile X using the redhat7.0
> distribution from the sgi mips site as my base. Most
> files compile OK, but they fail at the link stage with
> the following error :
> 
> linking PIC files with non-PIC files.
> 
> I created my cross-compile library files in
> /usr/mipsel-linux from the packages :
> glibc-2.2.2-1.mipsel.rpm &
> glibc-devel-2.2.2-1.mipsel.rpm
> are there other libraries I need ?
> 
> I found a reference on the web to a module called
> libc6-pic.o, I don't see this anywhere in my libraries
> is this what I need ?
> 
> Has anyone else seen this problem before and do they
> know how to fix it ?

Don't use non-pic code ever in userspace.  Actually it's very strange
that you hit this problem as gcc defaults to pic code so you should
try to find which of your object files or libraries are non-pic.

  Ralf

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux