Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503048 - net-analyzer/tcpreplay-4.0.2 USE=-* - In function ‘tcpreplay_set_verbose’: tcpreplay_api.h:280:107: error: expected expression before ‘)’ token
Summary: net-analyzer/tcpreplay-4.0.2 USE=-* - In function ‘tcpreplay_set_verbose’: tc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL: https://github.com/appneta/tcpreplay/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-28 14:19 UTC by Conrad Kostecki
Modified: 2014-03-01 15:39 UTC (History)
0 users

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


Attachments
build.log (build.log,57.56 KB, text/plain)
2014-03-01 15:04 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2014-02-28 14:19:23 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -I..  -I/usr/include -DTCPPREP -D_U_="__attribute__((unused))" -O2 -march=core2 -pipe -Wall  -std=gnu99  -Wno-variadic-macros -Wfatal-errors -Wno-format-contains-nul -I/usr/include -c -o tcpprep-tcpprep.o `test -f 'tcpprep.c' || echo './'`tcpprep.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -I..  -I/usr/include -DTCPPREP -D_U_="__attribute__((unused))" -O2 -march=core2 -pipe -Wall  -std=gnu99  -Wno-variadic-macros -Wfatal-errors -Wno-format-contains-nul -I/usr/include -c -o tcpprep-tree.o `test -f 'tree.c' || echo './'`tree.c
tcpreplay_api.c: In function ‘tcpreplay_set_verbose’:
tcpreplay_api.c:693:97: error: expected expression before ‘)’ token
     tcpreplay_seterr(ctx, "verbose mode not supported");
                                                                                                 ^
compilation terminated due to -Wfatal-errors.
Makefile:984: recipe for target 'tcpreplay-tcpreplay_api.o' failed
make[3]: *** [tcpreplay-tcpreplay_api.o] Error 1
make[3]: *** Waiting for unfinished jobs....
tcpprep.c: In function ‘process_raw_packets’:
tcpprep.c:332:16: warning: variable ‘cache_result’ set but not used [-Wunused-but-set-variable]
     int l2len, cache_result = 0;
                ^
send_packets.c: In function ‘fast_edit_packet_dl’:
send_packets.c:83:13: warning: variable ‘packet’ set but not used [-Wunused-but-set-variable]
     u_char *packet;
             ^
send_packets.c: In function ‘send_dual_packets’:
send_packets.c:628:82: warning: variable ‘prev_packet’ set but not used [-Wunused-but-set-variable]
     packet_cache_t **prev_packet1 = NULL, **prev_packet2 = NULL, **prev_packet = NULL;
                                                                                  ^
send_packets.c:620:13: warning: variable ‘pcap’ set but not used [-Wunused-but-set-variable]
     pcap_t *pcap;
             ^
tree.c: In function ‘add_tree_first_ipv4’:
tree.c:373:16: warning: variable ‘eth_hdr’ set but not used [-Wunused-but-set-variable]
     eth_hdr_t *eth_hdr = NULL;
                ^
tree.c: In function ‘add_tree_first_ipv6’:
tree.c:424:16: warning: variable ‘eth_hdr’ set but not used [-Wunused-but-set-variable]
     eth_hdr_t *eth_hdr = NULL;
                ^
make[3]: Leaving directory '/var/tmp/portage/net-analyzer/tcpreplay-4.0.2/work/tcpreplay-4.0.2/src'
Makefile:1189: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-analyzer/tcpreplay-4.0.2/work/tcpreplay-4.0.2/src'
Makefile:556: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-analyzer/tcpreplay-4.0.2/work/tcpreplay-4.0.2/src'
Makefile:427: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 * ERROR: net-analyzer/tcpreplay-4.0.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-analyzer/tcpreplay-4.0.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/tcpreplay-4.0.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/tcpreplay-4.0.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/tcpreplay-4.0.2/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/tcpreplay-4.0.2/work/tcpreplay-4.0.2'
 * S: '/var/tmp/portage/net-analyzer/tcpreplay-4.0.2/work/tcpreplay-4.0.2'
Comment 1 Conrad Kostecki gentoo-dev 2014-02-28 14:19:37 UTC
Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.18-r1, 3.13.5-gentoo x86_64)
=================================================================
System uname: Linux-3.13.5-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_975_@_3.33GHz-with-gentoo-2.2
KiB Mem:    12277700 total,   8081820 free
KiB Swap:    1047548 total,   1047548 free
Timestamp of tree: Fri, 28 Feb 2014 12:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.4
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo bl4ckb0x
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -mpopcnt -msahf -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -mpopcnt -msahf -pipe -fomit-frame-pointer -mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
MAKEOPTS="-j9 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X alsa amd64 bash-completion berkdb bzip2 cdinstall cracklib crypt ctype curl cvs cxx dbus dedicated exif ftp gd gif gmp gnutls gpm iconv icu idn ipv6 jabber javascript jit jpeg jpeg2k lzma lzo maildir minimal multilib mysql mysqli ncurses nls nntp nptl offensive ogg openal opengl openmp pam pcre perl png python readline session simplexml slang sockets speex spell sqlite sse sse2 ssl subversion suid svg symlink tcpd theora threads tiff timidity truetype udev unicode vhosts vim-syntax vorbis xml yahoo zlib" ABI_X86="64" COLLECTD_PLUGINS="conntrack contextswitch cpu cpufreq df disk dns entropy filecount hddtemp interface iptables irq load logfile md memory mysql nginx openvpn ping processes rrdcached rrdtool sensors swap tcpconns thermal uptime users unixsock" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LINGUAS="de" NGINX_MODULES_HTTP="access auth_basic autoindex charset fancyindex fastcgi gzip proxy realip rewrite spdy stub_status" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-28 15:16:30 UTC
Please attach the entire build log to this bug report.
Comment 3 Conrad Kostecki gentoo-dev 2014-03-01 15:04:27 UTC
Created attachment 371500 [details]
build.log

Here is my build.log.
I've also tried with CFLAGS="-march=core2 -O2 -pipe" which also failed with the same error.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-01 15:39:47 UTC
Fixed in 4.0.3. Thanks for the report!