From owner-freebsd-alpha@FreeBSD.ORG Sat Aug 9 15:54:34 2003 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEB3937B401 for ; Sat, 9 Aug 2003 15:54:34 -0700 (PDT) Received: from graf.pompo.net (lns-th2-2f-81-56-186-139.adsl.proxad.net [81.56.186.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id C73DF43FCB for ; Sat, 9 Aug 2003 15:54:33 -0700 (PDT) (envelope-from thierry@pompo.net) Received: by graf.pompo.net (Postfix, from userid 1001) id 898A7750E; Sun, 10 Aug 2003 00:54:35 +0200 (CEST) Date: Sun, 10 Aug 2003 00:54:35 +0200 From: Thierry Thomas To: Liste FreeBSD-alpha Message-ID: <20030809225435.GA26307@graf.pompo.net> Mail-Followup-To: Liste FreeBSD-alpha References: <20030809205149.GA14947@graf.pompo.net> <20030809215351.GA51932@athlon.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030809215351.GA51932@athlon.pn.xcllnt.net> X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.8-STABLE i386 Organization: Kabbale Eros X-PGP: 0xC71405A2 Subject: Re: Problem with ld-elf.so: program does not launch. X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2003 22:54:35 -0000 Le Sam 9 aoû 03 à 23:53:51 +0200, Marcel Moolenaar é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.