I'm creating an add-on for a large piece of software written in Fortran. In my directory I reference subroutines in other directories, which in turn reference more subroutines.
I'm running into trouble because on occasion the developers of the main software change some sub calls.
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
You didn't mention which standard your Fortran is written to, so you may need to change some parts of the procedure below.
1) One result of a compile is an object file. You can extract linkage symbols from such files with a utility nm, the most often-occurring are entry points, externals, and common block names.
2) You can use a source scanning utility ftnchek.
3) You can generate a link map with ld (it contains the most information, but ironically has always seemed to be the least useful for me).
Here's a sample of these driven by a demonstration script:
producing:
One advantage to the nm scheme is that it is general, it works with any compiler that produces object files -- c, c++, fortran, etc.
Experimentation and man pages are usually one's best ways to learn.
Gurus,
I came across a typical requirement where the input is like-
TRANS FIRM
DEPT CUST
TRANS CUST
TRANS DEPT
FIRM CUST
& the expected Output is-
CUST
DEPT
FIRM
TRANS
This is basically a dependency list for processing the tables where
FIRM is feeding data to TRANS... (3 Replies)
hello,
can anyone help in changing the executable dependency on a certain shared library. eg, .. say i am having an executable by name utest. when i run UNIX ldd command on it then it shows the libraries on which it depends as follows:
ldd release/utest
release/utest needs:
... (4 Replies)
I'm building on a HP-UX ia64 system. During building, I'm getting an error
ld: Can't find dependent library "libnnz10.so"
Nowhere in my makefile do I link with this library. This library is there in the directory /databases/oracle10.2.0_64BIT/lib. I'm having two source files ora8ibulk.cpp... (1 Reply)
Hi,
I had a make file, something like that,
all:
cd dir1; make
cd dir2; make
the problem is the makefile under dir2 need some objs from dir1, so I need to set some dependency let dir2 run only after the dir1 run is done.
how to set the dependency?
Thanks.
peter (2 Replies)
Hi,
I want to install net-snmp-devel package but i have following dependecy problem.
It's very odd, i don't get it. One of packages is depended on the other one, the other one is depended on the previous one as well. :S :S
Could you help me please?
Here are the steps:
# ls -l
total... (4 Replies)
Hi all
am new to solaris ............
i installed amanda client pkg that time am getting lots of dependency problem..........
is there any Yum server like things in solaris
Regards '
prAn (8 Replies)
Hey guys,
I installed Fedora7 from DVD yesterday. I have previously worked with RHEL4 and Fedora4(As of RPM based systems).
I used to copy all the rpms from the media to a directory.
#mkdir /rpms
#copy /path_to_rpms_in_media/* /rpms/
My intention for doing this was to get around the... (0 Replies)