Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 2010 12:50:03 GMT
From:      Konstantin Kukushkin <dark@rambler-co.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/147279: perl modules broken on clean FreeBSD
Message-ID:  <201006011250.o51Co3Kk084900@www.freebsd.org>
Resent-Message-ID: <201006011300.o51D0BeU022423@freefall.freebsd.org>

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

>Number:         147279
>Category:       ports
>Synopsis:       perl modules broken on clean FreeBSD
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 01 13:00:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Konstantin Kukushkin
>Release:        8-STABLE
>Organization:
Rambler
>Environment:
FreeBSD mon3.rambler.ru 8.0-20100505-SNAP FreeBSD 8.0-20100505-SNAP #0: Wed May  5 02:23:55 UTC 2010     root@nat-sl.rambler.ru:/usr/obj/i386/usr/src/sys/R0  i386
>Description:
The 'Configure' script from the perl 5.10 distribution removes all non-existent
directories from the internal libpth variable. On a clean FreeBSD installation
/usr/local/lib doesn't exist, so 'Configure' removes /usr/local/lib from libpth.
Later on, perl modules can't be used, due to linking errors.
>How-To-Repeat:
# make -C /usr/ports/lang/perl5.10 BATCH=1 install
//  AFTER configure, ports will create /usr/local/lib and install perl in.
# make -C /usr/ports/devel/p5-Event-Lib install
# perl -e 'use Event::Lib'
/libexec/ld-elf.so.1:
/usr/local/lib/perl5/site_perl/5.10.1/mach/auto/Event/Lib/Lib.so: Undefined
symbol "event_set_log_callback"
>Fix:
To fix, use attached patch for Configure.

Patch attached with submission follows:

--- Configure.orig	2010-05-18 17:04:27.000000000 +0400
+++ Configure	2010-05-18 17:40:19.000000000 +0400
@@ -4780,7 +4780,7 @@
 libpth=''
 for xxx in $dlist
 do
-    if $test -d $xxx; then
+    if $test -d $xxx || [ $xxx = $prefix/lib ]; then
 		case " $libpth " in
 		*" $xxx "*) ;;
 		*) libpth="$libpth $xxx";;


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



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