Originally Posted by
gnusci
As I can see your compiler
can not find -lgcc_s if this the case, it is mean that you must tell to the compiler where it can find it, to know where the library is you can ask to the compiler:
> gcc -print-libgcc-file-name
Code:
# gcc -print-libgcc-file-name
/usr/lib/gcc/i386-redhat-linux/3.4.5/libgcc.a
No .so file was returned, so I checked and I do have libgcc installed. Did a little searching and found;
Code:
/usr/lib/gcc/i386-redhat-linux/3.4.3/libgcc_s.so -> /lib/libgcc_s.so.1
/lib/libgcc_s.so.1 -> libgcc_s-3.4.6-20060404.so.1
I tried to make a /lib/libgcc_s.so link to the .so above, but i still get the problem about finding lgcc_s
if not you have to install it, if yes try
ldd so you can get more information:
Code:
ldd /lib/libgcc_s-3.4.6-20060404.so.1
libc.so.6 => /lib/tls/libc.so.6 (0x00411000)
/lib/ld-linux.so.2 (0x00aab000)
Seems to be normal enough right?
I added this to the COMPILE option in the makefile, adding it to the LINK section gives an error about /lib/ being a directory (it sure is!)
could you post the output of:
> uname -a
> gcc -v
yup, this machine I'm compiling it on as you can see is a centos 4.x box:
Code:
# uname -a
Linux quaoar 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686 i686 i386 GNU/Linux
# gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.5/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
Maybe I could edit the --enable-shared option from the specs file? Since this is pretty much all I need to compile anyway
Thanks again!
Bookmarks