Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 2003 00:54:35 +0200
From:      Thierry Thomas <thierry@pompo.net>
To:        Liste FreeBSD-alpha <freebsd-alpha@freebsd.org>
Subject:   Re: Problem with ld-elf.so: program does not launch.
Message-ID:  <20030809225435.GA26307@graf.pompo.net>
In-Reply-To: <20030809215351.GA51932@athlon.pn.xcllnt.net>
References:  <20030809205149.GA14947@graf.pompo.net> <20030809215351.GA51932@athlon.pn.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Sam  9 aoû 03 à 23:53:51 +0200, Marcel Moolenaar <marcel@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030809225435.GA26307>