Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40859 - GCC 3.3.2-r5 fails to build l2tpd
Summary: GCC 3.3.2-r5 fails to build l2tpd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-08 10:17 UTC by William Davis
Modified: 2004-02-11 18:24 UTC (History)
1 user (show)

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


Attachments
l2tpd-0.69-gcc3.patch (l2tpd-0.69-gcc3.patch,114.13 KB, patch)
2004-02-11 12:09 UTC, Martin Schlemmer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Davis 2004-02-08 10:17:42 UTC
After upgrading to GCC 3.3.2-r5 l2tpd fails to compile with the following error message:

network.c:367:37: missing terminating " character
network.c: In function `network_thread':
network.c:368: error: syntax error before "tunnel"
network.c:368: error: stray '\' in program
network.c:368:25: missing terminating " character
In file included from l2tp.h:28,
                 from call.c:27:
misc.h:67: warning: conflicting types for built-in function `log'
call.c:196:20: missing terminating " character
call.c: In function `read_packet':
call.c:197: error: syntax error before "enter"
make: *** [call.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [network.o] Error 1

!!! ERROR: net-dialup/l2tpd-0.69 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)

The first thing I tried was emptying my CFLAGS...since I had moderately optimized CFLAGS.  This did not help.

Just for giggles I grabbed the non-gentoo source package and tried to compile it myself.  It too failed to compile.  This same package compiled just hours before.

I was able to fix the errors in the source.  GCC seemed to fail on lines with strings that spanned multiple lines.  I've never seen this.  It was/is perfectly valid code.

I hope this helps, this is my first Gentoo bug report so go easy on me.  Thanks.

Here are the results of 'emerge info':

Portage 2.0.50 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrors.pair.com/ http://mirror.tucdemonic.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 William Davis 2004-02-08 12:08:41 UTC
I'm sorry I forgot a couple of important things.

1).  This problem was encountered with 'emerge -a l2tpd' (which tried to install net-dialup/l2tpd-0.69).

2).  The non-gentoo version of this package does not use any of the GNU Auto* tools (just 'make' no more no less).  I'm assuming the Gentoo blessed version does not as well.  Could this have anything to do with it?
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-11 12:09:36 UTC
Created attachment 25428 [details, diff]
l2tpd-0.69-gcc3.patch

This patch should fix it.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-11 12:13:45 UTC
I see though -r1 uses a different tarball that fixes this.  Dunno if you want
to apply this for now until you want -r1 in stable, or just go for -r1 if its
been tested enough?
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-11 12:19:42 UTC
i did both, added your nice patch to 0.69 and marked -r1 stable, it has been in portage for more than 2 month and no bugreport :)
Comment 5 William Davis 2004-02-11 18:24:34 UTC
That worked great for me.  Thank you.  I'll look at the patch to see what you guys did.