Bug 41550 - make fails - collect2: library libgcc_s not found
Summary: make fails - collect2: library libgcc_s not found
Status: CLOSED INVALID
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.2.4
Hardware: Other AIX
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-06 17:56 UTC by Bhushan
Modified: 2007-02-11 17:43 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bhushan 2007-02-06 17:56:23 UTC
These are the exact steps I am following from the Apache webdoc page:
gzip -d /usr/apache/httpd-2.2.4.tar.gz
tar xvf /usr/apache/httpd-2.2.4.tar
cd /usr/apache/httpd-2.2.4 
./configure --prefix=/usr/apache/
make  
make install  
vi /usr/apache/httpd-2.2.4/conf/httpd.conf  
/usr/apache/httpd-2.2.4/bin/apachectl -k start


during 'make' from the above stepsI am getting the following error
******************************************************************

OS - AIX 5.3 
gcc - 4.0.0

Error Message: 
Making all in srclib
Making all in apr
        /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
collect2: library libgcc_s not found
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.
Comment 1 Jeff Trawick 2007-02-07 03:32:24 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 ***
Comment 2 Bhushan 2007-02-07 09:38:08 UTC
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 !! 
Comment 3 Jeff Trawick 2007-02-07 12:02:46 UTC
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.

Comment 4 Bhushan 2007-02-09 10:49:49 UTC
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. 
Comment 5 Jeff Trawick 2007-02-11 17:43:22 UTC
not an Apache bug; submitter's problem was related to the compiler installation