>>>>> "Brian" == Brian D Carlstrom <bdc@zurich.ai.mit.edu> writes:
Brian> Martin Gasbichler writes:
>> *PLEASE* try to install it and tell me whether it worked!
Brian> cygwin is a little better now. however, it can't link because
Brian> getnetbyaddr and getnetbyname aren't in -lsocket. To work around this
Brian> before I had put this at the end of scsh/cygwin32 /stdio_dep.c:
>> /* Cygwin doesn't yet implement these system calls */
>> struct netent *getnetbyaddr (long x, int y) {return NULL;}
>> struct netent *getnetbyname (const char *x) {return NULL;}
>> int fchown(int x, uid_t y, gid_t z) {return 0;}
>> int mkfifo(char *__path, mode_t __mode) {return 0;}
Brian> that file is gone now. perhaps it should move to libansi.c now? hmm,
Brian> that wasn't enough, new error. I'll keep looking when i get home.
Yes libansi.c seems to be the right place. Are the definitions for
fchown and mkfifo still necessary? You system doesn't seem to miss
them.
Brian> -bri
Brian> Zeus@BCARLSTROM1A d:/Software/scsh/scsh-0.6.0
Brian> $ make
Brian> rm -f /tmp/s48_external_$$.c && \
Brian> build/build-external-modules /tmp/s48_external_$$.c
Brian> \
>> s48_init_additional_inits s48_init_socket s48_init_external_lookup
>> s48_init_syslog s48_init_posix_regexp s48_init_userinfo s48_init_sighandlers
>> s48_init_syscalls s48_init_network s48_init_flock s48_init_dirstuff
>> s48_init_time s48_init_tty s48_init_cig s48_init_cig &&
Brian> \
Brian> gcc -g -O2 -o scshvm c/main.o scsh/process_args.o c/init.o
c/scheme48vm.o c/scheme48heap.o c/extension.o c/external.o cig/libcig.o
cig/libcig1.o scsh/cstuff.o scsh/dirstuff1.o scsh/fdports1.o scsh/flock1.o
scsh/machine/time_dep1.o scsh/signals1.o scsh/machine/libansi.o scsh/network1.o
scsh/putenv.o scsh/rx/regexp1.o scsh/sleep1.o scsh/syscalls1.o scsh/syslog1.o
scsh/time1.o scsh/tty1.o scsh/userinfo1.o scsh/sighandlers1.o scsh/proc2.o
c/unix/misc.o c/unix/io.o
Brian> c/unix/fd-io.o c/unix/event.o \
>> /tmp/s48_external_$$.c \
>> -lcrypt -lm \
>> c/unix/socket.o c/unix/dynamo.o && \
Brian> rm -f /tmp/s48_external_$$.c
Brian> Warning: resolving __tzname by linking to __imp___tzname (auto-import)
Brian> scsh/network1.o: In function
Brian> /cygdrive/d/Software/SCSH/scsh-0.6.0/scsh/network1.c:644: undefined
Brian> reference to
Brian> `getnetbyaddr'
Brian> scsh/network1.o: In function
Brian> /cygdrive/d/Software/SCSH/scsh-0.6.0/scsh/network1.c:651: undefined
Brian> reference to
Brian> `getnetbyname'
Brian> fu000001.o(.idata$3+0xc): undefined reference to emplib_a_iname'
Brian> nmth000000.o(.idata$4+0x0): undefined reference to nm___tzname'
Brian> collect2: ld returned 1 exit status
Brian> make: *** [scshvm] Error 1
Brian> Zeus@BCARLSTROM1A d:/Software/scsh/scsh-0.6.0
Brian> $
It seems that I missed a checkin to cygwin32/sysdep.h which removes
two TZNAME hacks for broken cygwins. I added them and made a new
tarball. Does it fix the problems?
--
Martin
|