A strange compiling issue [SOLVED]
Unga
unga888 at yahoo.com
Wed Sep 24 14:07:33 UTC 2008
--- On Wed, 9/24/08, Mel <fbsd.questions at rachie.is-a-geek.net> wrote:
> From: Mel <fbsd.questions at rachie.is-a-geek.net>
> Subject: Re: A strange compiling issue
> To: freebsd-questions at freebsd.org, unga888 at 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
More information about the freebsd-questions
mailing list