Date: Wed, 24 Sep 2008 07:07:32 -0700 (PDT) From: Unga <unga888@yahoo.com> To: Mel <fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org Subject: Re: A strange compiling issue [SOLVED] Message-ID: <636483.6924.qm@web57008.mail.re3.yahoo.com> In-Reply-To: <200809231957.01976.fbsd.questions@rachie.is-a-geek.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--- On Wed, 9/24/08, Mel <fbsd.questions@rachie.is-a-geek.net> wrote:
> From: Mel <fbsd.questions@rachie.is-a-geek.net>
> Subject: Re: A strange compiling issue
> To: freebsd-questions@freebsd.org, unga888@yahoo.com
> Date: Wednesday, September 24, 2008, 1:57 AM
> 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 would
> > like to understand what cause this error.
> >
> > cc -c -DPERL_CORE -DHAS_FPSETMASK
> -DHAS_FLOATINGPOINT_H
> > -fno-strict-aliasing -pipe -std=c89 -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 file
> wasn't passed through yacc/lex? Does an '&'
> show up in raw cpp output (maybe
> memchr was defined as some macro)? Try:
> cpp -DPERL_CORE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
> -fno-strict-aliasing -pipe \
> -std=c89 -O -Wall -ansi -W -Wextra
> -Wdeclaration-after-statement \
> -Wendif-labels -Wc++-compat -o toke.out
>
> Then inspect toke.out.
>
Mel, thanks for the help. Inspection of toke.out finally lead to the point. The GNU grep was missing in my test system :)
The Perl Configure shouldn't have proceeded without grep.
Best Regards
Unga
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?636483.6924.qm>
