ports/151294: cannot build lang/perl5.10

Koichiro Iwao meta at club.kyutech.ac.jp
Fri Oct 8 08:20:07 UTC 2010


>Number:         151294
>Category:       ports
>Synopsis:       cannot build lang/perl5.10
>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:   Fri Oct 08 08:20:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Koichiro Iwao
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
Kyushu Institute of Technology
>Environment:
System: FreeBSD rose.club.kyutech.ac.jp 8.1-RELEASE FreeBSD 8.1-RELEASE #18: Tue Sep 21 10:53:58 JST 2010 root at rose.club.kyutech.ac.jp:/usr/obj/usr/src/sys/GENERIC i386

>Description:
lang/perl5.10 shows build error.
I believe that the build option '-lnls' is needless.

>How-To-Repeat:
# cd /usr/ports/lang/perl5.10
# make install

===>  Configuring for perl-threaded-5.10.1_2
First let's make sure your kit is complete.  Checking...
Would you like to see the instructions? [n]  
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
3b1   		dos_djgpp   	irix_6   	next_3_0   	solaris_2   
aix   		dragonfly   	irix_6_0   	next_4   	stellar   
aix_3   	dynix   	irix_6_1   	nonstopux   	sunos_4_0   
aix_4   	dynixptx   	isc   		openbsd   	sunos_4_1   
altos486   	epix   		isc_2   	opus   		super-ux   
amigaos   	esix4   	linux   	os2   		svr4   
apollo   	fps   		lynxos   	os390   	svr5   
atheos   	freebsd   	machten   	os400   	ti1500   
aux_3   	genix   	machten_2   	posix-bc   	titanos   
beos   		gnu   		midnightbsd   	powerux   	ultrix_4   
bsdos   	gnukfreebsd   	mint   		qnx   		umips   
catamount   	gnuknetbsd   	mips   		rhapsody   	unicos   
convexos   	greenhills   	mirbsd   	riscos   	unicosmk   
cxux   		haiku   	mpc   		sco   		unisysdynix   
cygwin   	hpux   		mpeix   	sco_2_3_0   	utekv   
darwin   	i386   		ncr_tower   	sco_2_3_1   	uts   
dcosx   	interix   	netbsd   	sco_2_3_2   	uwin   
dec_osf   	irix_4   	newsos4   	sco_2_3_3   	vmesa   
dgux   		irix_5   	next_3   	sco_2_3_4   	vos   
Which of these apply, if any? [freebsd]  

Some users have reported that Configure halts when testing for
the O_NONBLOCK symbol with a syntax error.  This is apparently a
sh error.  Rerunning Configure with ksh apparently fixes the
problem.  Try
	ksh Configure [your options]

Operating system name? [freebsd]  
Operating system version? [8.1-release]  
Installation prefix to use? (~name ok) [/usr/local]  
AFS does not seem to be running...
What installation prefix should I use for installing files? (~name ok)
[/usr/local]  
Build Perl for SOCKS? [n]  
Use the PerlIO abstraction layer? [y]  
Getting the current patchlevel...
Build a threading Perl? [y]  
Use which C compiler? [cc]  
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches? [/usr/lib /usr/local/lib]  
What is the file extension used for shared libraries? [so]  
Try to use long doubles if available? [n]  
Checking for optional libraries...
What libraries to use? [-lnsl -lgdbm -lm -lcrypt -lutil]  
What optimizer/debugger flag should be used?
[-O2 -pipe -fno-strict-aliasing]  
Any additional cc flags?
[-DAPPLLIB_EXP="/usr/local/lib/perl5/5.10.1/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include]  
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[-pthread -Wl,-E  -fstack-protector -L/usr/local/lib]  
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:

#include <stdio.h>
int main() { printf("Ok\n"); return(0); }

I used the command:

	cc -o try -O2 -pipe -fno-strict-aliasing -DAPPLLIB_EXP="/usr/local/lib/perl5/5.10.1/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -pthread -Wl,-E -fstack-protector -L/usr/local/lib try.c -lnsl -lgdbm -lm -lcrypt -lutil
	 ./try

and I got the following output:

/usr/bin/ld: cannot find -lnsl
I can't compile the test program.
You have a BIG problem.  Shall I abort Configure [y]  
Ok.  Stopping Configure.
===>  Script "Configure" failed unexpectedly.
Please report the problem to skv at FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/perl5.10/work/perl-5.10.1/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/lang/perl5.10.
*** Error code 1

Stop in /usr/ports/lang/perl5.10.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list