Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236650 - net-misc/l7-filter-userspace-0.8 fails to compile with "incomplete type"
Summary: net-misc/l7-filter-userspace-0.8 fails to compile with "incomplete type"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 05:02 UTC by Alois Hammer
Modified: 2008-11-15 21:11 UTC (History)
2 users (show)

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


Attachments
l7-filter-userspace-in-fix.patch (l7-filter-userspace-in-fix.patch,912 bytes, patch)
2008-10-26 12:57 UTC, Guillaume Castagnino
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alois Hammer 2008-09-04 05:02:52 UTC
While emerging net-misc/l7-filter-userspace-0.8:

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
make  all-am
make[1]: Entering directory `/var/tmp/portage/net-misc/l7-filter-userspace-0.8/work/l7-filter-userspace-0.8'
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.     -march=core2 -O3 -pipe -fomit-frame-pointer -mssse3 -mcx16 -mfpmath=sse -MT l7-classify.o -MD -MP -MF .deps/l7-classify.Tpo -c -o l7-classify.o l7-classify.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.     -march=core2 -O3 -pipe -fomit-frame-pointer -mssse3 -mcx16 -mfpmath=sse -MT l7-queue.o -MD -MP -MF .deps/l7-queue.Tpo -c -o l7-queue.o l7-queue.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.     -march=core2 -O3 -pipe -fomit-frame-pointer -mssse3 -mcx16 -mfpmath=sse -MT l7-conntrack.o -MD -MP -MF .deps/l7-conntrack.Tpo -c -o l7-conntrack.o l7-conntrack.cpp
In file included from l7-conntrack.cpp:27:
/usr/include/linux/netfilter.h:44: error: field 'in' has incomplete type
/usr/include/linux/netfilter.h:45: error: field 'in6' has incomplete type
l7-classify.cpp: In function 'char** readl7dir(std::string)':
l7-classify.cpp:160: warning: deprecated conversion from string constant to 'char*'
l7-conntrack.cpp: In function 'int sprintf_conntrack_key(char*, nfct_conntrack*, unsigned int)':
l7-conntrack.cpp:127: warning: 'int nfct_sprintf_protocol(char*, nfct_conntrack*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:738)
l7-conntrack.cpp:127: warning: 'int nfct_sprintf_protocol(char*, nfct_conntrack*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:738)
l7-conntrack.cpp:128: warning: 'int nfct_sprintf_address(char*, nfct_tuple*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:730)
l7-conntrack.cpp:128: warning: 'int nfct_sprintf_address(char*, nfct_tuple*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:730)
l7-conntrack.cpp:129: warning: 'int nfct_sprintf_proto(char*, nfct_tuple*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:732)
l7-conntrack.cpp:129: warning: 'int nfct_sprintf_proto(char*, nfct_tuple*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:732)
l7-conntrack.cpp: In destructor 'l7_conntrack::~l7_conntrack()':
l7-conntrack.cpp:194: warning: 'void nfct_conntrack_free(nfct_conntrack*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:649)
l7-conntrack.cpp:194: warning: 'void nfct_conntrack_free(nfct_conntrack*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:649)
l7-conntrack.cpp: In member function 'void l7_conntrack::start()':
l7-conntrack.cpp:231: warning: 'void nfct_register_callback(nfct_handle*, int (*)(void*, unsigned int, int, void*), void*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:669)
l7-conntrack.cpp:231: warning: 'void nfct_register_callback(nfct_handle*, int (*)(void*, unsigned int, int, void*), void*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:669)
l7-conntrack.cpp:232: warning: 'int nfct_event_conntrack(nfct_handle*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:718)
l7-conntrack.cpp:232: warning: 'int nfct_event_conntrack(nfct_handle*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:718)
l7-conntrack.cpp:235: warning: 'void nfct_conntrack_free(nfct_conntrack*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:649)
l7-conntrack.cpp:235: warning: 'void nfct_conntrack_free(nfct_conntrack*)' is deprecated (declared at /usr/include/libnetfilter_conntrack/libnetfilter_conntrack.h:649)
make[1]: *** [l7-conntrack.o] Error 1
make[1]: *** Waiting for unfinished jobs....

Reproducible: Always

Steps to Reproduce:
Emerge net-misc/l7-filter-userspace-0.8.
Actual Results:  
Emerge fails.

Expected Results:  
Emerge succeeds.

spatha export3 # emerge --info
Portage 2.1.5.6 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.7-r2, 2.6.26.3 i686)
=================================================================
System uname: 2.6.26.3 i686 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz
Timestamp of tree: Thu, 04 Sep 2008 04:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe -fomit-frame-pointer -mssse3 -mcx16 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O3 -pipe -fomit-frame-pointer -mssse3 -mcx16 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentopia /usr/portage/local/layman/sunrise /usr/portage/local/layman/java-overlay /usr/portage/local/layman/gnome /usr/portage/local/aloishammer"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 16bit-indices 64bit 7zip a52 aac acct ace acl acpi addbookmarks adns agg aim aio alias amazon animgif aoss aotuv apache2 ares asf asm aspnet2 async authdaemond authlib bash-completion bdf berkdb bgpclassless binary-drivers binfilter bl bluetooth bonobo bookmarks boost branding bzip2 cardbus catalogs cdda cddb cdparanoia cdr chardet chm chroot clamav cli colordiff connectionstatus console contactnotes corba courier cpudetection cracklib crypt css cups curl curlwrappers custom-cflags daap dbus dbx deprecated depth32 device-mapper dga disk-partition divx dmi domain-aware dri dts dv dvd dvdr dvi emf enchant erandom exif extensions extraengine fam fat fftw firefox fix-connected-rt flac flash flexresp2 fluidsynth font-server fontconfig foomaticdb fpx freetts ftp fuse galago gcj gd gdbm geoip gif glade glib glibc-omitfp gmedia gmp gnokii gnome-print gnomecanvas gnomedb gnutls gps groupwise gs hal hddtemp hdri hfs highlight history howl howl-compat hpn html ibam iconv icq icu idea idn ignore-case imap injection inline innodb insecure-savers ipv6 irc jabber java java-external java5 javascript jbig jce jfs jikes jingle joystick jpeg jpeg2k jrtplib kdeenablefinal kdepim kdexdeltas keyring kipi lame lash libclamav libedit libffi libnotify libsamplerate libsexy linuxthreads-tls live lm_sensors log4j logitech-mouse logrotate lzo lzw mad madwifi magic maildir matroska mbrola mdnsresponder-compat meanwhile memlimit mfd-rewrites midi mikmod mime mjpeg mmap mmx mng mod modplug mozdom mp3 mp4 mpeg mplayer msn mtp mudflap musepack nautilus ncurses netcdf network network-cron new-reg-alloc nls no-old-linux nodrm nolvm1 nptl nptlonly nspr nss ntfs ntp obex odbc offensive ofx ogg ole openal openexr openssl osc oscar pam pam_timestamp pango parse-clocks pch pci pcntl pcre pcsc-lite pdf perl plugin png posix postfix ppds pppd pwdb pyste python q32 quicktime quotes rar readline real reflection reiser4 reiserfs remix rle rpm rtc rtsp samba sametime session sharedmem shorten silc skins slang sms sndfile snmp sockets sound speex spell spl sqlite sqlite3 srt sse sse2 ssl startup-notification subtitles svg svgz symlink sysfs syslog sysvipc szip t1lib tagwriting texteffect theora threads tiff tntc tools truetype type1 unicode urandom usb userlocales utempter vcd vorbis vorbis-psy wavpack webpresence win32codecs winpopup wma wmp x264 x86 xanim xattr xcb xcomposite xext xforms xfs xgetdefault xml xmlreader xmlrpc xmlwriter xorg xosd xprint xrandr xscreensaver xsl xslt xv xvid xvmc yahoo zip zlib" 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="alias auth_basic authz_host authn_default deflate dir env filter headers include log_config logio mime mime_magic negotiation proxy proxy_ajp proxy_connect proxy_http setenvif vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Black (RETIRED) gentoo-dev 2008-09-04 22:20:35 UTC
it is an linux-headers issue. after downgrading from 
2.6.26 to 2.6.23-r3 it should work.
Comment 2 Daniel Black (RETIRED) gentoo-dev 2008-09-04 22:21:00 UTC
er and i'll try to think of a perminate solution
Comment 3 Alois Hammer 2008-09-06 16:21:35 UTC
(In reply to comment #2)
> er and i'll try to think of a perminate solution
> 

Whatever it is, you might want to have a talk with the guys working on #235599.  I'm getting libx86 compile failures, too, and this looks similar/same.
Comment 4 Guillaume Castagnino 2008-10-26 12:57:29 UTC
Created attachment 169925 [details, diff]
l7-filter-userspace-in-fix.patch

Small patch that fixes the compilation issue.
Simply missing some netinet/in.h includes

With this patch, it's OK for me, works and compile fine
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2008-11-15 18:23:54 UTC
I also think the patch is Ok. I've did some googling on this issue, since some other apps are broken in similar way and found this mail of interest:

http://www.mail-archive.com/netdev@vger.kernel.org/msg62156.html
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2008-11-15 21:11:33 UTC
Patch commited. Thank you guys for report and for the fix.