Problem with ld-elf.so: program does not launch.

Thierry Thomas thierry at pompo.net
Sat Aug 9 15:54:35 PDT 2003


Le Sam  9 aoû 03 à 23:53:51 +0200, Marcel Moolenaar <marcel at xcllnt.net>
 écrivait :
> Try linking using cc(1) instead of ld(1). If you use ld(1)
> directly, you better know what you're doing. Something like:
> 
> 	cc -v -o ../onmetis.exe onmetis.o io.o smbfactor.o ecri11.o lect11.o lect00.o -lmetis -lm -lg2c
> 
> The -v option should also tell you what you need on the ld(1)
> line and in what order if you still want or need to use ld(1)
> directly.

You're right! It is not solved, bu now I have some matter to dig:

cc -v -o ../onmetis.exe onmetis.o /usr/lib/crt1.o io.o smbfactor.o ecri11.o lect11.o lect00.o -lmetis -lm
Using built-in specs.
Configured with: FreeBSD/alpha system compiler
Thread model: posix
gcc version 3.2.2 [FreeBSD] 20030205 (release)
 /usr/bin/ld --eh-frame-hdr -dynamic-linker /usr/libexec/ld-elf.so.1 -o ../onmetis.exe /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib onmetis.o /usr/lib/crt1.o io.o smbfactor.o ecri11.o lect11.o lect00.o -lmetis -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
/usr/lib/crt1.o(.sdata+0x0): multiple definition of `__progname'
/usr/lib/crt1.o(.sdata+0x0): first defined here
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x0): multiple definition of `_start'
/usr/lib/crt1.o(.text+0x0): first defined here
/usr/bin/ld: cannot find -lmetis
*** Error code 1

Best regards,
-- 
Th. Thomas.


More information about the freebsd-alpha mailing list