Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137796 - net-ftp/ftp-0.17-r6 fails to build with gcc-4 when USE=-ssl
Summary: net-ftp/ftp-0.17-r6 fails to build with gcc-4 when USE=-ssl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-23 22:34 UTC by Alexander Skwar
Modified: 2006-06-23 23:03 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 Alexander Skwar 2006-06-23 22:34:00 UTC
net-ftp/ftp-0.17-r6: ftp.c:2126: error: static declaration of 'auth_user' follows non-static declaration - gcc 4.x?

[ebuild   R   ] net-ftp/ftp-0.17-r6  USE="-ipv6 -ssl" 0 kB

Compilation fails:

[...]
i686-pc-linux-gnu-gcc -O2 -march=pentium4 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline  -D__USE_READLINE__ glob.c -c
ftp.c: In function 'dologin':
ftp.c:364: warning: implicit declaration of function 'auth_user'
ftp.c:364: warning: nested extern declaration of 'auth_user'
ftp.c: In function 'dataconn':
ftp.c:1641: warning: unused variable 'ret'
ftp.c: At top level:
ftp.c:2126: error: static declaration of 'auth_user' follows non-static declaration
ftp.c:364: error: previous implicit declaration of 'auth_user' was here
make[1]: *** [ftp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
cmds.c: In function 'restart':
cmds.c:2255: warning: format '%ld' expects type 'long int', but argument 2 has type 'off_t'
make[1]: Leaving directory `/dev/shm/portage/ftp-0.17-r6/work/netkit-ftp-0.17/ftp'
make: *** [ftp.build] Error 2

!!! ERROR: net-ftp/ftp-0.17-r6 failed.


Is this because gcc 4.x is maybe a bit more stricter than gcc 3.x used to be?


[07:30:34 vz6tml@dewup-ww02:/dev/shm] $ emerge --info
Portage 2.1.1_pre1-r1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.15-gentoo-r3.05 i686)
=================================================================
System uname: 2.6.15-gentoo-r3.05 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/Gentoo/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig buildpkg ccache collision-protect confcache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="        http://localhost/~vz6tml/gentoo-files http://dewup-ww02.dewup.europe.delphiauto.net/~vz6tml/gentoo-files  http://localhost/gentoo-files/ http://dewup-ww02.dewup.europe.delphiauto.net/gentoo-files/        http://localhost/~vz6tml/gentoo-files/ http://cifs-srvr1.europe.delphiauto.net/~vz6tml/Misc._Software/Gentoo/     http://alexander.skwar.name/~askwar/stuff/gentoo/
                http://localhost:60081/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/   http://localhost:60080/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/    http://localhost:60082/mirror/rsync.gentoo.org/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/         ftp://pandemonium.tiscali.de/pub/gentoo/        http://localhost:60083/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/          http://distro.ibiblio.org/pub/linux/distributions/gentoo/         ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/          http://localhost:60084/ http://distfiles.gentoo.org/ "
LANG="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/Gentoo/portage/packages"
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="/Gentoo/portage/tmp"
PORTDIR="/Gentoo/portage/tree"
PORTDIR_OVERLAY="/Gentoo/portage/local-tree/misc"
SYNC="rsync://localhost:10873/gentoo-portage"
USE="x86 7zip GAPING_SECURITY_HOLE X acl apache apache2 artworkextra async avi bash-completion berkdb bitmap-fonts ccache ck-server cli crypt css cups dbus dri dvd encode exif fam fat firefox font-server foomaticdb gd gdbm gif gmail gmailtimestamps gnome gpm gs gtk gtk2 hal hfs hpn i8x0 iconv id3 imagemagick imlib imlib2 isdnlog java javascript jfs jikes jpeg kde kdeenablefinal kdehiddenvisibility lame libg++ libwww linuxthreads-tls lm_sensors lynxkeymap lzo lzw lzw-tiff mad mailbox maildir matroska mmx motif mozsvg mp3 mpeg mpm-worker msdav mysql mysqli ncurses network nfs nis nls no-old-linux no-suexec nodrm nomusic nptl nptlonly ntlm offensive ogg oggvorbis pam pcre pdflib perl php png posix postfix pppd python qt quicktime rar rdesktop readline real recode reflection reiserfs samba sapdb screen sdl sendfile session sftp smp sockets spell spl sse sse2 ssl stream subtitles symlink sysvipc tcpd tiff transcode truetype truetype-fonts udev unicode usb userlocales utf8 vhosts vim vim-pager vim-with-x vorbis webdav win32codecs xattr xfs xinetd xml xmms xorg xprint xv xvid yp zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_vmmouse input_devices_void kernel_linux linguas_de userland_GNU video_cards_ati video_cards_vesa video_cards_vga video_cards_vmware"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexander Skwar 2006-06-23 22:47:28 UTC
When I USE=ssl, ftp compiles just fine.
Comment 2 SpanKY gentoo-dev 2006-06-23 23:03:50 UTC
fixed in cvs