Summary: | make fails - collect2: library libgcc_s not found | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Bhushan <nkongara> |
Component: | Build | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | CLOSED INVALID | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.2.4 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | AIX |
Description
Bhushan
2007-02-06 17:56:23 UTC
Find where libgcc_s.so or libgcc_s.a lives on your system and set LIBPATH to include that directory and try the make again. *** This bug has been marked as a duplicate of 38756 *** I tried this LIBPATH=:/lib:/usr/lib:/opt/freeware/lib/gcc-lib/powerpc-ibm- aix5.1.0.0/3.3.2:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0 make clean make I get the following: /bin/sh /usr/apache/httpd-2.2.4/srclib/apr/libtool --silent --mode=link gcc - g -O2 -pthread -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE -D_USE_IRS - D_LARGEFILE64_SOURCE -I./include -I/usr/apache/httpd- 2.2.4/srclib/apr/include/arch/unix -I./include/arch/unix -I/usr/apache/httpd- 2.2.4/srclib/apr/include -version-info 2:8:2 -Wl,-brtl -o libapr-1.la - rpath /usr/apache//lib passwd/apr_getpass.lo strings/apr_cpystrn.lo strings/apr_strnatcmp.lo strings/apr_strings.lo strings/apr_strtok.lo strings/apr_fnmatch.lo strings/apr_snprintf.lo tables/apr_tables.lo tables/apr_hash.lo atomic/unix/apr_atomic.lo dso/unix/dso.lo file_io/unix/flock.lo file_io/unix/readwrite.lo file_io/unix/filepath_util.lo file_io/unix/seek.lo file_io/unix/dir.lo file_io/unix/mktemp.lo file_io/unix/filedup.lo file_io/unix/tempdir.lo file_io/unix/filepath.lo file_io/unix/pipe.lo file_io/unix/open.lo file_io/unix/filestat.lo file_io/unix/copy.lo file_io/unix/fileacc.lo file_io/unix/fullrw.lo locks/unix/thread_rwlock.lo locks/unix/thread_mutex.lo locks/unix/thread_cond.lo locks/unix/proc_mutex.lo locks/unix/global_mutex.lo memory/unix/apr_pools.lo misc/unix/charset.lo misc/unix/env.lo misc/unix/version.lo misc/unix/rand.lo misc/unix/start.lo misc/unix/errorcodes.lo misc/unix/getopt.lo misc/unix/otherchild.lo mmap/unix/mmap.lo mmap/unix/common.lo network_io/unix/sockaddr.lo network_io/unix/sockopt.lo network_io/unix/sendrecv.lo network_io/unix/multicast.lo network_io/unix/sockets.lo network_io/unix/inet_ntop.lo network_io/unix/inet_pton.lo poll/unix/epoll.lo poll/unix/select.lo poll/unix/poll.lo poll/unix/port.lo poll/unix/kqueue.lo random/unix/sha2.lo random/unix/apr_random.lo random/unix/sha2_glue.lo shmem/unix/shm.lo support/unix/waitio.lo threadproc/unix/procsup.lo threadproc/unix/thread.lo threadproc/unix/signals.lo threadproc/unix/proc.lo threadproc/unix/threadpriv.lo time/unix/time.lo time/unix/timestr.lo user/unix/userinfo.lo user/unix/groupinfo.lo -lpthread ld: 0706-006 Cannot find or open library file: -l gcc_s ld:open(): No such file or directory ld: 0706-006 Cannot find or open library file: -l gcc_s ld:open(): No such file or directory collect2: ld returned 255 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Please Help !! trying again: in case you're using the IBM-provided gcc rpms: do you have all of these? $ rpm -qa | grep gcc gcc-c++-4.0.0-1 gcc-4.0.0-1 libgcc-4.0.0-1 I have those and httpd-2.2.4 built fine on my 5.3 system ("5300-05" says "oslevel -g"). My build steps differed only in directory names from yours. I don't have any /opt/freeware stuff in environment variables. I just use the command symlinks (e.g., /usr/bin/gcc) in the normal locations. There was an error in the installation of gcc++. I downloaded the gcc++ and extracted the binaries into a location. # ls -l /usr/bin/gcc lrwxrwxrwx 1 root system 22 Feb 09 13:17 /usr/bin/gcc - > /gcc/usr/local/bin/gcc make clean make make install Edited httpd.conf for User/Group from deamon to nobody. ServerName to <hostname> ./apachectl -k start http://hostname/ it worked Thanks for your assistance. not an Apache bug; submitter's problem was related to the compiler installation |