You are not logged in.

#1 2010-07-01 00:27:10

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Build of libpcap fails

libpcap.so.1 is being created twice.

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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... 4
checking for inline... inline
checking for __attribute__... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking for int8_t... yes
checking for u_int8_t... yes
checking for int16_t... yes
checking for u_int16_t... yes
checking for int32_t... yes
checking for u_int32_t... yes
checking for int64_t... yes
checking for u_int64_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGEFILE_SOURCE value needed for large files... no
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... no
checking netinet/ether.h usability... yes
checking netinet/ether.h presence... yes
checking for netinet/ether.h... yes
checking whether ether_hostton is declared... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... linux
checking Linux kernel version... 2
checking for linux/wireless.h... yes
checking for nl_handle_alloc in -lnl... yes
checking if if_packet.h has tpacket_stats defined... yes
checking if tpacket_auxdata struct has tp_vlan_tci member... no
checking for getifaddrs... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking for socklen_t... yes
checking for getaddrinfo... yes
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking whether we have DAG API headers... no (/usr/local/include)
checking whether we have the DAG API... no
checking whether we have Septel API... no
checking whether we have Myricom Sniffer API... no (/opt/snf)
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... bison
checking for ranlib... ranlib
checking if sockaddr struct has the sa_len member... no
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 USB sniffing support... yes
configure: Device for USB sniffing is /dev/usbmon
checking linux/usbdevice_fs.h usability... yes
checking linux/usbdevice_fs.h presence... yes
checking for linux/usbdevice_fs.h... yes
checking if usbdevfs_ctrltransfer struct has bRequestType member... yes
checking bluetooth/bluetooth.h usability... no
checking bluetooth/bluetooth.h presence... no
checking for bluetooth/bluetooth.h... no
configure: Bluetooth sniffing is not supported; install bluez-lib devel to enable it
checking for linux/can.h... yes
configure: CAN sniffing is supported
checking for a BSD-compatible install... /bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pcap-filter.manmisc
config.status: creating pcap-linktype.manmisc
config.status: creating pcap-savefile.manfile
config.status: creating pcap.3pcap
config.status: creating pcap_compile.3pcap
config.status: creating pcap_datalink.3pcap
config.status: creating pcap_dump_open.3pcap
config.status: creating pcap_list_datalinks.3pcap
config.status: creating pcap_open_dead.3pcap
config.status: creating pcap_open_offline.3pcap
config.status: creating config.h
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap-linux.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap-usb-linux.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap-can-linux.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./fad-getad.c
if grep GIT ./VERSION >/dev/null; then \
        read ver <./VERSION; \
        echo $ver | tr -d '\012'; \
        date +_%Y_%m_%d; \
    else \
        cat ./VERSION; \
    fi | sed -e 's/.*/static const char pcap_version_string[] = "libpcap version &";/' > version.h
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./inet.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./gencode.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./optimize.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./nametoaddr.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./etherent.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./savefile.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./sf-pcap.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./sf-pcap-ng.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap-common.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./bpf_image.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./bpf_dump.c
./runlex.sh flex -Ppcap_ -oscanner.c scanner.l
bison -y -p pcap_ -d grammar.y
rm -f bpf_filter.c
ln -s ./bpf/net/bpf_filter.c bpf_filter.c
if grep GIT ./VERSION >/dev/null; then \
        read ver <./VERSION; \
        echo $ver | tr -d '\012'; \
        date +_%Y_%m_%d; \
    else \
        cat ./VERSION; \
    fi | sed -e 's/.*/char pcap_version[] = "&";/' > version.c
sed -e 's|@includedir[@]|/usr/include|g' \
        -e 's|@libdir[@]|/usr/lib|g' \
        -e 's|@LIBS[@]|-lnl |g' \
        -e 's|@V_RPATH_OPT[@]|-Wl,-rpath,|g' \
        ./pcap-config.in >pcap-config.tmp
mv pcap-config.tmp pcap-config
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap.c
chmod a+x pcap-config
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c bpf_filter.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c version.c
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c scanner.c
gcc -O2 -fpic -march=i686 -Os -mmmx -pipe -fomit-frame-pointer -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -Dyylval=pcap_lval -c grammar.c
ar rc libpcap.a pcap-linux.o pcap-usb-linux.o pcap-can-linux.o fad-getad.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o sf-pcap.o sf-pcap-ng.o pcap-common.o bpf_image.o bpf_dump.o  scanner.o grammar.o bpf_filter.o version.o  
VER=`cat ./VERSION`; \
    MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' ./VERSION`; \
    gcc -shared -Wl,-soname,libpcap.so.$MAJOR_VER -Wl,--hash-style=gnu -Wl,--as-needed \
        -o libpcap.so.$VER pcap-linux.o pcap-usb-linux.o pcap-can-linux.o fad-getad.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o sf-pcap.o sf-pcap-ng.o pcap-common.o bpf_image.o bpf_dump.o  scanner.o grammar.o bpf_filter.o version.o   -lnl 
ranlib libpcap.a
VER=`cat ./VERSION`; \
    MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' ./VERSION`; \
    gcc -shared -Wl,-soname,libpcap.so.$MAJOR_VER -Wl,--hash-style=gnu -Wl,--as-needed \
        -o libpcap.so.$VER pcap-linux.o pcap-usb-linux.o pcap-can-linux.o fad-getad.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o sf-pcap.o sf-pcap-ng.o pcap-common.o bpf_image.o bpf_dump.o  scanner.o grammar.o bpf_filter.o version.o   -lnl 
#
VER=`cat ./VERSION`; \
    MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' ./VERSION`; \
    gcc -shared -Wl,-soname,libpcap.so.$MAJOR_VER -Wl,--hash-style=gnu -Wl,--as-needed \
        -o libpcap.so.$VER pcap-linux.o pcap-usb-linux.o pcap-can-linux.o fad-getad.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o sf-pcap.o sf-pcap-ng.o pcap-common.o bpf_image.o bpf_dump.o  scanner.o grammar.o bpf_filter.o version.o   -lnl 
# Most platforms have separate suffixes for shared and
# archive libraries, so we install both.
#
[ -d /home/build/build/core/libpcap/pkg/usr/lib ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/lib; chmod 755 /home/build/build/core/libpcap/pkg/usr/lib)
/bin/install -c -m 644 libpcap.a /home/build/build/core/libpcap/pkg/usr/lib/libpcap.a
ranlib /home/build/build/core/libpcap/pkg/usr/lib/libpcap.a
[ -d /home/build/build/core/libpcap/pkg/usr/lib ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/lib; chmod 755 /home/build/build/core/libpcap/pkg/usr/lib)
VER=`cat ./VERSION`; \
    MAJOR_VER=`sed 's/\([0-9][0-9]*\)\..*/\1/' ./VERSION`; \
    /bin/install -c libpcap.so.$VER /home/build/build/core/libpcap/pkg/usr/lib/libpcap.so.$VER; \
    ln -sf libpcap.so.$VER /home/build/build/core/libpcap/pkg/usr/lib/libpcap.so.$MAJOR_VER; \
    ln -sf libpcap.so.$MAJOR_VER /home/build/build/core/libpcap/pkg/usr/lib/libpcap.so
[ -d /home/build/build/core/libpcap/pkg/usr/lib ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/lib; chmod 755 /home/build/build/core/libpcap/pkg/usr/lib)
make: Nothing to be done for `install-shared'.
[ -d /home/build/build/core/libpcap/pkg/usr/include ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/include; chmod 755 /home/build/build/core/libpcap/pkg/usr/include)
[ -d /home/build/build/core/libpcap/pkg/usr/include/pcap ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/include/pcap; chmod 755 /home/build/build/core/libpcap/pkg/usr/include/pcap)
[ -d /home/build/build/core/libpcap/pkg/usr/share/man/man1 ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/share/man/man1; chmod 755 /home/build/build/core/libpcap/pkg/usr/share/man/man1)
[ -d /home/build/build/core/libpcap/pkg/usr/share/man/man3 ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/share/man/man3; chmod 755 /home/build/build/core/libpcap/pkg/usr/share/man/man3)
[ -d /home/build/build/core/libpcap/pkg/usr/share/man/man5 ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/share/man/man5; chmod 755 /home/build/build/core/libpcap/pkg/usr/share/man/man5)
[ -d /home/build/build/core/libpcap/pkg/usr/share/man/man7 ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/share/man/man7; chmod 755 /home/build/build/core/libpcap/pkg/usr/share/man/man7)
for i in pcap.h pcap-bpf.h pcap-namedb.h pcap/bpf.h pcap/bluetooth.h pcap/ipnet.h pcap/namedb.h pcap/pcap.h pcap/sll.h pcap/vlan.h pcap/usb.h; do \
        /bin/install -c -m 644 ./$i \
            /home/build/build/core/libpcap/pkg/usr/include/$i; done
[ -d /home/build/build/core/libpcap/pkg/usr/bin ] || \
        (mkdir -p /home/build/build/core/libpcap/pkg/usr/bin; chmod 755 /home/build/build/core/libpcap/pkg/usr/bin)
/bin/install -c pcap-config /home/build/build/core/libpcap/pkg/usr/bin/pcap-config
for i in pcap-config.1; do \
        /bin/install -c -m 644 ./$i \
            /home/build/build/core/libpcap/pkg/usr/share/man/man1/$i; done
for i in pcap_activate.3pcap pcap_breakloop.3pcap pcap_can_set_rfmon.3pcap pcap_close.3pcap pcap_create.3pcap pcap_datalink_name_to_val.3pcap pcap_datalink_val_to_name.3pcap pcap_dump.3pcap pcap_dump_close.3pcap pcap_dump_file.3pcap pcap_dump_flush.3pcap pcap_dump_ftell.3pcap pcap_file.3pcap pcap_fileno.3pcap pcap_findalldevs.3pcap pcap_freealldevs.3pcap pcap_freecode.3pcap pcap_free_datalinks.3pcap pcap_get_selectable_fd.3pcap pcap_geterr.3pcap pcap_inject.3pcap pcap_is_swapped.3pcap pcap_lib_version.3pcap pcap_lookupdev.3pcap pcap_lookupnet.3pcap pcap_loop.3pcap pcap_major_version.3pcap pcap_next_ex.3pcap pcap_offline_filter.3pcap pcap_open_live.3pcap pcap_set_buffer_size.3pcap pcap_set_datalink.3pcap pcap_set_promisc.3pcap pcap_set_rfmon.3pcap pcap_set_snaplen.3pcap pcap_set_timeout.3pcap pcap_setdirection.3pcap pcap_setfilter.3pcap pcap_setnonblock.3pcap pcap_snapshot.3pcap pcap_stats.3pcap pcap_statustostr.3pcap pcap_strerror.3pcap; do \
        /bin/install -c -m 644 ./$i \
            /home/build/build/core/libpcap/pkg/usr/share/man/man3/$i; done
for i in pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap; do \
        /bin/install -c -m 644 $i \
            /home/build/build/core/libpcap/pkg/usr/share/man/man3/$i; done
rm -f /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_datalink_val_to_description.3pcap
ln /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_datalink_val_to_name.3pcap \
         /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_datalink_val_to_description.3pcap
rm -f /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_dump_fopen.3pcap
ln /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_dump_open.3pcap \
         /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_dump_fopen.3pcap
rm -f /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_perror.3pcap
ln /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_geterr.3pcap \
         /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_perror.3pcap
rm -f /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_sendpacket.3pcap
ln /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_inject.3pcap \
         /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_sendpacket.3pcap
rm -f /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_dispatch.3pcap
ln /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_loop.3pcap \
         /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_dispatch.3pcap
rm -f /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_minor_version.3pcap
ln /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_major_version.3pcap \
         /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_minor_version.3pcap
rm -f /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_next.3pcap
ln /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_next_ex.3pcap \
         /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_next.3pcap
rm -f /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_fopen_offline.3pcap
ln /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_open_offline.3pcap \
         /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_fopen_offline.3pcap
rm -f /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_getnonblock.3pcap
ln /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_setnonblock.3pcap \
         /home/build/build/core/libpcap/pkg/usr/share/man/man3/pcap_getnonblock.3pcap
for i in pcap-savefile.manfile.in; do \
        /bin/install -c -m 644 `echo $i | sed 's/.manfile.in/.manfile/'` \
            /home/build/build/core/libpcap/pkg/usr/share/man/man5/`echo $i | sed 's/.manfile.in/.5/'`; done
for i in pcap-filter.manmisc.in pcap-linktype.manmisc.in; do \
        /bin/install -c -m 644 `echo $i | sed 's/.manmisc.in/.manmisc/'` \
            /home/build/build/core/libpcap/pkg/usr/share/man/man7/`echo $i | sed 's/.manmisc.in/.7/'`; done
ln: creating symbolic link `/home/build/build/core/libpcap/pkg/usr/lib/libpcap.so.1': File exists
[1m    Aborting...[m

Offline

#2 2010-07-01 00:37:31

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Build of libpcap fails

You're sure you're building in a clean directory? File already exists, as you can see on the penultimate line.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2010-07-01 00:54:35

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Build of libpcap fails

Yeah, it is a clean directory for sure.

Offline

#4 2010-07-01 01:04:22

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,428
Website

Re: Build of libpcap fails

The PKGBUILD does:

  make DESTDIR=${pkgdir} install install-shared || return 1
  ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so.1
  ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so

It looks like the symlinks were not being created in earlier versions but they are now.  So those ln -s lines are not needed anymore.  File a bug report.

Offline

#5 2010-07-01 02:00:28

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Build of libpcap fails

Thanks!  I'll be making more bug reports than posts from now on.

Offline

Board footer

Powered by FluxBB