Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2003 20:52:23 +1100
From:      "Chris Knight" <chris@e-easy.com.au>
To:        <freebsd-current@freebsd.org>
Subject:   ld not sucking in /usr/lib/crt1.o - or is it me?
Message-ID:  <000201c38bef$8b6f5600$020aa8c0@aims.private>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000201c38bef$8b6f5600$020aa8c0>