Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tcpreplay failking to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Wed Jun 05, 2013 7:08 am    Post subject: tcpreplay failking to compile Reply with quote

[quote]
6_64-pc-linux-gnu-ranlib libfragroute.a
make[3]: Leaving directory `/var/tmp/portage/net-analyzer/tcpreplay-3.4.4-r2/work/tcpreplay-3.4.4/src/fragroute'
make[3]: Entering directory `/var/tmp/portage/net-analyzer/tcpreplay-3.4.4-r2/work/tcpreplay-3.4.4/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -DTCPREPLAY -D_U_="__attribute__((unused))" -march=native -O3 -pipe -Wall -O3 -std=gnu99 -Wextra -Wno-variadic-macros -Wfatal-errors -I/usr/include -c -o tcpreplay-tcpreplay_opts.o `test -f 'tcpreplay_opts.c' || echo './'`tcpreplay_opts.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -DTCPREPLAY -D_U_="__attribute__((unused))" -march=native -O3 -pipe -Wall -O3 -std=gnu99 -Wextra -Wno-variadic-macros -Wfatal-errors -I/usr/include -c -o tcpreplay-send_packets.o `test -f 'send_packets.c' || echo './'`send_packets.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -DTCPREPLAY -D_U_="__attribute__((unused))" -march=native -O3 -pipe -Wall -O3 -std=gnu99 -Wextra -Wno-variadic-macros -Wfatal-errors -I/usr/include -c -o tcpreplay-signal_handler.o `test -f 'signal_handler.c' || echo './'`signal_handler.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -DTCPREPLAY -D_U_="__attribute__((unused))" -march=native -O3 -pipe -Wall -O3 -std=gnu99 -Wextra -Wno-variadic-macros -Wfatal-errors -I/usr/include -c -o tcpreplay-tcpreplay.o `test -f 'tcpreplay.c' || echo './'`tcpreplay.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -DTCPREPLAY -D_U_="__attribute__((unused))" -march=native -O3 -pipe -Wall -O3 -std=gnu99 -Wextra -Wno-variadic-macros -Wfatal-errors -I/usr/include -c -o tcpreplay-sleep.o `test -f 'sleep.c' || echo './'`sleep.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -DTCPPREP -D_U_="__attribute__((unused))" -march=native -O3 -pipe -Wall -O3 -std=gnu99 -Wextra -Wno-variadic-macros -Wfatal-errors -I/usr/include -c -o tcpprep-tcpprep_opts.o `test -f 'tcpprep_opts.c' || echo './'`tcpprep_opts.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -DTCPPREP -D_U_="__attribute__((unused))" -march=native -O3 -pipe -Wall -O3 -std=gnu99 -Wextra -Wno-variadic-macros -Wfatal-errors -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))" -march=native -O3 -pipe -Wall -O3 -std=gnu99 -Wextra -Wno-variadic-macros -Wfatal-errors -I/usr/include -c -o tcpprep-tree.o `test -f 'tree.c' || echo './'`tree.c
tcpreplay_opts.c:67:1: error: unknown type name ‘tSCC’
compilation terminated due to -Wfatal-errors.
make[3]: *** [tcpreplay-tcpreplay_opts.o] Error 1
make[3]: *** Waiting for unfinished jobs....
tcpprep_opts.c:67:1: error: unknown type name ‘tSCC’
compilation terminated due to -Wfatal-errors.
make[3]: *** [tcpprep-tcpprep_opts.o] Error 1
sleep.c: In function ‘ioport_sleep’:
sleep.c:70:36: warning: unused parameter ‘nap’ [-Wunused-parameter]
tcpreplay.c: In function ‘post_args’:
tcpreplay.c:382:23: warning: assignment makes integer from pointer without a cast [enabled by default]
tree.c: In function ‘add_tree_first_ipv4’:
tree.c:383:16: warning: variable ‘eth_hdr’ set but not used [-Wunused-but-set-variable]
tree.c: In function ‘add_tree_first_ipv6’:
tree.c:434:16: warning: variable ‘eth_hdr’ set but not used [-Wunused-but-set-variable]
tcpprep.c: In function ‘process_raw_packets’:
tcpprep.c:341:19: warning: variable ‘poller’ set but not used [-Wunused-but-set-variable]
tcpprep.c:336:16: warning: variable ‘cache_result’ set but not used [-Wunused-but-set-variable]
tree.c: At top level:
tree.c:905:1: warning: ‘tree_print’ defined but not used [-Wunused-function]
tcpprep.c:439:27: warning: ‘direction’ may be used uninitialized in this function [-Wmaybe-uninitialized]
make[3]: Leaving directory `/var/tmp/portage/net-analyzer/tcpreplay-3.4.4-r2/work/tcpreplay-3.4.4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/tcpreplay-3.4.4-r2/work/tcpreplay-3.4.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/tcpreplay-3.4.4-r2/work/tcpreplay-3.4.4/src'
make: *** [all-recursive] Error 1
* ERROR: net-analyzer/tcpreplay-3.4.4-r2 failed (compile phase):
* emake failed
[/quote

tried with gcc 4.6 and 4.7
Quote:

gentoo-linux cryptomap_strongswan # cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O3 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
MAKEOPTS="-j3"
USE="openssl php gd apache2 nagios-ping nagios-ssh snmp ipv6 python -hal udev qt4 cisco nat-transport tcpreplay eap mmx sse sse2 sse3"

GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.cs.uni.edu/"

SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
ACCEPT_LICENSE="*"
VIDEO_CARDS="vesa"
INPUT_DEVICES="evdev keyboard mouse mmouse"
ACCEPT_KEYWORDS="~amd64"
PHP_TARGETS="php5-4"
APACHE2_MODULES="filter usertrack ubstitute deflate headers rewrite userdir cgi authz_dbm authz_groupfile authz_owner authz_user authn_alias authn_anon authn_dbd authn_dbm auth_digest auth_basic authn_file access_compat apache2 alias autoindex authz_host authn_core authz_core dir mime unixd socache_shmcb mod_access_compat"

_________________
Olivier PELERIN
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Thu Jun 06, 2013 9:45 pm    Post subject: Reply with quote

Try with -O2 instead of -O3.

Please file bugs at https://bugs.gentoo.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum