I managed to figure out my problem. A GCC library wasn't in a location
that the Makefile could find. Copying this library to /usr/lib fixed
the problem.

Nick

On Tue, Apr 8, 2008 at 2:05 PM, Nick Seward <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've searched the mailing list archive for people having problems
> compiling libevent on AIX. I didn't find much that I could understand.
> I am using AIX 5.2 and libevent 1.4.2-rc.
>
> Here is my output of running ./configure.
>
> checking for a BSD-compatible install... ./install-sh -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... ./install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking whether make sets $(MAKE)... yes
> 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 ISO C89... 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 grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/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 recognize 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.exe... no
> checking for FCC... no
> checking for KCC... no
> checking for RCC... no
> checking for xlC_r... xlC_r
> checking whether we are using the GNU C++ compiler... no
> checking whether xlC_r accepts -g... no
> checking dependency style of xlC_r... none
> checking how to run the C++ preprocessor... xlC_r -E
> checking for g77... no
> checking for xlf... no
> checking for f77... no
> checking for frt... no
> checking for pgf77... no
> checking for cf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for xlf90... no
> checking for f90... no
> checking for pgf90... no
> checking for pghpf... no
> checking for epcf90... no
> checking for gfortran... no
> checking for g95... no
> checking for xlf95... no
> checking for f95... no
> checking for fort... no
> checking for ifort... no
> checking for ifc... no
> checking for efc... no
> checking for pgf95... no
> checking for lf95... no
> checking for ftn... 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... 18432
> 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 supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC...
> checking if gcc static flag -static works... yes
> 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
> checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... 
> yes
> libtool.m4: error: problem compiling CXX test program
> checking for xlC_r option to produce PIC...
> checking if xlC_r static flag -bnso -bI:/lib/syscalls.exp works... no
> checking if xlC_r supports -c -o file.o... no
> checking whether the xlC_r 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
> appending configuration tag "F77" to libtool
> checking for socket in -lsocket... no
> checking for inet_aton in -lresolv... no
> checking for clock_gettime in -lrt... yes
> checking for inet_ntoa in -lnsl... yes
> 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/param.h usability... yes
> checking sys/param.h presence... yes
> checking for sys/param.h... yes
> checking sys/ioctl.h usability... yes
> checking sys/ioctl.h presence... yes
> checking for sys/ioctl.h... yes
> checking sys/select.h usability... yes
> checking sys/select.h presence... yes
> checking for sys/select.h... yes
> checking sys/devpoll.h usability... no
> checking sys/devpoll.h presence... no
> checking for sys/devpoll.h... no
> checking port.h usability... no
> checking port.h presence... no
> checking for port.h... no
> checking netinet/in6.h usability... no
> checking netinet/in6.h presence... no
> checking for netinet/in6.h... no
> checking sys/socket.h usability... yes
> checking sys/socket.h presence... yes
> checking for sys/socket.h... yes
> 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 WIN32... no
> 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 clock_gettime... yes
> checking for strtok_r... yes
> checking for strsep... yes
> checking for getaddrinfo... yes
> checking for getnameinfo... yes
> checking for strlcpy... no
> checking for inet_ntop... yes
> checking for signal... yes
> checking for sigaction... yes
> checking for strtoll... yes
> checking for long... yes
> checking size of long... 4
> checking for F_SETFD in fcntl.h... yes
> checking for select... yes
> checking for poll... yes
> checking for epoll_ctl... no
> checking for port_create... no
> checking for pid_t... yes
> checking for size_t... yes
> checking for uint64_t... yes
> checking for uint32_t... yes
> checking for uint16_t... yes
> checking for uint8_t... yes
> checking for long long... yes
> checking size of long long... 8
> checking for long... (cached) yes
> checking size of long... (cached) 4
> checking for int... yes
> checking size of int... 4
> checking for short... yes
> checking size of short... 2
> checking for struct in6_addr... 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
>
>
> After that I tried running make and was given the following error:
>
> # make
>        make  all-recursive
> Making all in .
>        /bin/sh ./libtool --tag=CC    --mode=link gcc  -g -O2 -Wall
> -release 1.4 -version-info 2:0:0  -o libevent.la -rpath /usr/local/lib
> event.lo buffer.lo evbuffer.lo log.lo evutil.lo   event_tagging.lo
> http.lo evdns.lo evrpc.lo strlcpy.lo select.lo poll.lo signal.lo
> -lnsl -lrt
> rm -fr  .libs/libevent.exp
> generating symbol list for `libevent.la'
> /usr/bin/nm -B -BCpg  .libs/event.o .libs/buffer.o .libs/evbuffer.o
> .libs/log.o .libs/evutil.o .libs/event_tagging.o .libs/http.o
> .libs/evdns.o .libs/evrpc.o .libs/strlcpy.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.4.so.2  .libs/event.o .libs/buffer.o
> .libs/evbuffer.o .libs/log.o .libs/evutil.o .libs/event_tagging.o
> .libs/http.o .libs/evdns.o .libs/evrpc.o .libs/strlcpy.o
> .libs/select.o .libs/poll.o .libs/signal.o  -lnsl -lrt -lc
> -Wl,-bnoentry  -Wl,-bE:.libs/libevent.exp ${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.
>
> Does anyone know what this problem is?
>
> Thanks in advance for any help that can be provided,
>
> Nick
>
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to