#include <sys/select.h>
to select.c, which now compiles. However, when make is trying to link the shared object, I get the following error: 'collect2: library libgcc_s not found'. 'configure' and 'make' output are listed below. I would assume that a configuration option is missing, my autoconf skills are lacking at the moment, can someone point me in the right direction?
$ configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a BSD-compatible install... ./install-sh -c
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking build system type... powerpc-ibm-aix5.2.0.0
checking host system type... powerpc-ibm-aix5.2.0.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h .. . yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 8192
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC...
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... aix5.2.0.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for socket in -lsocket... no
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for unistd.h... (cached) yes
checking sys/epoll.h usability... no
checking sys/epoll.h presence... no
checking for sys/epoll.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/queue.h usability... yes
checking sys/queue.h presence... yes
checking for sys/queue.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/devpoll.h usability... no
checking sys/devpoll.h presence... no
checking for sys/devpoll.h... no
checking for TAILQ_FOREACH in sys/queue.h... no
checking for timeradd in sys/time.h... no
checking for timercmp in sys/time.h... yes
checking for timerclear in sys/time.h... yes
checking for timerisset in sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking for gettimeofday... yes
checking for vasprintf... no
checking for fcntl... yes
checking for F_SETFD in fcntl.h... yes
checking for select... yes
checking for poll... yes
checking for epoll_ctl... no
checking for pid_t... yes
checking for size_t... yes
checking for u_int64_t... yes
checking for u_int32_t... yes
checking for u_int16_t... yes
checking for u_int8_t... yes
checking for socklen_t... yes
checking whether our compiler supports __func__... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating test/Makefile
config.status: creating sample/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
$ make
make all-recursive
Making all in .
/bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c -o event.lo event.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c event.c -DPIC -o .libs/event.o
event.c: In function `compare':
event.c:127: warning: suggest parentheses around && within ||
event.c:129: warning: suggest parentheses around && within ||
event.c: In function `event_base_loop':
event.c:342: warning: suggest parentheses around && within ||
event.c: In function `timeout_next':
event.c:660: warning: suggest parentheses around && within ||
event.c: In function `timeout_process':
event.c:696: warning: suggest parentheses around && within ||
/bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c -o buffer.lo buffer.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c buffer.c -DPIC -o .libs/buffer.o
/bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c -o evbuffer.lo evbuffer.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c evbuffer.c -DPIC -o .libs/evbuffer.o
/bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c -o log.lo log.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c log.c -DPIC -o .libs/log.o
/bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c -o select.lo select.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c select.c -DPIC -o .libs/select.o
/bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c -o poll.lo poll.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c poll.c -DPIC -o .libs/poll.o
/bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c -o signal.lo signal.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -g -O2 -Wall -c signal.c -DPIC -o .libs/signal.o
/bin/sh ./libtool --mode=link --tag=CC gcc -g -O2 -Wall -o libevent.la -rpath /usr/local/lib -release 1.1a -version-info 1:2:0 event.lo buffer.lo evbuffer.lo log.lo select.lo poll.lo signal.lo
generating symbol list for `libevent.la'
/usr/bin/nm -B -BCpg .libs/event.o .libs/buffer.o .libs/evbuffer.o .libs/log.o .libs/select.o .libs/poll.o .libs/signal.o | awk '{ if ((($2 == "T") || ($2 == "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' | sort -u > .libs/libevent.exp
gcc -shared -o .libs/libevent-1.1a.so.1 .libs/event.o .libs/buffer.o .libs/evbuffer.o .libs/log.o .libs/select.o .libs/poll.o .libs/signal.o -lc -Wl,-bE:.libs/libevent.exp -Wl,-bnoentry ${wl}-berok
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 2.
Stop.
--
_Jeff_
_______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users