Date: Tue, 23 Sep 2008 19:57:01 +0200 From: Mel <fbsd.questions@rachie.is-a-geek.net> To: freebsd-questions@freebsd.org, unga888@yahoo.com Subject: Re: A strange compiling issue Message-ID: <200809231957.01976.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <458434.63007.qm@web57006.mail.re3.yahoo.com> References: <458434.63007.qm@web57006.mail.re3.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 23 September 2008 11:45:40 Unga wrote: > Hi > > I'm trying to compile Perl on FreeBSD. It get cleanly compiled on FreeBSD > 7.0. > > But on another test system running RELENG_7 where I do weired things, it > develops errors. There must be something wrong with my test system, I wou= ld > like to understand what cause this error. > > cc -c -DPERL_CORE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H > -fno-strict-aliasing -pipe -std=3Dc89 -O -Wall -ansi -W -Wextra > -Wdeclaration-after-statement -Wendif-labels -Wc++-compat toke.c > > toke.c: In function 'Perl_yylex': > toke.c:6633: error: lvalue required as unary '&' operand > toke.c:6633: error: lvalue required as unary '&' operand > Line 6633: > if (memchr(tmpbuf, ':', len)) > sv_setpvn(PL_subname, tmpbuf, len); > else { > sv_setsv(PL_subname,PL_curstname); > sv_catpvs(PL_subname,"::"); > sv_catpvn(PL_subname,tmpbuf,len); These line numbers are off. There's no '&' anywhere here. Any chance this f= ile=20 wasn't passed through yacc/lex? Does an '&' show up in raw cpp output (mayb= e=20 memchr was defined as some macro)? Try: cpp -DPERL_CORE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing = =2Dpipe =A0\ -std=3Dc89 -O -Wall -ansi =A0 -W -Wextra -Wdeclaration-after-statement \ -Wendif-labels -Wc++-compat -o toke.out Then inspect toke.out. =2D-=20 Mel Problem with today's modular software: they start with the modules and never get to the software part.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809231957.01976.fbsd.questions>