by tiedeman » Mon Oct 22, 2001 5:01 am
Hey, comrade! I've been struggling with this port for almost a year as I'm no C++ programmer and I know even less about UNIX.
Yeah, I'm getting those same errors. Here's a breakdown of all the code changes I've made and the compile errors I get (in that order).
/include/misc.h : commented out "extern char *sprintf();"
compile errors:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>(gcc -bsd -fwritable-strings -traditional-cpp)
ranlib /Users/karl/Documents/empire/emp4.A/lib/libempth.a
ranlib: file: /Users/karl/Documents/empire/emp4.A/lib/libempth.a(pthread.o) has no symbols
ranlib: file: /Users/karl/Documents/empire/emp4.A/lib/libempth.a(ntthread.o) has no symbols
</pre>[/quote]
src/lib/gen/signal.c : commented out declaration of sys_siglist because already declared in signal.h
compile errors:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>ranlib: file: /Users/karl/Documents/empire/emp4.A/lib/libgen.a(hpux.o) has no symbols
ranlib: file: /Users/karl/Documents/empire/emp4.A/lib/libgen.a(strdup.o) has no symbols
ranlib: file: /Users/karl/Documents/empire/emp4.A/lib/libgen.a(vsprintf.o) has no symbols
login.c:61: warning: variable `login_coms' is implicitly extern
ranlib: file: /Users/karl/Documents/empire/emp4.A/lib/libsubs.a(wire.o) has no symbols</pre>[/quote]
src/lib/lwp/lwp.c : changed include <malloc.h> to <stdlib.h>
src/lib/lwp/sel.c : changed include <malloc.h> to <stdlib.h>
src/lib/lwp/sem.c : changed include <malloc.h> to <stdlib.h>
compile errors:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>ranlib: file: /Users/karl/Documents/empire/emp4.A/lib/liblwp.a(arch.o) has no symbols
(gcc -o emp_server etc... -flat_namespace -undefined warning -lm -lc)
/usr/bin/ld: warning multiple definitions of symbol _inet_ntoa
/lib/libgen.a(inet.o) definition of _inet_ntoa in section (__TEXT,__text)
/usr/lib/libm.dylib(inet_ntoa.o) definition of _inet_ntoa
/usr/bin/ld: warning undefined symbols:
_lwpInitContext</pre>[/quote]
______
Everything I've done here is the result of countless Google searches, not programming experience, by the by. I'm hoping you might shed some more light on the situation..?