From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 23 21:00:08 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F38816A46D for ; Thu, 23 Aug 2007 21:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3662E13C46B for ; Thu, 23 Aug 2007 21:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7NL08om020121 for ; Thu, 23 Aug 2007 21:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7NL08Fb020120; Thu, 23 Aug 2007 21:00:08 GMT (envelope-from gnats) Resent-Date: Thu, 23 Aug 2007 21:00:08 GMT Resent-Message-Id: <200708232100.l7NL08Fb020120@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Aaron Gifford Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C08416A417 for ; Thu, 23 Aug 2007 20:54:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D5FA413C491 for ; Thu, 23 Aug 2007 20:54:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7NKsEfW056232 for ; Thu, 23 Aug 2007 20:54:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l7NKsE52056231; Thu, 23 Aug 2007 20:54:14 GMT (envelope-from nobody) Message-Id: <200708232054.l7NKsE52056231@www.freebsd.org> Date: Thu, 23 Aug 2007 20:54:14 GMT From: Aaron Gifford To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/115769: Building the perl 5.8 port inside a jail fails X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 21:00:08 -0000 >Number: 115769 >Category: ports >Synopsis: Building the perl 5.8 port inside a jail fails >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 23 21:00:07 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Aaron Gifford >Release: FreeBSD 6.2-STABLE (as of 7 June 2007) >Organization: >Environment: FreeBSD my.host.name 6.2-STABLE FreeBSD 6.2-STABLE #6: Thu Jun 7 14:25:29 MDT 2007 root@my.host.name:/usr/obj/usr/src/sys/MY.HOST.NAME i386 >Description: The perl 5.8 port (/usr/ports/lang/perl5.8) fails to build inside of a jail with: ========== EXCERPT ========== make lib/re.pm "makefile", line 952: Need an operator make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /usr/ports/lang/perl5.8/work/perl-5.8.8. *** Error code 1 Stop in /usr/ports/lang/perl5.8. ========== END OF EXCERPT ========== This first error is be due to an error in the autogenerated makefile /usr/ports/lang/perl5.8/work/perl-5.8.8/makefile: ========== EXCERPT ========== # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE # If this runs make out of memory, delete /usr/include lines. 0 malloc$(OBJ_EXT): /usr/include/machine/_types.h malloc$(OBJ_EXT): /usr/include/memory.h ========== END OF EXCERPT ========= Notice the line consisting of a zero '0' and nothing else? That's the culprit. If I correct that by hand by removing that line and continuing the build, the second autogenerated makefile error will stop things: ========== EXCERPT ========== cd x2p; LD_LIBRARY_PATH=/usr/ports/lang/perl5.8/work/perl-5.8.8 make s2p "makefile", line 159: Need an operator make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /usr/ports/lang/perl5.8/work/perl-5.8.8. *** Error code 1 Stop in /usr/ports/lang/perl5.8. ========== END OF EXCERPT ========= This error comes from the exact same error in the following autogenerated makefile /usr/ports/lang/perl5.8/work/perl-5.8.8/x2p/makefile: ========== EXCERPT ========== # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE # If this runs make out of memory, delete /usr/include lines. 0 hash$(OBJ_EXT): ../config.h hash$(OBJ_EXT): ../handy.h ========== END OF EXCERPT ========= Once again, when this error is encountered, hand-edit the file and remove the '0' line and then the build completes. >How-To-Repeat: Launch a FreeBSD jail with a /usr/ports tree and attempt to build the perl 5.8 port within it. >Fix: I have no idea how to fix the problem, but it is obvious that during 'make config' of the port the two 'makefile' files are having a spurious '0' output, corrupting them. If I was more familiar with the makefile generation process I'd attempt to figure this out myself, but sadly I'm clueless in this area. >Release-Note: >Audit-Trail: >Unformatted: