Trying to compile lang/perl5 on FreeBSD 7.0-BETA1, I get the error "/usr/lib/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 case it's relevant. ===> Building for perl-5.8.8nb4 `sh cflags "optimize='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" miniperlmain.o` -DPIC -fPIC miniperlmain.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" perl.o` -DPIC -fPIC perl.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" gv.o` -DPIC -fPIC gv.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" toke.o` -DPIC -fPIC toke.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" perly.o` -DPIC -fPIC perly.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" op.o` -DPIC -fPIC op.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pad.o` -DPIC -fPIC pad.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" regcomp.o` -DPIC -fPIC regcomp.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" dump.o` -DPIC -fPIC dump.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" util.o` -DPIC -fPIC util.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" mg.o` -DPIC -fPIC mg.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" reentr.o` -DPIC -fPIC reentr.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" hv.o` -DPIC -fPIC hv.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" av.o` -DPIC -fPIC av.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" run.o` -DPIC -fPIC run.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_hot.o` -DPIC -fPIC pp_hot.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" sv.o` -DPIC -fPIC sv.c CCCMD = 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 with attribute warn_unused_result `sh cflags "optimize='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp.o` -DPIC -fPIC pp.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" scope.o` -DPIC -fPIC scope.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_ctl.o` -DPIC -fPIC pp_ctl.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_sys.o` -DPIC -fPIC pp_sys.c CCCMD = 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 defined `sh cflags "optimize='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" doop.o` -DPIC -fPIC doop.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" doio.o` -DPIC -fPIC doio.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" regexec.o` -DPIC -fPIC regexec.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" utf8.o` -DPIC -fPIC utf8.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" taint.o` -DPIC -fPIC taint.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" deb.o` -DPIC -fPIC deb.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" universal.o` -DPIC -fPIC universal.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" xsutils.o` -DPIC -fPIC xsutils.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" globals.o` -DPIC -fPIC globals.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" perlio.o` -DPIC -fPIC perlio.c CCCMD = 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 with attribute warn_unused_result `sh cflags "optimize='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" perlapi.o` -DPIC -fPIC perlapi.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" numeric.o` -DPIC -fPIC numeric.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" locale.o` -DPIC -fPIC locale.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_pack.o` -DPIC -fPIC pp_pack.c CCCMD = 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='-O2 -pthread -D_THREAD_SAFE -I/usr/include'" pp_sort.o` -DPIC -fPIC pp_sort.c CCCMD = 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 Stop. -- Benjamin A'Lee <bma%subvert.org.uk@localhost> http://subvert.org.uk/~bma/ "All great truths begin as blasphemies." - George Bernard Shaw
Attachment:
pgpM1Vcyi_2Dc.pgp
Description: PGP signature