tcpdump mailing list archives

Error making shared libpcap on AIX


From: "Jonathan Gruenhut" <jonathan () zetapoint com>
Date: Sun, 30 Dec 2007 16:43:25 +0200

I’m working on an AIX 5.3, and trying to compile a shared libpcap library (version 0.9.8).

 

I keep hitting the error:

gcc -shared -o libpcap.so.`cat VERSION` pcap-bpf.o fad-gifc.o pcap.o inet.o gencode.o optimize.o nametoaddr.o 
etherent.o savefile.o bpf_filter.o bpf_image.o bpf_dump.o  scanner.o grammar.o version.o

collect2: library libgcc_s not found

make: *** [libpcap.so] Error 1

 

I have no idea why this should be.  (running plain “make” rather than “make shared” produces a fine static library.)

 

I ran a find for libgcc*, and got:

/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/libgcc_s.a

/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/libgcc_s_power.a

/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/libgcc_s_powerpc.a

/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/libgcc_s_ppc64.a

/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/libgcc_s_pthread.a

/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/libgcc_s_pthread_power.a

/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/libgcc_s_pthread_powerpc.a

/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2/libgcc_s_pthread_ppc64.a

/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/libgcc_s.a

/usr/lib/libgcc_s_pthread.a

/usr/local/lib/libgcc_s_ppc64.a

/usr/local/lib/libgcc_s_pthread.a

/usr/local/lib/libgcc_s.a

/usr/local/lib/libgcc_s_pthread_ppc64.a

 

So I don’t know why I can’t find them with the loader.

 

I had run just ./configure, with output:

checking build system type... powerpc-ibm-aix5.3.0.0

checking host system type... powerpc-ibm-aix5.3.0.0

checking target system type... powerpc-ibm-aix5.3.0.0

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 gcc version... 3

checking for inline... inline

checking for __attribute__... yes

checking for u_int8_t using gcc... yes

checking for u_int16_t using gcc... yes

checking for u_int32_t using gcc... 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 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 sys/ioccom.h usability... no

checking sys/ioccom.h presence... no

checking for sys/ioccom.h... no

checking sys/sockio.h usability... no

checking sys/sockio.h presence... no

checking for sys/sockio.h... no

checking limits.h usability... yes

checking limits.h presence... yes

checking for limits.h... yes

checking paths.h usability... yes

checking paths.h presence... yes

checking for paths.h... yes

checking for net/pfvar.h... no

checking for netinet/if_ether.h... yes

checking for ANSI ioctl definitions... yes

checking for strerror... yes

checking for strlcpy... no

checking for vsnprintf... yes

checking for snprintf... yes

checking for library containing gethostbyname... none required

checking for library containing socket... none required

checking for library containing putmsg... none required

checking for ether_hostton... yes

checking whether ether_hostton is declared... yes

checking if --disable-protochain option is specified... enabled

checking packet capture type... bpf

checking for getifaddrs... no

checking if --enable-ipv6 option is specified... no

checking whether to build optimizer debugging code... no

checking whether to build parser debugging code... no

checking whether we have /proc/net/dev... no

checking whether we have DAG API headers... no (/usr/local/include)

checking whether we have Septel API... no

checking for flex... no

checking for bison... no

checking for capable lex... yes

checking for ranlib... ranlib

checking if sockaddr struct has sa_len member... yes

checking if sockaddr_storage struct exists... yes

checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no

checking if unaligned accesses fail... no

checking for a BSD-compatible install... ./install-sh -c

configure: creating ./config.status

config.status: creating Makefile

config.status: creating config.h

 

I searched for this extensively on Google, and kept finding things that were similar, but not helpful enough for me.  
I’d appreciate any pointers at all.

 

Many thanks.

Jonathan

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: