Roland Mainz wrote:
Hi!

----

Does Solaris and/Or Sun Studio have any linker/compiler flags to warn
users if a library or other code defines a symbol which is already used
by libc ?
For example MacOSX seems to create the following output when you define
|strtol| in an application library (this is from
https://mailman.research.att.com/pipermail/ast-developers/2006q3/000138.html):
-- snip --
ld: warning multiple definitions of symbol _strtol
/home/pdragosh/src/pads-1.1/ast-ast/arch/darwin7.ppc/lib/libast.a(strtol.o) definition of _strtol in section (__TEXT,__text)
/usr/lib/libSystem.dylib(strtol.So) definition of _strtol
ld: warning multiple definitions of symbol _strtoul
/home/pdragosh/src/pads-1.1/ast-ast/arch/darwin7.ppc/lib/libast.a(strtoul.o) definition of _strtoul in section (__TEXT,__text)
/usr/lib/libSystem.dylib(strtoul.So) definition of _strtoul
-- snip --

I'd like to get similar output in Solaris - is that somehow possible ?

----

Bye,
Roland


The lari command in Solaris does largely what you want, I believe.

- Bart


--
Bart Smaalders                  Solaris Kernel Performance
[EMAIL PROTECTED]               http://blogs.sun.com/barts
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to