ports/148255: lang/perl5.10: fails to build when uname contains `=' char

Anonymous swell.k at gmail.com
Wed Jun 30 07:20:07 UTC 2010


>Number:         148255
>Category:       ports
>Synopsis:       lang/perl5.10: fails to build when uname contains `=' char
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 30 07:20:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
$ uname -a
FreeBSD raphael.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r209581=f9b9ab9-dirty: Tue Jun 29 00:46:39 UTC 2010     holo at raphael.local:/a/objdir/a/dirty_build/sys/PHOENIX  amd64

LOCALBASE=/usr/pkg
>Description:
As of r197433 $SYSDIR/conf/newvers.sh may genarate uname that contains `=' (equal sign).

The error is similar to
  http://bugs.gentoo.org/show_bug.cgi?id=203458#c11
>How-To-Repeat:
$ make
...
cc -o libperl.so.1001 -L/usr/pkg/lib -fstack-protector op.o perl.o   gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o   DynaLoader.o -lm -lcrypt -lutil -lc
/usr/pkg/bin/ld: /usr/lib/crt1.o: in function _start:/a/dirty_build/lib/csu/amd64/crt1.c:93: error: undefined reference to 'main'
collect2: ld returned 1 exit status
*** Error code 1

$ fgrep myuname $(make -V WRKSRC)/config.sh
myuname='f9b9ab9-dirty: tue jun 29 00:46:39 utc 2010 holo at raphael.local:aobjdiradirty_buildsysphoenix amd64 '
>Fix:
Workaround:

--- uname begins here ---
#! /bin/sh
# uname(1) wrapper, put in PATH before /usr/bin

PATH=/usr/bin

uname "$@" |
sed 's/=[^:]*//'
--- uname ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list