nmap - bug (do Arka)

Arkadiusz Miśkiewicz Arkadiusz.Miskiewicz w zsz2.starachowice.pl
Sob, 19 Gru 1998, 14:24:29 CET


[sobota, 19 grudzień 1998], Marek Obuchowicz napisał(a):

> w pakiecie z nmapem jest bug:
> + make 'CCOPT=-O3 -mpentium -fno-strength-reduce -march=pentium'
> Configuring libpcap
> creating cache ./config.cache
> checking host system type... i586-pc-linux-gnu
> checking target system type... i586-pc-linux-gnu
> checking build system type... i586-pc-linux-gnu
> checking for gcc... gcc
> checking whether the C compiler (gcc -O3 -mpentium -fno-strength-reduce
> -march=pentium -Wall  -Ilibpcap-possiblymodified -O3 -mpentium
> -fno-strength-reduce -march=pentium -DHAVE_CONFIG_H -DVERSION=\"2.00\"
> -DLIBDIR=\"/usr/lib\" -I. -Ilibpcap-possiblymodified ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.
> make: *** [libpcap-possiblymodified/Makefile] Error 1
Dziwne.

Installing nmap-2.00-1d.src.rpm
Executing: %prep
+ umask 022
+ cd /home/uczen/misiek/.rpm/BUILD
+ cd /home/uczen/misiek/.rpm/BUILD
+ rm -rf nmap-2.00
+ /bin/gzip -dc /home/uczen/misiek/.rpm/SOURCES/nmap-2.00.tgz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nmap-2.00
+ chmod -R a+rX,g-w,o-w .
+ exit 0
Executing: %build
+ umask 022
+ cd /home/uczen/misiek/.rpm/BUILD
+ cd nmap-2.00
+ CFLAGS=-O6 -march=pentium -mpentium -fno-strength-reduce
+ LDFLAGS=-s
+ ./configure --prefix=/usr
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O6 -march=pentium -mpentium -fno-strength-reduce -s) works... yes
checking whether the C compiler (gcc -O6 -march=pentium -mpentium -fno-strength-reduce -s) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for makedepend... /usr/X11R6/bin/makedepend
checking host system type... i586-pc-linux-gnu
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking for nanosleep in -lposix4... no
checking for pcap_datalink in -lpcap... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for string.h... yes
checking for strings.h... yes
checking for memory.h... yes
checking for sys/param.h... yes
checking for sys/sockio.h... no
checking for netinet/if_ether.h... yes
checking for bstring.h... no
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for inline... inline
checking struct ip... yes
checking ip_v in struct ip... yes
checking if sockaddr{} has sa_len member... no
checking whether byte ordering is bigendian... no
checking if struct in_addr is a wacky huge structure (some Solaris boxes)... no
checking if struct icmp exists... yes
checking if struct ip exists... yes
checking if struct ip has ip_sum member... yes
checking for bzero... yes
checking for snprintf... yes
checking for memcpy... yes
checking for usleep... yes
checking for nanosleep... yes
checking for strerror... yes
checking for inet_aton... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
+ make 'CCOPT=-O6 -march=pentium -mpentium -fno-strength-reduce'
Configuring libpcap
creating cache ./config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... i586-pc-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking gcc version... 2
checking how to run the C preprocessor... gcc -E
checking for malloc.h... yes
checking for sys/ioccom.h... no
checking for sys/sockio.h... no
checking for ANSI ioctl definitions... yes
checking for ether_hostton... yes
checking for strerror... yes
checking packet capture type... linux
checking for net/if_arp.h... yes
checking Linux kernel version... 2
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 sa_len member... no
checking if unaligned accesses fail... no
checking for a BSD compatible install... /usr/bin/install -c
updating cache ./config.cache
creating ./config.status
creating Makefile
Compiling libpcap
make[1]: Entering directory `/home/uczen/misiek/.rpm/BUILD/nmap-2.00/libpcap-possiblymodified'
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./pcap-linux.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./pcap.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./inet.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./gencode.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./optimize.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./nametoaddr.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./etherent.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./savefile.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./bpf_filter.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./bpf_image.c
flex -Ppcap_ -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
bison -y -p pcap_ -d grammar.y
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./scanner.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -Dyylval=pcap_lval -c grammar.c
sed -e 's/.*/char pcap_version[] = "&";/' ./VERSION > version.c
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./version.c
ar rc libpcap.a pcap-linux.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o bpf_filter.o bpf_image.o scanner.o grammar.o version.o
ranlib libpcap.a
make[1]: Leaving directory `/home/uczen/misiek/.rpm/BUILD/nmap-2.00/libpcap-possiblymodified'
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -Wall  -Ilibpcap-possiblymodified -O6 -march=pentium -mpentium -fno-strength-reduce -DHAVE_CONFIG_H -DVERSION=\"2.00\" -DLIBDIR=\"/usr/lib\" -I. -Ilibpcap-possiblymodified   -c nmap.c -o nmap.o
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -Wall  -Ilibpcap-possiblymodified -O6 -march=pentium -mpentium -fno-strength-reduce -DHAVE_CONFIG_H -DVERSION=\"2.00\" -DLIBDIR=\"/usr/lib\" -I. -Ilibpcap-possiblymodified   -c targets.c -o targets.o
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -Wall  -Ilibpcap-possiblymodified -O6 -march=pentium -mpentium -fno-strength-reduce -DHAVE_CONFIG_H -DVERSION=\"2.00\" -DLIBDIR=\"/usr/lib\" -I. -Ilibpcap-possiblymodified   -c tcpip.c -o tcpip.o
gcc -O6 -march=pentium -mpentium -fno-strength-reduce -Wall  -Ilibpcap-possiblymodified -O6 -march=pentium -mpentium -fno-strength-reduce -DHAVE_CONFIG_H -DVERSION=\"2.00\" -DLIBDIR=\"/usr/lib\" -I. -Ilibpcap-possiblymodified   -c error.c -o error.o

> 
> rozwiązanie: w specu po ./configure dodać
> cd libpcap-possiblymodified
> CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
> cd ..

A możesz zobaczyć na czym się wykrzacza (configure.log)

> 
> Pozdrowienia,
> Marek
> 
> -- 
>   ________________/  Marek Obuchowicz  \_______________
>  /      Finga elephant w szczecin.top.pl 4 PGP key       \
> | http://www.wirtual.pl <> http://www.shadow.eu.org/PLD |
> |  elephant w shadow.eu.org <> sometimez "slonik" at IRC  |
>  \___________/ Member of da GNU generation \___________/

-- 
  +- Arkadiusz Miśkiewicz - Cron w irc.pl on #plug - misiek w misiek.eu.org -+
  + http://www.misiek.eu.org --- Poland --- SysAdm: zsz2.starachowice.pl +
  + Polish Linux Distribution Team Member - http://www.shadow.eu.org/PLD +



Więcej informacji o liście dyskusyjnej pld-devel-pl