Problem linking

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

 



Hello,  
  
Thanks for the help yesterday, I now have gcc built and working on my  
system. Now I am running into the following problem when trying to build  
some supporting libraries (in the example below, libpng):  
  
gcc -shared  png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo pngwutil.lo 
pngr        ead.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo pngwtran.lo 
pngmem.lo pngerro        r.lo pngpread.lo  -lz -lm  -Wl,-soname 
-Wl,libpng12.so.0 -o .libs/libpng12.so.0.        0.0 
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin
/ld:         /usr/local/lib/libz.a(crc32.o): 
relocation R_X86_64_32 against `a local symbol'         can not be used
when 
making a shared object; recompile with -fPIC 
/usr/local/lib/libz.a: could not read symbols: Bad value 
collect2: ld returned 1 exit status 
 
My system is a P4 running SuSE Linux v9.3 with gcc version 3.3.5. 
 
Thank you! 
Ashley  

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux