Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34959 - net-misc/nemesis 1.32 :: compilation fails
Summary: net-misc/nemesis 1.32 :: compilation fails
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-03 02:08 UTC by Ioannis Aslanidis (RETIRED)
Modified: 2003-12-14 05:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Additional bugreport using CFLAGS="-mcpu=i686" MAKEOPTS="-j2" emerge nemesis (bugreport.nemesis,4.25 KB, text/plain)
2003-12-03 02:13 UTC, Ioannis Aslanidis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ioannis Aslanidis (RETIRED) gentoo-dev 2003-12-03 02:08:32 UTC
There are compilation problems with nemesis. Report follows.

BlackHat root # emerge nemesis
Calculating dependencies ...done!
>>> emerge (1 of 1) net-misc/nemesis-1.32 to /
>>> md5 src_uri ;-) nemesis-1.32.tar.gz
>>> Unpacking source...
>>> Unpacking nemesis-1.32.tar.gz to /var/tmp/portage/nemesis-1.32/work
patching file Makefile.in
>>> Source unpacked.
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -march=athlon-xp -O5 -fomit-frame-pointer
-pipe ) works... yes
checking whether the C compiler (gcc -march=athlon-xp -O5 -fomit-frame-pointer
-pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /bin/install -c
checking to see if we can add '-Wall' to CFLAGS... yes
checking for libnet_build_ip in -lnet... no
checking for pcap_open_live in -lpcap... yes
checking for ANSI C header files... yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for libnet.h... yes
checking for pcap.h... yes
checking for net/bpf.h... yes
checking for working const... yes
checking whether gcc needs -traditional... no
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
gcc -Wall -march=athlon-xp -O5 -fomit-frame-pointer -pipe -I/usr/include 
-DLINUX -D_BSD_SOURCE -D__FAVOR_BSD `libnet-config --defines` -c nemesis-arp.c
-o nemesis-arp.o
gcc -Wall -march=athlon-xp -O5 -fomit-frame-pointer -pipe -I/usr/include 
-DLINUX -D_BSD_SOURCE -D__FAVOR_BSD `libnet-config --defines` -c
nemesis-proto_arp.c -o nemesis-proto_arp.o
gcc -Wall -march=athlon-xp -O5 -fomit-frame-pointer -pipe -I/usr/include 
-DLINUX -D_BSD_SOURCE -D__FAVOR_BSD `libnet-config --defines` -c nemesis-dns.c
-o nemesis-dns.o
gcc -Wall -march=athlon-xp -O5 -fomit-frame-pointer -pipe -I/usr/include 
-DLINUX -D_BSD_SOURCE -D__FAVOR_BSD `libnet-config --defines` -c
nemesis-proto_dns.c -o nemesis-proto_dns.o
nemesis-proto_arp.c: In function `buildarp':
nemesis-proto_arp.c:40: warning: implicit declaration of function
`libnet_open_link_interface'
nemesis-proto_arp.c:40: warning: assignment makes pointer from integer without a
cast
nemesis-proto_arp.c:49: warning: implicit declaration of function
`libnet_open_raw_sock'
nemesis-proto_arp.c:60: warning: implicit declaration of function
`libnet_init_packet'
nemesis-proto_arp.c:70: warning: passing arg 6 of `libnet_build_ethernet' from
incompatible pointer type
nemesis-proto_arp.c:70: error: too few arguments to function `libnet_build_ethernet'
nemesis-proto_arp.c:89: warning: passing arg 12 of `libnet_build_arp' from
incompatible pointer type
nemesis-proto_arp.c:89: error: too few arguments to function `libnet_build_arp'
nemesis-proto_arp.c:107: warning: passing arg 12 of `libnet_build_arp' from
incompatible pointer type
nemesis-proto_arp.c:107: error: too few arguments to function `libnet_build_arp'
nemesis-proto_arp.c:109: warning: implicit declaration of function
`libnet_write_link_layer'
nemesis-proto_arp.c:118: error: dereferencing pointer to incomplete type
nemesis-proto_arp.c:121: error: dereferencing pointer to incomplete type
nemesis-proto_arp.c:124: warning: implicit declaration of function
`libnet_destroy_packet'
nemesis-proto_arp.c:125: warning: implicit declaration of function
`libnet_close_raw_sock'
make: *** [nemesis-proto_arp.o] Error 1
make: *** Waiting for unfinished jobs....
nemesis-dns.c: In function `main':
nemesis-dns.c:49: warning: implicit declaration of function `libnet_name_resolve'
nemesis-dns.c:179: warning: comparison between pointer and integer
nemesis-arp.c: In function `main':
nemesis-arp.c:76: warning: implicit declaration of function `libnet_name_resolve'
nemesis-arp.c:141: warning: comparison between pointer and integer
nemesis-arp.c:142: warning: passing arg 1 of `libnet_get_hwaddr' from
incompatible pointer type
nemesis-arp.c:142: error: too many arguments to function `libnet_get_hwaddr'
nemesis-arp.c:142: warning: assignment from incompatible pointer type
nemesis-arp.c: In function `defaults':
nemesis-arp.c:250: warning: assignment makes integer from pointer without a cast
nemesis-arp.c:251: warning: assignment makes integer from pointer without a cast
nemesis-arp.c:252: warning: assignment makes integer from pointer without a cast
nemesis-arp.c:253: warning: assignment makes integer from pointer without a cast
nemesis-arp.c:254: warning: assignment makes integer from pointer without a cast
nemesis-arp.c:255: warning: assignment makes integer from pointer without a cast
make: *** [nemesis-arp.o] Error 1
nemesis-dns.c:180: warning: passing arg 1 of `libnet_get_hwaddr' from
incompatible pointer type
nemesis-dns.c:180: error: too many arguments to function `libnet_get_hwaddr'
nemesis-dns.c:180: warning: assignment from incompatible pointer type
nemesis-dns.c: In function `defaults':
nemesis-dns.c:337: warning: assignment makes integer from pointer without a cast
nemesis-dns.c:338: warning: assignment makes integer from pointer without a cast
nemesis-dns.c:339: warning: assignment makes integer from pointer without a cast
nemesis-dns.c:340: warning: assignment makes integer from pointer without a cast
nemesis-dns.c:341: warning: assignment makes integer from pointer without a cast
nemesis-dns.c:342: warning: assignment makes integer from pointer without a cast
nemesis-dns.c:364: warning: assignment makes integer from pointer without a cast
make: *** [nemesis-dns.o] Error 1

!!! ERROR: net-misc/nemesis-1.32 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! compile problem

nemesis-proto_dns.c: In function `builddns':
nemesis-proto_dns.c:19: error: storage size of `ipopt' isn't known
nemesis-proto_dns.c:27: warning: comparison between pointer and integer
nemesis-proto_dns.c:32: error: `LIBNET_IP_H' undeclared (first use in this function)
nemesis-proto_dns.c:32: error: (Each undeclared identifier is reported only once
nemesis-proto_dns.c:32: error: for each function it appears in.)
nemesis-proto_dns.c:33: warning: implicit declaration of function
`libnet_open_raw_sock'
nemesis-proto_dns.c:41: warning: implicit declaration of function
`libnet_open_link_interface'
nemesis-proto_dns.c:41: warning: assignment makes pointer from integer without a
cast
nemesis-proto_dns.c:45: warning: implicit declaration of function
`libnet_init_packet'
nemesis-proto_dns.c:55: warning: passing arg 6 of `libnet_build_ethernet' from
incompatible pointer type
nemesis-proto_dns.c:55: error: too few arguments to function `libnet_build_ethernet'
nemesis-proto_dns.c:57: warning: implicit declaration of function `libnet_build_ip'
nemesis-proto_dns.c:57: error: `LIBNET_DNS_H' undeclared (first use in this
function)
nemesis-proto_dns.c:73: warning: passing arg 3 of `libnet_build_udp' makes
integer from pointer without a cast
nemesis-proto_dns.c:73: error: too few arguments to function `libnet_build_udp'
nemesis-proto_dns.c:75: warning: implicit declaration of function `libnet_build_dns'
nemesis-proto_dns.c:86: warning: passing arg 1 of `libnet_do_checksum' from
incompatible pointer type
nemesis-proto_dns.c:86: error: too few arguments to function `libnet_do_checksum'
nemesis-proto_dns.c:88: warning: passing arg 1 of `libnet_do_checksum' from
incompatible pointer type
nemesis-proto_dns.c:88: warning: passing arg 2 of `libnet_do_checksum' makes
pointer from integer without a cast
nemesis-proto_dns.c:88: error: too few arguments to function `libnet_do_checksum'
nemesis-proto_dns.c:94: warning: implicit declaration of function
`libnet_insert_ipo'
nemesis-proto_dns.c:101: warning: implicit declaration of function
`libnet_write_link_layer'
nemesis-proto_dns.c:111: error: dereferencing pointer to incomplete type
nemesis-proto_dns.c:113: warning: implicit declaration of function
`libnet_destroy_packet'
nemesis-proto_dns.c:114: warning: implicit declaration of function
`libnet_close_raw_sock'
nemesis-proto_dns.c:117: warning: assignment makes pointer from integer without
a cast
nemesis-proto_dns.c:131: warning: passing arg 6 of `libnet_build_ethernet' from
incompatible pointer type
nemesis-proto_dns.c:131: error: too few arguments to function
`libnet_build_ethernet'
nemesis-proto_dns.c:153: warning: passing arg 8 of `libnet_build_tcp' makes
integer from pointer without a cast
nemesis-proto_dns.c:153: error: too few arguments to function `libnet_build_tcp'
nemesis-proto_dns.c:166: warning: passing arg 1 of `libnet_do_checksum' from
incompatible pointer type
nemesis-proto_dns.c:166: error: too few arguments to function `libnet_do_checksum'
nemesis-proto_dns.c:168: warning: passing arg 1 of `libnet_do_checksum' from
incompatible pointer type
nemesis-proto_dns.c:168: warning: passing arg 2 of `libnet_do_checksum' makes
pointer from integer without a cast
nemesis-proto_dns.c:168: error: too few arguments to function `libnet_do_checksum'
nemesis-proto_dns.c:190: error: dereferencing pointer to incomplete type
nemesis-proto_dns.c:218: warning: passing arg 3 of `libnet_build_udp' makes
integer from pointer without a cast
nemesis-proto_dns.c:218: error: too few arguments to function `libnet_build_udp'
nemesis-proto_dns.c:231: warning: passing arg 1 of `libnet_do_checksum' from
incompatible pointer type
nemesis-proto_dns.c:231: warning: passing arg 2 of `libnet_do_checksum' makes
pointer from integer without a cast
nemesis-proto_dns.c:231: error: too few arguments to function `libnet_do_checksum'
nemesis-proto_dns.c:241: warning: implicit declaration of function `libnet_write_ip'
nemesis-proto_dns.c:281: warning: passing arg 8 of `libnet_build_tcp' makes
integer from pointer without a cast
nemesis-proto_dns.c:281: error: too few arguments to function `libnet_build_tcp'
nemesis-proto_dns.c:294: warning: passing arg 1 of `libnet_do_checksum' from
incompatible pointer type
nemesis-proto_dns.c:294: warning: passing arg 2 of `libnet_do_checksum' makes
pointer from integer without a cast
nemesis-proto_dns.c:294: error: too few arguments to function `libnet_do_checksum'
nemesis-proto_dns.c:19: warning: unused variable `ipopt'


Reproducible: Always
Steps to Reproduce:
1. emerge nemesis
Actual Results:  
Compilation failed

Expected Results:  
Compilation should have ended successfully

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test9-mm2)
=================================================================
System uname: 2.6.0-test9-mm2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O5 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/xdvi/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O5 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox ccache distcc usersandbox fixpackages"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://ftp.gentoo.skynet.be/pub/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.easynet.nl/mirror/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.linux.no/
http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo
http://mirror.pudas.net/gentoo http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/
http://www.fhh.opensource-mirror.de/gentoo.org/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://ftp6.uni-erlangen.de/pub/mirrors/gentoo
http://darkstar.ist.utl.pt/gentoo/ http://ftp.caliu.info/pub/gentoo/
http://gentoo.inode.at/ http://ftp.rhnet.is/pub/gentoo/ ftp://files.gentoo.gr
http://gentoo.mirror.sdv.fr"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 libg++ mikmod gdbm berkdb tetex sdl pam python ldap 3dnow aalib alsa
apm arts avi cdr crypt cscope cups curl dga directfb doc dvd dvdr emacs emacs-w3
encode esd ethereal fbcon flash foomaticdb gif gphoto2 gnome gpm gstreamer gtk
imlib ipv6 java jikes jpeg junit kde leim libwww mad maildir memlimit mmx motif
mozilla mpeg mule nas ncurses nls nocd oggvorbis opengl oss ppds pdflib perl png
bindist qt quicktime readline slang spell sse ssl svga tcltk tcpd tiff truetype
usb videos wmf wxwindows X xinerama xosd xml xml2 xmms xv zlib"
Comment 1 Ioannis Aslanidis (RETIRED) gentoo-dev 2003-12-03 02:13:53 UTC
Created attachment 21628 [details]
Additional bugreport using CFLAGS="-mcpu=i686" MAKEOPTS="-j2" emerge nemesis

It doesn't seem a flag problem...
Comment 2 Stephane Loeuillet 2003-12-04 19:50:10 UTC
it seems like a missing header problem

it might hopefully be fixed in 'nemesis-1.4beta3.tar.gz Build 22' which is marked on their site as more stable than 1.32 (even if in beta)

so, 2 solutions :
  - fixing the bug, surelly adding an #include line (or switching include orders)
  - bumping version

http://www.packetfactory.net/Projects/nemesis/
http://www.packetfactory.net/Projects/nemesis/ChangeLog
http://www.packetfactory.net/Projects/nemesis/nemesis-1.4beta3.tar.gz
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-09 02:19:02 UTC
libnet thing
Comment 4 SpanKY gentoo-dev 2003-12-11 16:10:48 UTC
1.4_beta3 is latest stable in portage, use that
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2003-12-14 05:33:56 UTC
Due to the fact that version 1.32 doesn't work at all, I ask you to remove it from the portage tree and set as the default one the beta version... it makes no sense to have as default a version that does not even work where there is already a newer one that works... even if it is still a 'beta'.