ld not sucking in /usr/lib/crt1.o - or is it me?

From: Chris Knight <chris_at_e-easy.com.au>
Date: Mon, 6 Oct 2003 20:52:23 +1100
Howdy,

I installed 5.1 on my laptop, then synced up to -current as of
8 hours ago. I'm trying to build the 1.5 branch of Firebird
(the DBMS), but run into the following error:

ld  ../temp/static.gpre/gpre/cmd.o ../temp/static.gpre/gpre/cme.o
../temp/static.gpre/gpre/cmp.o ../temp/static.gpre/gpre/c_cxx.o
../temp/static.gpre/gpre/exp.o ../temp/static.gpre/gpre/gpre.o
../temp/static.gpre/gpre/hsh.o ../temp/static.gpre/gpre/int.o
../temp/static.gpre/gpre/int_cxx.o ../temp/static.gpre/gpre/jrdmet.o
../temp/static.gpre/gpre/movg.o ../temp/static.gpre/gpre/msc.o
../temp/static.gpre/gpre/par.o ../temp/static.gpre/gpre/pat.o
../temp/static.gpre/gpre/sqe.o ../temp/static.gpre/gpre/sql.o
../temp/static.gpre/gpre/noform.o
../temp/static.gpre/gpre/gpre_meta.o -o
../gen/firebird/bin/gpre_static -L../gen/firebird/lib -lfbstatic -lfbcom
mon -lstdc++ -lcurses -lcrypt -lm -lc  -leditline
ld: warning: cannot find entry symbol _start; defaulting to 0804dc70
/usr/lib/libc.so: undefined reference to `environ'
/usr/lib/libc.so: undefined reference to `__progname'
gmake[3]: *** [../gen/firebird/bin/gpre_static] Error 1
gmake[3]: Leaving directory
`/u1/scratch/firebird-devel/work/firebird2/src'
gmake[2]: *** [gpre_static] Error 2
gmake[2]: Leaving directory
`/u1/scratch/firebird-devel/work/firebird2/src'
gmake[1]: *** [../gen/firebird/bin/gpre_static] Error 2
gmake[1]: Leaving directory
`/u1/scratch/firebird-devel/work/firebird2/src'
gmake: *** [firebird] Error 2
*** Error code 2

If I add /usr/lib/crt1.o to the file list it works OK.  Any reason
why ld isn't pulling this in automatically?  Feel free to correct
me if I'm missing the obvious and if there's a better way of
resolving this.  Thanks.

Regards,
Chris Knight
Systems Administrator
E-Easy
Tel: +61 3 6334 9995  Fax: +61 3 6331 7032  Mob: +61 419 528 795
Web: http://www.e-easy.com.au
Received on Mon Oct 06 2003 - 00:52:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:24 UTC