From owner-freebsd-questions@FreeBSD.ORG Tue Sep 23 09:45:41 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 3E303106566B for ; Tue, 23 Sep 2008 09:45:41 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57006.mail.re3.yahoo.com (web57006.mail.re3.yahoo.com [66.196.97.110]) by mx1.freebsd.org (Postfix) with SMTP id E58EF8FC13 for ; Tue, 23 Sep 2008 09:45:40 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 63480 invoked by uid 60001); 23 Sep 2008 09:45:40 -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:MIME-Version:Content-Type:Message-ID; b=AxOUzPy0pZ8W2d/khDVDDs8/KbmPLZmFC6upkofjkgsYRkgdwfofxVIjQ3Y7PwYUxhYXnkWpBLAHXuW9qo+scRByGkQSedW3WUW1OwMgly+eEK0DythQq1kV4ItNoMWXAag8wQQrJMErCCuh9aCaDouTdwY71TBAbSCWTa7JCh4=; X-YMail-OSG: RD_4L.gVM1mMdiw2J2UcWwHZmK9k8wBMsVkYeqAzFZeZG0gIJ0ULY2B4NGQUtvxWRg-- Received: from [220.255.7.182] by web57006.mail.re3.yahoo.com via HTTP; Tue, 23 Sep 2008 02:45:40 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Tue, 23 Sep 2008 02:45:40 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <458434.63007.qm@web57006.mail.re3.yahoo.com> Subject: A strange compiling issue 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: Tue, 23 Sep 2008 09:45:41 -0000 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 toke.c: In function 'S_pending_ident': toke.c:6923: error: lvalue required as unary '&' operand toke.c:6923: error: lvalue required as unary '&' operand toke.c: In function 'S_scan_heredoc': toke.c:11182: error: invalid operands to binary + (have 'char *' and 'char *') toke.c:11182: error: lvalue required as unary '&' operand toke.c:11182: error: lvalue required as unary '&' operand toke.c: In function 'S_scan_formline': toke.c:12321: error: invalid operands to binary + (have 'char *' and 'char *') toke.c:12321: error: lvalue required as unary '&' operand toke.c:12321: 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); } Line 6923: const char *const has_colon = (const char*) memchr (PL_tokenbuf, ':', tokenbuf_len); Please note, on test programs memchr works correctly. Appreciate your reply. Kind regards Unga