Subject: perl5 build failure.
To: None <pkgsrc-users@netbsd.org>
From: Benjamin M. A'Lee <bma+lists@subvert.org.uk>
List: pkgsrc-users
Date: 10/23/2007 03:41:19
--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Trying to compile lang/perl5 on FreeBSD 7.0-BETA1, I get the error "/usr/li=
b/crt1.o(.text+0x7f):
In function `_start': : undefined reference to `main'".

Could anybody enlighten me as to what might be going wrong?

I'm using the 2007Q3 pkgsrc tarball. Output from the build is below, in cas=
e it's relevant.

	=3D=3D=3D> Building for perl-5.8.8nb4
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" mini=
perlmain.o` -DPIC -fPIC miniperlmain.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	miniperlmain.c: In function 'main':
	miniperlmain.c:72: warning: value computed is not used
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" perl=
=2Eo` -DPIC -fPIC perl.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" gv.o=
` -DPIC -fPIC gv.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" toke=
=2Eo` -DPIC -fPIC toke.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" perl=
y.o` -DPIC -fPIC perly.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" op.o=
` -DPIC -fPIC op.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pad.=
o` -DPIC -fPIC pad.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" regc=
omp.o` -DPIC -fPIC regcomp.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	regcomp.c: In function 'S_study_chunk':
	regcomp.c:723: warning: comparison is always false due to limited range of=
 data type
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" dump=
=2Eo` -DPIC -fPIC dump.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" util=
=2Eo` -DPIC -fPIC util.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" mg.o=
` -DPIC -fPIC mg.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" reen=
tr.o` -DPIC -fPIC reentr.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" hv.o=
` -DPIC -fPIC hv.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" av.o=
` -DPIC -fPIC av.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" run.=
o` -DPIC -fPIC run.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_h=
ot.o` -DPIC -fPIC pp_hot.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" sv.o=
` -DPIC -fPIC sv.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	sv.c: In function 'Perl_sv_clear':
	sv.c:5222: warning: ignoring return value of 'Perl_io_close', declared wit=
h attribute warn_unused_result
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp.o=
` -DPIC -fPIC pp.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" scop=
e.o` -DPIC -fPIC scope.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_c=
tl.o` -DPIC -fPIC pp_ctl.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_s=
ys.o` -DPIC -fPIC pp_sys.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	proto.h:1732: warning: 'S_emulate_eaccess' declared 'static' but never def=
ined
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" doop=
=2Eo` -DPIC -fPIC doop.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" doio=
=2Eo` -DPIC -fPIC doio.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" rege=
xec.o` -DPIC -fPIC regexec.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" utf8=
=2Eo` -DPIC -fPIC utf8.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" tain=
t.o` -DPIC -fPIC taint.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" deb.=
o` -DPIC -fPIC deb.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" univ=
ersal.o` -DPIC -fPIC universal.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" xsut=
ils.o` -DPIC -fPIC xsutils.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" glob=
als.o` -DPIC -fPIC globals.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" perl=
io.o` -DPIC -fPIC perlio.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	perlio.c: In function 'PerlIO_clone':
	perlio.c:649: warning: ignoring return value of 'Perl_fp_dup', declared wi=
th attribute warn_unused_result
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" perl=
api.o` -DPIC -fPIC perlapi.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" nume=
ric.o` -DPIC -fPIC numeric.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" loca=
le.o` -DPIC -fPIC locale.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_p=
ack.o` -DPIC -fPIC pp_pack.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	`sh  cflags "optimize=3D'-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_s=
ort.o` -DPIC -fPIC pp_sort.c
		  CCCMD =3D  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno=
-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -pthread -D_THREAD=
_SAFE -I/usr/include  -Wall
	cc -o libperl.so -Wl,-R/usr/pkg/lib -Bshareable perl.o  gv.o toke.o perly.=
o op.o pad.o regcomp.o dump.o util.o mg.o reentr.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 locale.=
o pp_pack.o pp_sort.o  -lm -lcrypt -lpthread -lrt
	/usr/lib/crt1.o(.text+0x7f): In function `_start':
	: undefined reference to `main'
	*** Error code 1
=09
	Stop.
--=20
Benjamin A'Lee <bma@subvert.org.uk>
http://subvert.org.uk/~bma/
"All great truths begin as blasphemies." - George Bernard Shaw

--envbJBWh7q8WU6mo
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHHV83EUZDNrttL6ARAqC0AJ91tb44lxMcAzLM4gKq/9A9oCkPxACglItC
MeB3KxuU7XqTk58bIfoLX0w=
=B7xW
-----END PGP SIGNATURE-----

--envbJBWh7q8WU6mo--