Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136942 - net-analyzer/zodiac-0.4.9-r1 fails to compile in dns-spoof-int.c:266: error: label at end of compound statement
Summary: net-analyzer/zodiac-0.4.9-r1 fails to compile in dns-spoof-int.c:266: error: ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 136943 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-15 18:16 UTC by Werner M. Mayer
Modified: 2006-11-18 06:06 UTC (History)
2 users (show)

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


Attachments
patch for the ebuild zodiac-0.4.9-r1.ebuild (zodiac-0.4.9-r1.ebuild.patch,336 bytes, patch)
2006-06-22 04:06 UTC, Angelo Leto
Details | Diff
patch for dns-spoof-int.c (dns-spoof-int.c.patch,314 bytes, patch)
2006-06-22 04:10 UTC, Angelo Leto
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Werner M. Mayer 2006-06-15 18:16:30 UTC
Screen output:
>>> emerge (31 of 41) net-analyzer/zodiac-0.4.9-r1 to /
mv: cannot stat `/var/tmp/portage/zodiac-0.4.9-r1/temp/environment': No such file or directory
>>> md5 files   ;-) zodiac-0.4.9.ebuild
>>> md5 files   ;-) zodiac-0.4.9-r1.ebuild
>>> md5 files   ;-) files/digest-zodiac-0.4.9-r1
>>> md5 files   ;-) files/0.4.9-libnet-1.0.patch
>>> md5 files   ;-) files/digest-zodiac-0.4.9
>>> md5 src_uri ;-) zodiac-0.4.9.tar.gz
>>> Unpacking source...
>>> Unpacking zodiac-0.4.9.tar.gz to /var/tmp/portage/zodiac-0.4.9-r1/work
 * Applying 0.4.9-libnet-1.0.patch ...                                    [ ok ]>>> Source unpacked.
gcc -Wall -O2 -mtune=i686 -pipe `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o common.o common.c
gcc -Wall -O2 -mtune=i686 -pipe `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o cipher-blowfish.o cipher-blowfish.c
gcc -Wall -O2 -mtune=i686 -pipe `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o cipher-sha1.o cipher-sha1.c
gcc -Wall -O2 -mtune=i686 -pipe `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o dns.o dns.c
gcc -Wall -O2 -mtune=i686 -pipe `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o dns-build.o dns-build.c
gcc -Wall -O2 -mtune=i686 -pipe `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o dns-spoof-int.o dns-spoof-int.c
dns-build.c: In function `dns_build_random':
dns-build.c:45: warning: use of cast expressions as lvalues is deprecated
gcc -Wall -O2 -mtune=i686 -pipe `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o dns-spoof.o dns-spoof.c
dns-spoof-int.c: In function `spoof_id_add':
dns-spoof-int.c:162: warning: implicit declaration of function `memset'
dns-spoof-int.c: In function `spoof_destroy':
dns-spoof-int.c:266: error: label at end of compound statement
make: *** [dns-spoof-int.o] Error 1
make: *** Waiting for unfinished jobs....

 Gentoo Base System version 1.6.14
 Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16- gentoo-r7 i686)
 =================================================================
 System uname: 2.6.16-gentoo-r7 i686 VIA Samuel 2
 ccache version 2.3 [enabled]
 dev-lang/python:     2.4.2
 dev-python/pycrypto: [Not Present]
 dev-util/ccache:     2.3
 dev-util/confcache:  [Not Present]
 sys-apps/sandbox:    1.2.17
 sys-devel/autoconf:  2.13, 2.59-r7
 sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
 sys-devel/binutils:  2.16.1-r2
 sys-devel/libtool:   1.5.22
 virtual/os-headers:  2.6.11-r2
 ACCEPT_KEYWORDS="x86"
 AUTOCLEAN="yes"
 CBUILD="i686-pc-linux-gnu"
 CFLAGS="-O2 -mtune=i686 -pipe"
 CHOST="i686-pc-linux-gnu"
 CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/share/config"
 CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
 CXXFLAGS="-O2 -mtune=i686 -pipe"
 DISTDIR="/usr/portage/distfiles"
 FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distcc distlocks keeptemp k eepwork noauto noclean notitles sandbox sfperms strict userpriv usersandbox"
 GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ...
 MAKEOPTS="-j2"
 PKGDIR="/usr/portage/packages"
 PORTAGE_TMPDIR="/var/tmp"
 PORTDIR="/usr/portage"
 PORTDIR_OVERLAY="/usr/local/portage"
 SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
 USE="x86 X adns alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 c dr cli crypt cups curl dri eds emboss encode esd exif expat fam foomaticdb fort ran gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 is dnlog jpeg kde lcms libg++ libwww mad mikmod mng motif mp3 mpeg mysql ncurses n ls nptl ogg opengl oss pam pcre pdflib perl php png pppd python qt quicktime re adline recode reflection sdl session slang snmp spell spl ssl tcltk tcpd tetex
 tiff truetype truetype-fonts type1-fonts udev usb vorbis xml xml2 xmms xorg xv
 zlib userland_GNU kernel_linux elibc_glibc"

This bug is reproducable: redo emerge
Comment 1 Werner M. Mayer 2006-06-15 18:32:09 UTC
*** Bug 136943 has been marked as a duplicate of this bug. ***
Comment 2 Angelo Leto 2006-06-22 04:06:45 UTC
Created attachment 89792 [details, diff]
patch for the ebuild zodiac-0.4.9-r1.ebuild

The patched ebuild uses the patch dns-spoof-int.c.patch attached lower.
Comment 3 Angelo Leto 2006-06-22 04:10:14 UTC
Created attachment 89793 [details, diff]
patch for dns-spoof-int.c

The "default" statement within a switch should not be empty.
In any case the 'default:' statement seems not be needed,
because all the cases seems to be listed. It emerge and work fine on my side.
Comment 4 Norman Heinen 2006-10-17 17:48:54 UTC
>>> Emerging (1 of 1) net-analyzer/zodiac-0.4.9-r1 to /
 * zodiac-0.4.9.tar.gz MD5 ;-) ...                                                                                                                     [ ok ] * zodiac-0.4.9.tar.gz RMD160 ;-) ...                                                                                                                  [ ok ] * zodiac-0.4.9.tar.gz SHA1 ;-) ...                                                                                                                    [ ok ] * zodiac-0.4.9.tar.gz SHA256 ;-) ...                                                                                                                  [ ok ] * zodiac-0.4.9.tar.gz size ;-) ...                                                                                                                    [ ok ] * checking ebuild checksums ;-) ...                                                                                                                   [ ok ] * checking auxfile checksums ;-) ...                                                                                                                  [ ok ] * checking miscfile checksums ;-) ...                                                                                                                 [ ok ] * checking zodiac-0.4.9.tar.gz ;-) ...                                                                                                                [ ok ]>>> Unpacking source...
>>> Unpacking zodiac-0.4.9.tar.gz to /var/tmp/portage/zodiac-0.4.9-r1/work
 * Applying 0.4.9-libnet-1.0.patch ...                                                                                                                 [ ok ] * Applying dns-spoof-int.c.patch ...                                                                                                                  [ ok ]>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/zodiac-0.4.9-r1/work/zodiac ...
gcc -Wall -O2 -march=pentium-m -pipe -fomit-frame-pointer `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o common.o common.c
gcc -Wall -O2 -march=pentium-m -pipe -fomit-frame-pointer `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o cipher-blowfish.o cipher-blowfish.c
gcc -Wall -O2 -march=pentium-m -pipe -fomit-frame-pointer `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o cipher-sha1.o cipher-sha1.c
cipher-sha1.c: In function 'SHA1Hash':
cipher-sha1.c:198: warning: pointer targets in passing argument 2 of 'SHA1Update' differ in signedness
gcc -Wall -O2 -march=pentium-m -pipe -fomit-frame-pointer `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o dns.o dns.c
gcc -Wall -O2 -march=pentium-m -pipe -fomit-frame-pointer `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o dns-build.o dns-build.c
cipher-blowfish.c: In function 'blowfish_init':
cipher-blowfish.c:157: warning: pointer targets in passing argument 2 of '__builtin_strncpy' differ in signedness
gcc -Wall -O2 -march=pentium-m -pipe -fomit-frame-pointer `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o dns-spoof-int.o dns-spoof-int.c
gcc -Wall -O2 -march=pentium-m -pipe -fomit-frame-pointer `libnet-1.0-config --defines` -D_REENTRANT -pthread   -c -o dns-spoof.o dns-spoof.c
dns-spoof-int.c: In function 'spoof_id_add':
dns-spoof-int.c:162: warning: implicit declaration of function 'memset'
dns-spoof-int.c:162: warning: incompatible implicit declaration of built-in function 'memset'
dns-build.c: In function 'dns_build_random':
dns-build.c:45: error: invalid lvalue in assignment
dns-build.c: In function 'dns_build_rr':
dns-build.c:369: warning: pointer targets in assignment differ in signedness
dns-build.c:370: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
dns-build.c:382: warning: pointer targets in passing argument 1 of 'dns_build_ptr' differ in signedness
dns-build.c:383: warning: pointer targets in assignment differ in signedness
dns-build.c:385: warning: pointer targets in passing argument 2 of 'dns_build_domain' differ in signedness
dns-build.c: In function 'dns_build_query_label':
dns-build.c:447: warning: pointer targets in assignment differ in signedness
dns-build.c:454: warning: pointer targets in assignment differ in signedness
dns-build.c: In function 'dns_build_domain':
dns-build.c:485: warning: pointer targets in assignment differ in signedness
make: *** [dns-build.o] Error 1
make: *** Waiting for unfinished jobs....

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System version 1.12.5
Last Sync: Tue, 17 Oct 2006 12:30:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow 3dnowext X aac aiglx alsa audacious avahi bash-completion berkdb bitmap-fonts cdr cli crypt cups dbus dga dlloader dri dvd dvdr dvdread elibc_glibc firefox fortran gdbm gif gnome gpm gtk gtk2 hal input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kernel_linux libg++ live mad mp3 ncurses nls nptl nptlonly nsplugin openal opengl pam pcre perl png ppds pppd python quicktime readline real reflection ruby session socks5 speex spl ssl svg symlink tcpd tga tiff truetype-fonts type1-fonts udev unicode userland_GNU video_cards_fglrx vorbis win32codecs wireshark wma xmms xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 5 Cédric Krier gentoo-dev 2006-11-18 06:06:29 UTC
fix in cvs