From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27072 invoked by alias); 28 Dec 2003 20:22:56 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 27065 invoked from network); 28 Dec 2003 20:22:55 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by sources.redhat.com with SMTP; 28 Dec 2003 20:22:55 -0000 Received: (qmail 6631 invoked by uid 65534); 28 Dec 2003 20:22:53 -0000 Received: from p3EE3915B.dip.t-dialin.net (EHLO rechner1.ddorf.de) (62.227.145.91) by mail.gmx.net (mp002) with SMTP; 28 Dec 2003 21:22:53 +0100 X-Authenticated: #20933907 Subject: Re: SORRY again, multiple definition of `MAIN__' From: Fabian Braennstroem Reply-To: f.braennstroem@gmx.de To: gcc-help@gcc.gnu.org In-Reply-To: <1072637920.9401.30.camel@rechner1.ddorf.de> References: <1072637920.9401.30.camel@rechner1.ddorf.de> Content-Type: text/plain Organization: Fabian Braennstroem Message-Id: <1072642999.9403.64.camel@rechner1.ddorf.de> Mime-Version: 1.0 Date: Sun, 28 Dec 2003 20:22:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-12/txt/msg00232.txt.bz2 Hello, again sorry, I just thought I found the error, but I did not :-( On Sun, 2003-12-28 at 19:58, Fabian Braennstroem wrote: > Hello, > > I am still trying to adjust an sgi-fortran-code to linux g77. I get > this error-message: > THAT is the correct error-message: save_vel.o(.text+0xcd1): In function `MAIN__': : multiple definition of `MAIN__' main.o(.text+0x0): first defined here /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `MAIN__' changed from 5155 in main.o to 5 in save_vel.o save_pres.o(.text+0x763): In function `MAIN__': : multiple definition of `MAIN__' main.o(.text+0x0): first defined here collect2: ld returned 1 exit status make: *** [calc_les_03_cube] Error 1 > Without the two subroutines 'save_vel.f''save_pres.f' the program works > well. > > So I tried the 'nm'-utility for the first time and I get this: The command was: 'nm --numeric-sort --extern-only save_vel.o' > > U do_fio > U do_lio > U dphidx_ > U dphidy_ > U e_wsfe > U e_wsle > U f_clos > U f_open > U s_cat > U s_wsfe > U s_wsle > 00000000 T save_vel__ > 00000000 D visit_ > 00000002 C prin1_ > 00000004 C caser_ > 0000000c C pres_ > 00000010 C prin2_ > 00000020 C vecti_ > 00000020 C vectl_ > 00000024 C allc_ > 00000024 C turb_ > 00000030 C alll_ > 00000030 C point_ > 00000034 C casei_ > 00000038 C alli_ > 000000c0 C vectc_ > 00000cd1 T MAIN__ > 00061a9c C allr_ > 00340d10 C flupr_ > 0035eda0 C geom_ > 00b722b0 C node_ > 02709c00 C coef_ > 061986a0 C vectr_ > > On http://www.bo.infn.it/alice/alice-doc/mll-doc/migvms/node22.html I > read: > "In this way the location of MAIN in the code is found and the wrong > routine detected." > So in my example the wrong routine should be placed between vectc allr. > But, how can I find the mistake? What does that mean? > > Greetings! > Fabian Once again, sorry! Greetings Fabian