Author
|
Topic: Empire !
|
|
|
Karl
Junior Member
Member # 158
|
posted October 21, 2001 10:01 PM
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:
code:
(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
src/lib/gen/signal.c : commented out declaration of sys_siglist because already declared in signal.h compile errors:
code:
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
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:
code:
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
______ 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..?
Posts: 4 | From: Chicago, IL | Registered: Oct 2001
| IP: Logged
|
|
|
Karl
Junior Member
Member # 158
|
posted October 26, 2001 02:58 PM
Okay, so I've been pounding on this for several long nights... and it does seem that the biggest issue is that _lwpInitContext does not get defined in src/lib/lwp/arch.c.So, breaking down the arch.c I see that I need to know a bit about how OSX and PPC handles threading. I tried screwing around with just enabling the ifdef(__PPC__) section, but I get nothing but errors. Do you or anyone have experience with enabling lwp on OSX? Or is there a way to swap lwp for the OSX cthreads? Am I just talking a bunch of garbage? I am waaay over my head, but I'm not beaten yet. --I KNOW, I'll move this discussion to "Compile Problems." [ October 26, 2001: Message edited by: Karl ]
Posts: 4 | From: Chicago, IL | Registered: Oct 2001
| IP: Logged
|
|
|
|