🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.math.stat
Article #822

Splus: fortran subroutines

#822
From: Michael Walker
Date: Thu, 21 Jan 1993 09:29
44 lines
1933 bytes
Here is a brief description of my problem and what I have done so far to try
to solve it:


     I have a fortran subroutine that I want to "dyn.load" into Splus
(Version 3.0 for SUN4).  Because I am only learning how to load subroutines,
this subroutine merely tells you if a string begins with "h" or not.

     The subroutine, little.f, was compiled using f77 and the command

% f77 -o -Bstatic little.f

     I first tried to load the object file into Splus using dyn.load():

> dyn.load("little.o")
Error in dyn.load("little.o"): No definition for symbol "_s_cmp"
Dumped

     Apparently dyn.load() doesn't have access to the fortran library that
tells it how to compare two strings.  I then tried using dyn.load2():

> dyn.load2("little.o")
ld: : bad magic number
ld: No such file or directory
Error in dyn.load2("little.o"): 'ld -A ...' failed
Dumped


     I know the following:

1)  dyn.load() does not work if any "system libraries" need to be "included".
I am no computer expert and so I'm not sure I know what this means.

2)  The file LIB_HINT is where it should be, and it looks *exactly* the same
as those on systems where dyn.load2() works properly.

     I am guessing that this is a local problem, having something to do with
the way Splus was installed here.  Unfortunately, nobody here can seem to help
me.  If anyone else has had this problem or can see where solution lies,
please reply by E-mail.

     Thanks in advance for any suggestions.
     MJ
Technical Details
Message-ID: <1993Jan21.092939.507@hpb.hwc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!nott!hpb.hwc.ca!ehd.hwc.ca!mwalker

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!nott!hpb.hwc.ca!ehd.hwc.ca!mwalker
Newsgroups: sci.math.stat,comp.sys.sun.apps
Subject: Splus:  fortran subroutines
Message-ID: <1993Jan21.092939.507@hpb.hwc.ca>
From: mwalker@ehd.hwc.ca (Michael Walker)
Date: 21 Jan 93 09:29:37 
Distribution: na
Organization: Health and Welfare, Canada
Keywords: Splus,dyn.load,f77 
Nntp-Posting-Host: bcad2.ehd.hwc.ca
Lines: 44