Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2001 17:04:22 +0100 (CET)
From:      Vadim Belman <voland@catpipe.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/31877: Perl's Config.pm is broken with respect to system includes.
Message-ID:  <200111091604.fA9G4Mg00878@unlink.catpipe.net>

next in thread | raw e-mail | index | archive | help

>Number:         31877
>Category:       bin
>Synopsis:       Perl's Config.pm is broken with respect to system includes.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 09 08:10:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Vadim Belman
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
catpipe Systems ApS
>Environment:
System: FreeBSD ***** 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Mon Nov  5 00:44:24 CET 2001     root@*****:/usr/obj/usr/src/sys/PUPPY  i386


>Description:

	The following line in Perl's Config.pm breaks compilation of
multiple p5-ports and independent Perl modules:

optimize='-nostdinc -O -pipe   -DAPPLLIB_EXP="/usr/libdata/perl/BSDPAN"   -I/usr/obj/usr/src/i386/usr/include '

	Due to presence of -nostdinc any build of Perl XS fails if /usr/obj
directory has been removed prior to compilation as compiler will look for
includes in /usr/obj/usr/src/i386/usr/include instead of presumed
/usr/include.

>How-To-Repeat:

	Build and install world in order to get Perl updated and BSDPAN
installed.

	# cd /usr/obj && rm -rf *
	cd /usr/ports/security/p5-Digest-MD5
	make

	And make fails.

>Fix:

	Immidiate workaround would be either removal of -nostdinc or
changing the include path with proper one. I.e. one of the following will
do:

optimize='-O -pipe   -DAPPLLIB_EXP="/usr/libdata/perl/BSDPAN"   -I/usr/obj/usr/src/i386/usr/include '
optimize='-nostdinc -O -pipe   -DAPPLLIB_EXP="/usr/libdata/perl/BSDPAN"   -I/usr/include '

	No fix for buildworld is known: Perl building is a mess, Anton must
know better.

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111091604.fA9G4Mg00878>