Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71680 - l2tpd not compiling with gcc-3.4.2
Summary: l2tpd not compiling with gcc-3.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-18 09:13 UTC by Robson Paniago
Modified: 2004-12-05 01:44 UTC (History)
1 user (show)

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 Robson Paniago 2004-11-18 09:13:14 UTC
When I emerged l2tpd with gcc-3.4.2, I got this error
avp.c: In function `handle_avps':
avp.c:1612: error: syntax error before "__FUNCTION__"
make: *** [avp.o] Error 1
make: *** Waiting for unfinished jobs....


Reproducible: Always
Steps to Reproduce:
install gcc 3.4.2
emerge l2tpd
Actual Results:  
I got an error compiling l2tpd

Expected Results:  
l2tpd should be compiled

Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.9
i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo
http://mirror.datapipe.net/gentoo http://www.gigaload.org/gentoo.org/
http://www.las.ic.unicamp.br/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts avi berkdb bitmap-fonts crypt cups encode esd f77
foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib java jikes jpeg kde
kerberos libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl
oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline
samba sdl slang spell ssl svg svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2004-11-18 21:59:57 UTC
Yes, it is a syntactical error at that line.
Please test l2tpd-0.70_pre20031121. If it works, I will mark as stable on x86; it stayed too long in unstable state.
Comment 2 Robson Paniago 2004-11-20 04:23:20 UTC
The l2tpd-0.70_pre20031121 at least compiled. However, I'm still in process of testing it.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2004-11-21 05:18:40 UTC
saw this error elsewhere - you can't concatinate __FUNCTION__ with another string as of gcc 3.4.somthing.
Comment 4 SpanKY gentoo-dev 2004-12-05 00:33:36 UTC
well the problem here is that you need to pass __FUNCTION__ into a '%s' ... you cant use it with the old style anymore

invalid: printf(__FUNCTION__ ": blah blah\n");
valid: printf("%s: blah blah\n", __FUNCTION__);

this seems to be fixed in newer versions (according to Comment #1) ... net-dialup, feel free to back port patches, make new patches, or just unmask newer versions
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2004-12-05 01:44:53 UTC
stable on x86