[comp.sys.sgi] prof

tasos@BU-PUB.BU.EDU (10/20/90)

I have a program that does m_fork() and I am linking with the -p option, but
when I run the profiler (with mon.out) I am getting the following message:

Sorry, to use 'prof' you must relink with non-shared libraries

What does that mean, and what am I supposed to do?

thanks in advance,

tasos

tasos@bu-pub.bu.edu

robert@texas.asd.sgi.com (Robert Skinner) (10/23/90)

In article <9010192207.AA04419@bass.bu.edu>, tasos@BU-PUB.BU.EDU writes:
|> I have a program that does m_fork() and I am linking with the -p option, but
|> when I run the profiler (with mon.out) I am getting the following message:
|> 
|> Sorry, to use 'prof' you must relink with non-shared libraries
|> 
|> What does that mean, and what am I supposed to do?
|> 
|> thanks in advance,
|> 
|> tasos
|> 
|> tasos@bu-pub.bu.edu

if you are linking with the -lgl_s, -lfm_s or -lc_s libraries, substitute
-lgl, -lfm, and -lc.  Although, if you are using m_fork, you are probably 
already using -lmpc instead of -lc_s.

Robert Skinner
robert@sgi.com

	I started comprehending the beginning of the ending of the human race.
	I'm an American child on a nuclear pile.
		
			- Shawn Phillips

randyt@fireball.wpd.sgi.com (Randy Taylor) (10/23/90)

Tasos,
    You most likely have a shared library linked into your executable.
To check this do a 'odump -p -L a.out' on your file.  If you see something
like:
a.out:
  /lib/libc_s		36864	8192	0 0x0f800000 0x0fc00000 0x0fc02000

then you have linked the executable with the shared library version of libc.
You may have more than one line here each representing a different shared lib.
What you need to do is change your make file to not use the shared library
version of the respective libraries.  
    Hope this helps,
    Randy Taylor
    Silicon Graphics Inc.
    Mountain View, Ca.