Re: Scotty Shared library

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Tue, 18 Jun 1996 01:05:02 +0200

Andrew Yoder <ayoder@fore.com> wrote:

I've gotten scotty2.1.0 to compile all of the *.o files but then when
ld tries to create tnm.so I get the following error:

ld: /usr/lib/libresolv.a(gethostnamadr.o): can't mix pic and PIC .o

Has anyone else seen this? I suppose that I could find the source for
libresolve and recompile it with the -fPIC flag, but I would very much
perfer not to do this.

You are running SunOS 4.1.*, right? Get the resolv+ package and
compile it with -fPIC. This is a SunOS problem und the only way
to solve it is to hack SunOS.

Actually I'd be happy if I could just compile a static scotty library.

Yes, but you have to write your own Makefile.

Juergen