Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293253 - net-libs/libnet-1.1.4 error while compilation
Summary: net-libs/libnet-1.1.4 error while compilation
Status: RESOLVED DUPLICATE of bug 64126
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-15 06:27 UTC by Cha
Modified: 2009-11-17 01:28 UTC (History)
2 users (show)

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


Attachments
emerge --info (info,3.48 KB, text/plain)
2009-11-17 01:10 UTC, Cha
Details
build log (build.log,41.64 KB, text/plain)
2009-11-17 01:17 UTC, Cha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cha 2009-11-15 06:27:28 UTC
In file included from /usr/include/linux/preempt.h:9,
                 from /usr/include/linux/spinlock.h:50,
                 from /usr/include/net/raw.h:22,
                 from libnet_link_snoop.c:38:
/usr/include/linux/thread_info.h:26: error: expected specifier-qualifier-list before 'u32'
/usr/include/linux/thread_info.h:39: error: expected specifier-qualifier-list before 'u64'
In file included from /usr/include/linux/bitops.h:17,
                 from /usr/include/linux/thread_info.h:54,
                 from /usr/include/linux/preempt.h:9,
                 from /usr/include/linux/spinlock.h:50,
                 from /usr/include/net/raw.h:22,
                 from libnet_link_snoop.c:38:
/usr/include/asm/bitops.h: In function 'set_bit':
/usr/include/asm/bitops.h:54: error: expected string literal before 'DCACHE_CLEAR'
/usr/include/asm/bitops.h: In function 'clear_bit':
/usr/include/asm/bitops.h:91: error: expected string literal before 'DCACHE_CLEAR'
/usr/include/asm/bitops.h: In function 'change_bit':
/usr/include/asm/bitops.h:129: error: expected string literal before 'DCACHE_CLEAR'
/usr/include/asm/bitops.h: In function 'test_and_set_bit':
/usr/include/asm/bitops.h:163: error: expected string literal before 'DCACHE_CLEAR'
/usr/include/asm/bitops.h: In function 'test_and_clear_bit':
/usr/include/asm/bitops.h:199: error: expected string literal before 'DCACHE_CLEAR'
/usr/include/asm/bitops.h: In function 'test_and_change_bit':
/usr/include/asm/bitops.h:235: error: expected string literal before 'DCACHE_CLEAR'
In file included from /usr/include/asm/bitops.h:250,
                 from /usr/include/linux/bitops.h:17,
                 from /usr/include/linux/thread_info.h:54,
                 from /usr/include/linux/preempt.h:9,
                 from /usr/include/linux/spinlock.h:50,
                 from /usr/include/net/raw.h:22,
                 from libnet_link_snoop.c:38:
/usr/include/asm-generic/bitops/non-atomic.h: In function 'test_bit':
/usr/include/asm-generic/bitops/non-atomic.h:105: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/asm-generic/bitops/non-atomic.h:105: error: (Each undeclared identifier is reported only once
/usr/include/asm-generic/bitops/non-atomic.h:105: error: for each function it appears in.)
In file included from /usr/include/asm/bitops.h:254,
                 from /usr/include/linux/bitops.h:17,
                 from /usr/include/linux/thread_info.h:54,
                 from /usr/include/linux/preempt.h:9,
                 from /usr/include/linux/spinlock.h:50,
                 from /usr/include/net/raw.h:22,
                 from libnet_link_snoop.c:38:
/usr/include/asm-generic/bitops/fls64.h:33:2: error: #error BITS_PER_LONG not 32 or 64
In file included from /usr/include/linux/spinlock.h:348,
                 from /usr/include/net/raw.h:22,
                 from libnet_link_snoop.c:38:
/usr/include/asm/atomic.h: In function 'atomic_add_return':
/usr/include/asm/atomic.h:61: error: expected ':' or ')' before 'DCACHE_CLEAR'
/usr/include/asm/atomic.h: In function 'atomic_sub_return':
/usr/include/asm/atomic.h:92: error: expected ':' or ')' before 'DCACHE_CLEAR'
/usr/include/asm/atomic.h: In function 'atomic_inc_return':
/usr/include/asm/atomic.h:151: error: expected ':' or ')' before 'DCACHE_CLEAR'
/usr/include/asm/atomic.h: In function 'atomic_dec_return':
/usr/include/asm/atomic.h:181: error: expected ':' or ')' before 'DCACHE_CLEAR'
/usr/include/asm/atomic.h: In function 'atomic_clear_mask':
/usr/include/asm/atomic.h:281: error: expected ':' or ')' before 'DCACHE_CLEAR'
/usr/include/asm/atomic.h: In function 'atomic_set_mask':
/usr/include/asm/atomic.h:303: error: expected ':' or ')' before 'DCACHE_CLEAR'
libnet_link_snoop.c: In function 'libnet_open_link_interface':
libnet_link_snoop.c:57: error: storage size of 'sr' isn't known
libnet_link_snoop.c:61: error: dereferencing pointer to incomplete type
libnet_link_snoop.c:67: error: dereferencing pointer to incomplete type
libnet_link_snoop.c:68: error: dereferencing pointer to incomplete type
libnet_link_snoop.c:68: error: 'PF_RAW' undeclared (first use in this function)
libnet_link_snoop.c:68: error: 'RAWPROTO_DRAIN' undeclared (first use in this function)
libnet_link_snoop.c:69: error: dereferencing pointer to incomplete type
libnet_link_snoop.c:76: error: 'AF_RAW' undeclared (first use in this function)
libnet_link_snoop.c:80: error: dereferencing pointer to incomplete type
libnet_link_snoop.c:99: error: dereferencing pointer to incomplete type
libnet_link_snoop.c:105: error: dereferencing pointer to incomplete type
libnet_link_snoop.c:108: error: dereferencing pointer to incomplete type
libnet_link_snoop.c:110: error: dereferencing pointer to incomplete type
libnet_link_snoop.c: In function 'libnet_close_link_interface':
libnet_link_snoop.c:127: error: dereferencing pointer to incomplete type
libnet_link_snoop.c: In function 'libnet_write_link_layer':
libnet_link_snoop.c:151: error: dereferencing pointer to incomplete type
libnet_link_snoop.c:159: error: dereferencing pointer to incomplete type
make[1]: *** [libnet_link_snoop.lo] 오류 1
make[1]: Leaving directory `/var/tmp/portage/net-libs/libnet-1.1.4/work/libnet-1.1.4/src'
make: *** [all-recursive] 오류 1
 ^[[31;01m*^[[0m ERROR: net-libs/libnet-1.1.4 failed:
 ^[[31;01m*^[[0m   emake failed
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m     ebuild.sh, line  55:  Called src_compile
 ^[[31;01m*^[[0m   environment, line 118:  Called _eapi0_src_compile
 ^[[31;01m*^[[0m     ebuild.sh, line 601:  Called _eapi2_src_compile
 ^[[31;01m*^[[0m     ebuild.sh, line 635:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m                emake || die "emake failed"
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m If you need support, post the output of 'emerge --info =net-libs/libnet-1.1.4',
 ^[[31;01m*^[[0m the complete build log and the output of 'emerge -pqv =net-libs/libnet-1.1.4'.
 ^[[31;01m*^[[0m The complete build log is located at '/var/tmp/portage/net-libs/libnet-1.1.4/temp/build.log'.
 ^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/net-libs/libnet-1.1.4/temp/environment'.
 ^[[31;01m*^[[0m S: '/var/tmp/portage/net-libs/libnet-1.1.4/work/libnet-1.1.4'

-------------------------------------------------------------------------------
localhost ~ # emerge --info
Portage 2.1.7.4 (default/linux/x86/10.0/server, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r5-i686-Intel-R-_Pentium-R-_4_CPU_1.70GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 15 Nov 2009 03:30:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.4.6, 2.5.4-r2, 2.6.4, 3.1.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -msse2 -O3 -fomit-frame-pointer -pipe -fprefetch-loop-arrays -fforce-addr -falign-functions=4 -funroll-loops"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -msse2 -O3 -fomit-frame-pointer -pipe -fprefetch-loop-arrays -fforce-addr -falign-functions=4 -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.daum.net/gentoo/"
LANG="ko_KR.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 bash-completion berkdb bzip2 cjk cli cracklib crypt cups dri emacs fortran gd gdbm gpm iconv ipv6 kpathsea ldap modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php pppd python readline reflection samba session snmp sockets spl ssl sysfs tcpd truetype unicode x86 xml xorg" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-11-17 00:35:03 UTC
Does it work when you remove these from CFLAGS:

-fprefetch-loop-arrays -fforce-addr -falign-functions=4 -funroll-loops

and set it to -O2 instead of -O3?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-11-17 00:44:18 UTC
Also, what package owns /usr/include/net/raw.h ? Please attach the entire build log and the other info you so conveniently referred to:

> ^[[31;01m*^[[0m If you need support, post the output of 'emerge --info
> =net-libs/libnet-1.1.4',
> ^[[31;01m*^[[0m the complete build log and the output of 'emerge -pqv
> =net-libs/libnet-1.1.4'.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-11-17 00:53:37 UTC
Never mind.

*** This bug has been marked as a duplicate of bug 64126 ***
Comment 4 Cha 2009-11-17 01:05:38 UTC
(In reply to comment #2)
> Also, what package owns /usr/include/net/raw.h ? Please attach the entire build
> log and the other info you so conveniently referred to:
> 
> > ^[[31;01m*^[[0m If you need support, post the output of 'emerge --info
> > =net-libs/libnet-1.1.4',
> > ^[[31;01m*^[[0m the complete build log and the output of 'emerge -pqv
> > =net-libs/libnet-1.1.4'.
> 
localhost / # equery belongs /usr/include/net/raw.h
 * Searching for /usr/include/net/raw.h ... 

Nothing found ...

Actually, I found some include error on /usr/include/netinet/ip_var.h,udp_var.h,tcpip.h. So, I added these headers by hand because I don't know which package contains those. Does it make problem? And I'll attach full build log 


Comment 5 Cha 2009-11-17 01:10:25 UTC
Created attachment 210466 [details]
emerge --info

emerge --info
Comment 6 Cha 2009-11-17 01:17:11 UTC
Created attachment 210468 [details]
build log

full build log
Comment 7 Cha 2009-11-17 01:28:22 UTC
(In reply to comment #3)
> Never mind.
> 
> *** This bug has been marked as a duplicate of bug 64126 ***
> 

After removing /usr/include/net/raw.h, it works!! Thanks