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

2003-10-06 Thread Chris Knight
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


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2003-10-06 Thread Alexander Kabaev
On Mon, 6 Oct 2003 20:52:23 +1100
Chris Knight [EMAIL PROTECTED] wrote:

 
 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.
 

ld is not supposed to pull in anything except what was given to it on
the command line. Why your build tries to use LD where it should be
using CC is a separate question though...

-- 
Alexander Kabaev
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]