Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: lionel@quark.enet.dec.com (Steve Lionel)
Subject: Re: message from ld (f77 on Alpha)
Date: 12 Apr 1994 21:39:21 GMT	[thread overview]
Message-ID: <2of4e9$igq@jac.zko.dec.com> (raw)
In-Reply-To: WHRNBUNC@math.fu-berlin.de

In article <WHRNBUNC@math.fu-berlin.de>, meyer@sirius.physik.fu-berlin.de 
(Sebastian Meyer) writes:
>I get this message from ld when linking some 50000 lines of Fortran:
>
>f77 -O -o xnjoy njoy.o reconr.o [...20 more modules...]
>ld:
>loc_: common but defined as text in a shared object
>

There is an external routine named loc in one of the shared libraries;
this got ported over from RISC ULTRIX and is not documented; it basically
does the same as %LOC (but unless you declare it to be INTEGER*8 it
returns only the low-order 32 bits. 

I believe the message is telling you that you have a COMMON block that is
also named loc; generally on UNIX systems you can't have a COMMON block
and an external routine by the same name.  (The Fortran standard also
says you can't do this, though it works fine on OpenVMS.)

If you're not using loc as a routine name, I would recommend ignoring
the message as it's harmless.  DEC Fortran V3.4 (I think - can check if
anyone cares - send me mail) has added support for loc as an intrinsic;
basically an alias for %LOC and not using an external routine.

>BTW: Is there a usable debugger for Fortran on the Alpha? dbx is
>     completely lost and ladbx doesn't seem to support Fortran. If
>     I only had beloved gdb ....

We've been doing a LOT of work on dbx; you should install DEC OSF/1 V2.0
and see if it improves in the areas you're interested in.  I think there
are further updates to dbx available as well through Digital software
support.  We're also working on adding full Fortran support to ladbx,
but it's not there yet.

Steve Lionel                      Mail: lionel@quark.enet.dec.com
SDT Languages Group               WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"


      reply	other threads:[~1994-04-12 21:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-04-12 19:43 message from ld (f77 on Alpha) Sebastian Meyer
1994-04-12 21:39 ` Steve Lionel [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox