AIX collect2: library libgcc_s not found


 
Thread Tools Search this Thread
Operating Systems AIX AIX collect2: library libgcc_s not found
# 1  
Old 05-21-2010
AIX collect2: library libgcc_s not found

Hi,
M/c- aix 5.3
I want to install expat-2.0.1.
When run the make command it gives the error..
collect2: library libgcc_s not found
make: The error code from the last command is 1.


Stop.

Thanks
# 2  
Old 05-21-2010
collect2:
is the ld (linker) telling you it cannot find a library file: libgcc_s.

Most library files live in /lib. Your system may have libgcc_s somewhere else, or not at all.
try to find it:
Code:
find / -type f  -name 'libgcc_s*'

If it shows up try placing a copy ( or a symlink to the library file) in /lib. Otherwise you will have to install the correct version of the library for your distribution and architecture.
[/code]
# 3  
Old 05-21-2010
Thanks Jim,
Thats correct the libgcc_s is not find on my system.
Please help me how to install this.
But i can find the gcc is available on my system.
=> gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.0.0
# 4  
Old 05-21-2010
AIX has lots of interesting things compared to some other unix flavors. I'm moving the thread to the AIX forum.
# 5  
Old 05-21-2010
Hi.

I use aix 5.1 (but not often). I downloaded the expat compressed tarball from sourceforge, unpacked it, and ran:
Code:
./configure
make

and the last 2 lines in the make output were:
Code:
        /bin/sh ./libtool --silent --mode=link gcc -I./lib -I. -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DHAVE_EXPAT_CONFIG_H  -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/readfilemap.o libexpat.la
Target "default" is up to date.

the version of gcc is:
Code:
$ gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.1.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.1.0.0
Thread model: aix
gcc version 4.0.0

I also ran the command:
Code:
$ find / -name libgcc_s -print 2>/dev/null

and there is no such file on that system, either.

This may not solve your problem, but on at least one aix 5.1 system, expat can be created.

Good luck ... cheers, drl
# 6  
Old 05-21-2010
I often encountered problems compiling Open Source stuff on AIX since sadly IBM and Bull do not offer new compiled programs.
Last ressort for such stuff and many thanks to Michael Perzl:
AIX 5L Open Source Packages | Main / AIX Open Source Packages
# 7  
Old 05-21-2010
Hi.

While reviewing my post, I saw that I should have used a more general find pattern. When I used:
Code:
$ find / -name '*libgcc_s*' -print 2>/dev/null

it returned the path:
Code:
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/libgcc_s.a

I don't know if that file was used, but at least it is present.

If it is of interest, running the command on Debian produces a number of hits, one of which is:
Code:
/lib/libgcc_s.so.1

which has the characteristics:
Code:
-rw-r--r-- 1 root root 93016 Jan  2  2009 /lib/libgcc_s.so.1

Best wishes ... cheers, drl

---------- Post updated at 08:32 ---------- Previous update was at 08:28 ----------

Hi.
Quote:
Originally Posted by zaxxon
I often encountered problems compiling Open Source stuff on AIX ...
Long ago, I worked at a center that had AIX running on 3090 mainframes (I think I recall that correctly).

The note from zaxxon reminded me that we often said that aix really stood for ain't unix (uncharitable of us perhaps, but it seemed to be often true) ... cheers, drl
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

JREHOME not found AIX 7.2

Hey everyone, longtime lurker here , 1st post! After upgrading from AIX 6.1.8 to 7.2.0 none of my apps even look like starting coming up with JREHOME not found, this was a clone of an existing box which is still running but this doesn't have this variable defined, its running JAVA6_64. I tried... (2 Replies)
Discussion started by: one_eyed_man
2 Replies

2. UNIX for Dummies Questions & Answers

Aclocal and libtool error -- macro `AM_PROG_LIBTOOL' not found in library

The software I'm trying to install uses macros with autoconf, aclocal, libtool, autoheader, and automake. What seems to be going on is an error between libtool and aclocal. From what I understand when I run aclocal, which is in /usr/bin, it searches a different directory for the libtool.m4 which is... (0 Replies)
Discussion started by: bphqk3
0 Replies

3. Red Hat

Cannot start httpd service `GLIBC_2.4' not found (required by /lib/libgcc_s.so.1)

# service httpd start Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libgcc_s.so.1) I... (2 Replies)
Discussion started by: getrue
2 Replies

4. AIX

IY17981 fix required for aix 4.3.3 to aix 5L migration but not found

Hi, redbook documentation is telling that IY17981 fix is required for aix 4.3.3 to aix 5L migration. But there is no mention about that fix in any ML installation packages. - My system is ML11 : oslevel –r 4330-11 - But xlC.rte is on wrong version : lslpp -L xlC.rte xlC.rte ... (3 Replies)
Discussion started by: astjen
3 Replies

5. Solaris

ld: fatal: library -ltli: not found

Hi, I am on the following version: SunOS e105 5.8 Generic_117350-26 sun4u sparc SUNW,Sun-Fire-15000 I am running a makefile to build some Tuxedo servers. Following is a snippet of my output: BS-550.c: /home/sybase/sybase12/OCS-12_EBF10731/include/sybesql.c: ld: fatal: library... (0 Replies)
Discussion started by: vaibhav276
0 Replies

6. Programming

shared library not found

Hello, On a Centos 5.0 box, I have two versions of a library (sqlite): (1) in /usr/lib that was installed using yum (maybe from php but I am not really sure) (2) in /usr/local/lib that I installed myself by compiling from the source code. My C++ program contains the following lines: ... (12 Replies)
Discussion started by: JCR
12 Replies

7. HP-UX

webservd: fatal: libgcc_s.so.1: version GCC_3.3’ not found

HI, We configured the webserver under the opt/SUNWwbsvr/https-pw-frontend/ in unix box. We have server start and stop command under the opt/SUNWwbsvr/https-pw-frontend/ Unexpectedly our password webserver's(sun one webserver's) are down, when I tried to start the server this is the error I'm... (1 Reply)
Discussion started by: srujana
1 Replies

8. UNIX for Advanced & Expert Users

AIX Library Interposer

Hello, We are working on a product which requires library interposing. And according to the market requirements, needs to be migrated on AIX OS also. So now, the question is "Is library interposing possible in AIX?" If yes, how? If no, then what are the other alternatives? As per my... (2 Replies)
Discussion started by: mrunal
2 Replies

9. Programming

library not found error

We are trying to execute C/C++ programs in SOlaris 8. Though the exes are compiled in g++, we donot have it installed in the target machine. We have the library files in the target machine and LD_LIBRARY_PATH is set correctly. Now when the exes are run, we are getting the error $ seq ld.so.1:... (1 Reply)
Discussion started by: virtual_j
1 Replies
Login or Register to Ask a Question