Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* message from ld (f77 on Alpha)
@ 1994-04-12 19:43 Sebastian Meyer
  1994-04-12 21:39 ` Steve Lionel
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Meyer @ 1994-04-12 19:43 UTC (permalink / raw)


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

xnjoy runs fine, as far as I can tell, but I feel a bit
uncomfortable with messages I do not understand. 

I'm using DFAO v3.3 with OSF/1 V1.3.

Any pointers?

sebastian

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 ....
--
    __o     Sebastian Meyer  Tel: 030/838-5181| FU Berlin, Physik
  _ \<,_    meyer@sirius.physik.fu-berlin.de  | Arnimallee 14   [Raum 1.3.35]
 (_)/ (_)   meyer@muffin.physik.uni-bremen.de | D-14195 Berlin
~~~~~~~~~~ "To err is human, to really foul things up requires a computer"


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: message from ld (f77 on Alpha)
  1994-04-12 19:43 message from ld (f77 on Alpha) Sebastian Meyer
@ 1994-04-12 21:39 ` Steve Lionel
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1994-04-12 21:39 UTC (permalink / raw)


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"


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-04-12 21:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-04-12 19:43 message from ld (f77 on Alpha) Sebastian Meyer
1994-04-12 21:39 ` Steve Lionel

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