Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 154721

Summary: Emerge of IPTables fails without 'extensions' enabled
Product: Gentoo Linux Reporter: Philip Ludlam <philip>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Philip Ludlam 2006-11-10 12:31:28 UTC
Hi All,

If I try to emerge iptables without enabling 'extensions' then compilation of iptables fails.

root@gauge ~ # emerge iptables -ptv

These are the packages that would be merged, in reverse order:

Calculating dependencies ... done!
[ebuild  N    ] net-firewall/iptables-1.3.5-r4  USE="-extensions -imq -ipv6 -l7filter -static" 0 kB 

root@gauge ~ # emerge iptables
 [...]
i686-pc-linux-gnu-gcc -O2 -march=pentium3 -pipe -mcpu=i686 -fomit-frame-pointer -fforce-addr -Wall -Wunused -I/usr/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.5\"  -fPIC -o extensions/libipt_osf_sh.o -c extensions/libipt_osf.c
extensions/libipt_osf.c: In function `help':
extensions/libipt_osf.c:46: warning: too many arguments for format
extensions/libipt_osf.c: In function `parse':
extensions/libipt_osf.c:107: error: `IPT_OSF_CONNECTOR' undeclared (first use in this function)
extensions/libipt_osf.c:107: error: (Each undeclared identifier is reported only once
extensions/libipt_osf.c:107: error: for each function it appears in.)
make: *** [extensions/libipt_osf_sh.o] Error 1

!!! ERROR: net-firewall/iptables-1.3.5-r4 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  iptables-1.3.5-r4.ebuild, line 132:   Called die

!!! failure
!!! If you need support, post the topmost build error, and the call stack if relevant.

===

===
root@gauge ~ # emerge --info
Portage 2.1-r2 (hardened/x86, gcc-3.3.6, glibc-2.3.6-r4, 2.4.32-hardened-r6 i686)
=================================================================
System uname: 2.4.32-hardened-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -mcpu=i686 -fomit-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe -mcpu=i686 -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=10"
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/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi apache2 apm bash-completion berkdb bitmap-fonts bzip2 bzlib clamav crypt cscope ctype curl dlloader doc ethereal fbcon fontconfig gd gdbm gif gmp graphviz hardened hardenedphp iconv imap imlib innodb jpeg lcms libclamav libwww maildir mbox mcal mhash mmx mng mysql mysqli ncurses nls nntp objc pam perl php pic pie png postfix postgresql python readline rsh sensord sftp sophos spamassassin spell sqlite ssl symlink tcpd tiff tools truetype vda x86 xml2 xorg xpm zip zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux userland_GNU"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
===

I have just enabled the extensions use flag for iptables in the file /etc/portage/package.use and re-emerged iptables with success.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 12:33:30 UTC

*** This bug has been marked as a duplicate of 154166 ***