Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244431 - net-firewall/iptables-1.4.2 - breaks with --as-needed
Summary: net-firewall/iptables-1.4.2 - breaks with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://bugzilla.netfilter.org/show_bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-26 09:52 UTC by José Romildo Malaquias
Modified: 2008-10-26 21:38 UTC (History)
4 users (show)

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


Attachments
iptables-1.4.2-as-needed.patch (iptables-1.4.2-as-needed.patch,1.83 KB, patch)
2008-10-26 19:21 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description José Romildo Malaquias 2008-10-26 09:52:12 UTC
When emerging net-firewall/iptables-1.4.2 on my ~amd64 system I get the errors:

x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DXTABLES_LIBDIR=\"/lib64/xtables\" -DXTABLES_INTERNAL -I./include -I./include -I no/include -I no/include -march=nocona -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed -o ip6tables-static ip6tables_static-ip6tables-multi.o ip6tables_static-ip6tables-save.o ip6tables_static-ip6tables-restore.o ip6tables_static-ip6tables-standalone.o ip6tables_static-ip6tables.o ip6tables_static-xtables.o  -lm libiptc/libiptc.a extensions/libext6.a  
extensions/libext6.a(libxt_RATEEST.o): In function `RATEEST_final_check':
libxt_RATEEST.c:(.text+0x1b6): undefined reference to `log'
collect2: ld returned 1 exit status
make[2]: *** [ip6tables-static] Error 1
make[2]: *** Waiting for unfinished jobs....
extensions/libext4.a(libxt_RATEEST.o): In function `RATEEST_final_check':
libxt_RATEEST.c:(.text+0x1b6): undefined reference to `log'
collect2: ld returned 1 exit status
make[2]: *** [iptables-static] Error 1
x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DXTABLES_LIBDIR=\"/lib64/xtables\" -DXTABLES_INTERNAL -I./include -I./include -I no/include -I no/include -march=nocona -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed -o .libs/iptables -rdynamic iptables-standalone.o iptables.o  -ldl -lm libiptc/libiptc.a extensions/libext4.a ./.libs/libxtables.so 
./.libs/libxtables.so: undefined reference to `dlerror'
./.libs/libxtables.so: undefined reference to `dlopen'
collect2: ld returned 1 exit status
make[2]: *** [iptables] Error 1
make[2]: Leaving directory `/tmp/portage/net-firewall/iptables-1.4.2/work/iptables-1.4.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/portage/net-firewall/iptables-1.4.2/work/iptables-1.4.2'
make: *** [all] Error 2

Reproducible: Always




 * Overlay eclasses override eclasses from PORTDIR:
 * 
 *   '/usr/local/portage/layman/vmware/eclass/vmware.eclass'
 *   '/usr/local/portage/layman/vmware/eclass/vmware-mod.eclass'
 * 
 * It is best to avoid overriding eclasses from PORTDIR because it will
 * trigger invalidation of cached ebuild metadata that is distributed with
 * the portage tree. If you must override eclasses from PORTDIR then you
 * are advised to add FEATURES="metadata-transfer" to /etc/make.conf and to
 * run `emerge --regen` after each time that you run `emerge --sync`. Set
 * PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you would like to
 * disable this warning.
Portage 2.2_rc12 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r2-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.2.5
Timestamp of tree: Sun, 26 Oct 2008 09:05:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r4
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS=" -march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/alt/portage.distfiles"
FEATURES="buildpkg distlocks metadata-transfer multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.ISO-8859-1"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en_US"
MAKEOPTS="-j3"
PKGDIR="/alt/portage.packages.amd64"
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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/haskell /usr/local/portage/layman/sunrise /usr/local/portage/layman/vmware /alt/portage.local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X Xaw3d a52 aac aalib acl acpi alsa amd64 avi berkdb bluetooth branding bzip2 cairo cddb cdr cli cracklib crypt cups d dbus divx4linux dlloader dri dts dvd dvdr dvdread emacs emboss encode exif fam fbcon ffmpeg fftw firefox gd gdbm gif gmp gnome gpm gtk gtk2 hal iconv imagemagick imap imlib isdnlog java6 javascript jpeg kde kdeenablefinal kerberos kpathsea libcaca libnotify lirc mad matroska mbox midi mmx mmx2 mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf plotutils png ppds pppd python qt3support quicktime readline reflection samba sdl session sound spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb v4l v4l2 vim-syntax vorbis wmf x264 xcomposite xface xft xml xml2 xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda_intel" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" LIRC_DEVICES="pixelview_pro" USERLAND="GNU" VIDEO_CARDS=" nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Conrad Kostecki gentoo-dev 2008-10-26 13:07:55 UTC
Same error here.

Portage 2.1.5.6 (default/linux/x86/2008.0/server, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 i586)
=================================================================
System uname: 2.6.27-gentoo-r1 i586 Geode(TM) Integrated Processor by AMD PCS
Timestamp of tree: Sun, 26 Oct 2008 11:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.63
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -mfpmath=387"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /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/udev/rules.d"
CXXFLAGS="-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -mfpmath=387 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="ccache distlocks fixpackages parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-s -Wl,-z,now"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-f9"
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/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow alsa apache2 berkdb bzip2 cgi crypt ctype ftp gd iconv imap javascript jpeg jpeg2k lua mmx mysql mysqli ncurses nls offensive pam pcre png readline samba sasl session simplexml slang spl ssl svg symlink tcpd threads tiff tokenizer truetype unicode vhosts x86 xml zlib" ALSA_CARDS="cs5535audio" 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 authn_file authz_host authz_user autoindex cache cgi deflate dir disk_cache filter info log_config logio mime mime_magic mem_cache rewrite status unique_id vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="hd44780" LINGUAS="de" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="amd"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Rickard Närström 2008-10-26 19:03:58 UTC
Same problem here, it compiles and installs fine if I remove -Wl,--as-needed from LDFLAGS.

Repository gentoo:
    format:                    ebuild
    location:                  /var/db/paludis/repositories/gentoo
    append_repository_name_to_write_cache: true                   
    binary_destination:        false                              
    binary_keywords:                                              
    binary_uri_prefix:                                            
    builddir:                  /var/tmp/paludis                   
    cache:                     /var/db/paludis/repositories/gentoo/metadata/cache
    distdir:                   /var/cache/paludis/distfiles                      
    eapi_when_unknown:         0                                                 
    eapi_when_unspecified:     0                                                 
    eclassdirs:                /var/db/paludis/repositories/gentoo/eclass        
    ignore_deprecated_profiles: false                                            
    layout:                    traditional                                       
    names_cache:               /var/cache/paludis/names                          
    newsdir:                   /var/db/paludis/repositories/gentoo/metadata/news 
    profile_eapi:              0                                                 
    profiles:                  /var/db/paludis/repositories/gentoo/profiles/default/linux/amd64/2008.0/desktop
    securitydir:               /var/db/paludis/repositories/gentoo/metadata/glsa                              
    setsdir:                   /var/db/paludis/repositories/gentoo/sets                                       
    sync:                      rsync://rsync.europe.gentoo.org/gentoo-portage                                 
    sync_options:                                                                                             
    use_manifest:              use                                                                            
    write_cache:               /var/empty                                                                     

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p39    
        dev-java/java-config:  1.3.7 2.1.6-r1
        dev-lang/python:       2.5.2-r8      
        dev-python/pycrypto:   2.0.1-r6      
        dev-util/ccache:       (none)        
        dev-util/cmake:        2.6.2         
        dev-util/confcache:    (none)        
        sys-apps/baselayout:   2.0.0         
        sys-apps/openrc:       0.3.0-r1      
        sys-apps/sandbox:      1.2.18.1-r3   
        sys-devel/autoconf:    2.13 2.63     
        sys-devel/automake:    1.10.1-r1 1.7.9-r1 1.9.6-r2
        sys-devel/binutils:    2.18-r4                    
        sys-devel/gcc-config:  1.4.0-r4                   
        sys-devel/libtool:     2.2.6a                     
        virtual/os-headers:    2.6.27 (for sys-kernel/linux-headers::installed)
[... SNIP ...]
Package net-firewall/iptables-1.4.2::installed:
	[... SNIP ...]
        >>> Starting builtin_infovars                                                                                                     
        ACCEPT_KEYWORDS=amd64                                                                                                             
        CBUILD=x86_64-pc-linux-gnu                                                                                                        
        CFLAGS=-O2 -march=native -pipe                                                                                                    
        CHOST=x86_64-pc-linux-gnu                                                                                                         
        CONFIG_PROTECT=/usr/share/config /etc                                                                                             
        CONFIG_PROTECT_MASK=/etc/gentoo-release /etc/env.d/java/ /etc/udev/rules.d /etc/fonts/fonts.conf /etc/terminfo /etc/eselect/postgresql /etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild:/etc/init.d                                                                                                                                          
        CPPFLAGS=                                                                                                                                                                   
        CTARGET=                                                                                                                                                                    
        CXXFLAGS=-O2 -march=native -pipe                                                                                                                                            
        DISTDIR=/var/db/pkg/net-firewall/iptables-1.4.2                                                                                                                             
        FEATURES=strict sfperms                                                                                                                                                     
        FFLAGS=                                                                                                                                                                     
        GENTOO_MIRRORS=                                                                                                                                                             
        INSTALL_MASK=                                                                                                                                                               
        LANG=                                                                                                                                                                       
        LC_ALL=C                                                                                                                                                                    
        LDFLAGS=-Wl,-O1                                                                                                                                                             
        LINGUAS=en ja sv                                                                                                                                                            
        MAKEOPTS=                                                                                                                                                                   
        PORTAGE_COMPRESS=                                                                                                                                                           
        PORTAGE_COMPRESS_FLAGS=                                                                                                                                                     
        PORTAGE_RSYNC_EXTRA_OPTS=                                                                                                                                                   
        PORTAGE_RSYNC_OPTS=                                                                                                                                                         
        PORTAGE_TMPDIR=/var/tmp/paludis                                                                                                                                             
        PORTDIR=/var/db/pkg/net-firewall/iptables-1.4.2                                                                                                                             
        PORTDIR_OVERLAY=                                                                                                                                                            
        SYNC=                                                                                                                                                                       
        USE=amd64 elibc_glibc linguas_en linguas_ja linguas_sv alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text video_cards_radeon input_devices_evdev alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci userland_GNU kernel_linux                                        
        >>> Done builtin_infovars                                                                                                                                                   
        >>> Starting pkg_info                                                                                                                                                       
        No additional information available                                                                                                                                         
        >>> Done pkg_info
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-10-26 19:21:35 UTC
Created attachment 169948 [details, diff]
iptables-1.4.2-as-needed.patch
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-10-26 19:22:44 UTC
Blocker of bug #129413 maybe?
Comment 5 BedOS_Gui 2008-10-26 19:30:52 UTC
(In reply to comment #3)
> Created an attachment (id=169948) [edit]
> iptables-1.4.2-as-needed.patch
> 
The patch works fine on my ~amd64 box thanks Arfrever.
Comment 6 SpanKY gentoo-dev 2008-10-26 21:38:53 UTC
thanks, ive added your patch to 1.4.2-r1