From owner-freebsd-questions@FreeBSD.ORG Wed Sep 24 14:07:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A2811065685 for ; Wed, 24 Sep 2008 14:07:33 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57008.mail.re3.yahoo.com (web57008.mail.re3.yahoo.com [66.196.97.112]) by mx1.freebsd.org (Postfix) with SMTP id 4613C8FC08 for ; Wed, 24 Sep 2008 14:07:33 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 7381 invoked by uid 60001); 24 Sep 2008 14:07:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=6niVYgRQ8cJkT4xGiESKpOh9h1bdFLP/2t554ZQ1tBDHN9GMypQ3wz9kpsZG4SB8LlJHwLZomWBk/Ox5RNuvKRS6t86YlHqPpe+fZ9Hyt4bFDG+H/mBfLP8Vyew//wK2kaqkfPm+ugv6IfoDXmcOnp+idDzhS/kSEPCWyBWq+EY=; X-YMail-OSG: d0wwpQoVM1k1B2juFgXdeBqJApc4G4OJfw62aNlFgyy3c23w2JTOG2EuJ5AgHcEsng220X2d7ehFLYk3MDIg05JS_2kpdMe3a79lgwhlRMBDakLyEYx08SFL7.pzKHqRGqnYT56N8zaEhm75T0BDmLKxfoM- Received: from [220.255.7.234] by web57008.mail.re3.yahoo.com via HTTP; Wed, 24 Sep 2008 07:07:32 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Wed, 24 Sep 2008 07:07:32 -0700 (PDT) From: Unga To: Mel In-Reply-To: <200809231957.01976.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <636483.6924.qm@web57008.mail.re3.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: A strange compiling issue [SOLVED] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2008 14:07:33 -0000 --- On Wed, 9/24/08, Mel wrote: > From: Mel > 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