Subject: more shared lib woes
To: None <port-pmax@NetBSD.ORG>
From: Tom Yu <tlyu@MIT.EDU>
List: port-pmax
Date: 02/27/1997 22:24:54
After a long period of not even thinking about NetBSD/pmax, I decided
to sup over the sources to see what would happen.  Using the binary
comp.tar.gz snapshot dated around November, I was unable to build
shared libraries, since the assembler flags to the syscall stubs are
*still* wrong in lib/libc/sys/Makefile.inc.  How much patching of the
various Makefiles do I need to do from a stock -current tree in order
to build shared libraries?  Is that Makefile.inc the only file I need
to patch?

Also, a few other things:

objdump and strip (among other things) don't recognize executables:

bash$ objdump -x foo
BFD: bfd assertion fail elf.c:897
objdump: foo: File format not recognized

And whenever I link a program I get things like:

ld: isinf.o: needs all files compiled with -fPIC
ld: isinf.o: uses different e_flags (0x1) fields than previous modules (0x3)
ld: _exit.o: needs all files compiled with -fPIC
ld: _exit.o: uses different e_flags (0x0) fields than previous modules (0x3)

Any idea why?  Is there a bug in elf32-mips.c?  The program seems to
run ok, though.

I really wish the -current tree were in a somewhat consistent state
w.r.t. pmax shared library building.  The bsd.own.mk seems to default
to generating shared libs, but it probably shouldn't if the other
Makefiles don't support it.

---Tom