Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324803 - net-ftp/ncftp fails to compile with -Wl,--as-needed
Summary: net-ftp/ncftp fails to compile with -Wl,--as-needed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-20 11:36 UTC by Nico Baggus
Modified: 2010-06-20 13:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Baggus 2010-06-20 11:36:04 UTC
net-ftp/ncftp-3.2 both .3 & .4 fail to compile with gcc-4.4
gcc4.4.3 on x86 & gcc4.4.4 on amd64


Reproducible: Always

Steps to Reproduce:
1. emerge ncftp ( discovered during a emerge -1e world)
2.
3.

Actual Results:  
Compiling DStrCatList.c:                                              [OK]
Compiling strtokc.c:                                                  [OK]
Creating library libStrn.a:                                           [OK]
  ar: creating libStrn.a
ranlib "libStrn.a"
-rw-r--r-- 1 portage portage 20974 Jun 20 13:27 libStrn.a
Done making Strn.
make[1]: Leaving directory `/var/tmp/portage/net-ftp/ncftp-3.2.3/work/ncftp-3.2.3/Strn'
make[1]: Entering directory `/var/tmp/portage/net-ftp/ncftp-3.2.3/work/ncftp-3.2.3/sio'
Compiling SError.c:                                                   [OK]
Precompiling syshdrs.h:                                               [ERROR]
  i686-pc-linux-gnu-gcc -D_REENTRANT -D_LARGEFILE64_SOURCE -O2 -march=athlon64
  -pipe -mno-tls-direct-seg-refs -Wl,--as-needed -Wno-format-y2k -DLINUX=26032
  -DLINUX_GLIBC=30001 -DHAVE_CONFIG_H -DLINUX=26032 -DLINUX_GLIBC=30001 -I/var/
  tmp/portage/net-ftp/ncftp-3.2.3/work/ncftp-3.2.3 -I/var/tmp/portage/net-ftp/n
  cftp-3.2.3/work/ncftp-3.2.3/libncftp -I/var/tmp/portage/net-ftp/ncftp-3.2.3/w
  ork/ncftp-3.2.3/sio -I/var/tmp/portage/net-ftp/ncftp-3.2.3/work/ncftp-3.2.3/S
  trn -I -D__ss_family=ss_family -D__ss_len=ss_len syshdrs.h
  /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../crt1.o: In function `_start':
  (.text+0x18): undefined reference to `main'
  collect2: ld returned 1 exit status
  distcc[3909] ERROR: compile (null) on localhost failed
make[1]: *** [syshdrs.h.gch] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-ftp/ncftp-3.2.3/work/ncftp-3.2.3/sio'
make: *** [libs] Error 2
 * ERROR: net-ftp/ncftp-3.2.3 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2314:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"



Expected Results:  
a working build.

# on amd64 no distcc is used, om x86 it is but it doesn't differ


# emerge --info =net-ftp/ncftp-3.2.3
[ebuild   R   ] net-ftp/ncftp-3.2.3  USE="ipv6"                                
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.10.1-r1, 2.6.32-gentoo-r7 i686)
=================================================================                                  
                        System Settings                                                            
=================================================================                                  
System uname: Linux-2.6.32-gentoo-r7-i686-AMD_Phenom-tm-_II_X4_810_Processor-with-gentoo-1.12.13   
Timestamp of tree: Sat, 19 Jun 2010 14:30:21 +0000                                                 
distcc 3.1 i686-pc-linux-gnu [enabled]                                                             
ccache version 2.4 [disabled]                                                                      
app-shells/bash:     4.0_p37                                                                       
dev-java/java-config: 2.1.10                                                                       
dev-lang/python:     2.6.4-r1, 3.1.2-r3                                                            
dev-util/ccache:     2.4-r7                                                                        
dev-util/cmake:      2.8.1                                                                         
sys-apps/baselayout: 1.12.13                                                                       
sys-apps/sandbox:    1.6-r2                                                                        
sys-devel/autoconf:  2.13, 2.65                                                                    
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                                 
sys-devel/binutils:  2.20.1-r1                                                                     
sys-devel/gcc:       4.4.3-r2                                                                      
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   2.2.6b                                                                        
virtual/os-headers:  2.6.30-r1                                                                     
ACCEPT_KEYWORDS="x86"                                                                              
ACCEPT_LICENSE="* -@EULA PUEL Nero-EULA-US dlj-1.1 googleearth AdobeFlash-10"                      
CBUILD="i686-pc-linux-gnu"                                                                         
CFLAGS="-O2 -march=athlon64 -pipe -mno-tls-direct-seg-refs -Wl,--as-needed"                        
CHOST="i686-pc-linux-gnu"                                                                          
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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"                                                                                                              
CXXFLAGS="-O2 -march=athlon64 -pipe -mno-tls-direct-seg-refs -Wl,--as-needed"                                                                                 
DISTDIR="/home/portdir"                                                                                                                                       
FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"                                                                                                                                                 
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.switch.ch/mirror/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS=" en nl en_GB en_US nl_NL "
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
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="/var/lib/layman/armagetron /var/lib/layman/kpex-media /var/lib/layman/xwing /var/lib/layman/voip /var/lib/layman/sunrise /var/lib/layman/voip /var/lib/layman/kde /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac aalib accessibility acl acpi aio akode akonadi alsa apache2 apm asf asterisk audiofile audit authdaemond automount avahi bash-completion berkdb bl bluetooth bookmarks branding bzip2 cairo caps cdda cddb cdparanoia cdr cgi cleartype cli consolekit cracklib crypt cscope css cups curl cxx dbus dga directfb divx djvu dri dts dv dvb dvd dvdr dvdread emboss enca encode esd exif expat extensions fam fame fastbuild fax fbcon ffmpeg firefox flac font-server fortran gcj gd gdbm ggi gif gimp gimpprint glib glut gmedia gmp gnokii gphoto2 gpm graphviz gs gsm gtk guile hal handbook howl-compat hpn html http httpd ical iconv icq id3 idn ieee1394 ilbc imagemagick imap imlib ipv6 ithreads jabber jack jack-tmpfs java javascript jbig jingle joystick jpeg jpeg2k junit kde kerberos kqemu ladspa lame lcms ldap libcaca libnotify libsamplerate live lm_sensors lmtp lua lzma lzo mad mailwrapper matroska mbrola md5sum mdnsresponder-compat mhash mikmod ming mjpeg mmx mmxext mng modplug modules mp2 mp3 mp4 mp4live mpeg mplayer mudflap musepack musicbrainz mysql nas ncurses nemesi netboot network nforce2 nls npp nptl nptlonly nsplugin nv nvidia obex odbc ogg openal openexr opengl openmp oscar oss pam pam_chroot pango pcre pda pdf perl php player pmu png pnm policykit portaudio postscript ppds pppd pulseaudio python qt3 qt3support qt4 qthelp quicktime quotas rar rdesktop readline realmedia reflection rle rtc ruby samba sasl scanner sdl semantic-desktop server session sguil skey slang smime sms sndfile snmp sox speex spell spf spl sqlite srs srt sse sse2 sse4a ssl startup-notification svg svga swat symlink sysfs syslog tcpd teletext theora threads tiff timidity tools truetype tta unicode usb userlocales utempter v4l v4l2 vcd vidix vim-syntax virtualbox vnc vorbis wavpack webdav win32codecs wma wmf wmp x264 x86 xanim xattr xcb xine xml xmlreader xmlwriter xorg xosd xpm xulrunner xv xvid xvmc yaz yv12 zeroconf zip zlib zrtp" ALSA_CARDS=" usb-audio bt87x dummy seq-dummy 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES=" evdev mouse keyboard joystick " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS=" en nl en_GB en_US nl_NL " QEMU_SOFTMMU_TARGETS="alpha arm ppc ppc64 ppc64abi32 i386 x86_64" QEMU_USER_TARGETS="alpha arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS=" fbdev vga vesa nvidia nv " XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

net-ftp/ncftp-3.2.3 was built with the following:
USE="ipv6"

--------------
Build log
Comment 1 Nico Baggus 2010-06-20 12:02:48 UTC
A hint on a problem with blueproxy led to it being compiled without the -Wl,--as-needed option in CFLAGS.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-06-20 13:31:11 UTC
--as-needed doesn't go in CFLAGS anyway.