Hi!
I got a response in which it was suggested I try to make sure
all the includes were existing
Date: Wed, 27 Sep 1995 11:31:59 +0100
From: Hilmar Lapp <hili_at_al-bundy.biologie.uni-freiburg.de>
Subject: Re: STk 2.2, bad build, BSD 4.3, M68040
After doing so, I continue to get load errors.
ld: Undefined symbols:
_S_ISDIR
_S_ISREG
_WEXITSTATUS
make[2]: *** [stk-bin] Error 1
Any help would be appreciated. I have appended my build-specific
information, my code additions, and the resuld make/ld error.
Any help would be greatly appreciated!
Thanks, John Boller
jboller_at_panix.com
=================================================
CHANGES MADE TO CODE IN STk-2.2.0/Src
unix.c
------------------------------------------
#include <sys/fcntl.h> /* line 25 added JMB */
#include <sys/dir.h> /* line 26 added JMB */
#include <sys/dirent.h> /* line 27 added JMB */
entryPtr = (struct dirent *)readdir(d); /* line 289 cast added JMB */
------------------------------------------
posix.c
------------------------------------------
#include <sys/fcntl.h> /*line 25 added JMB */
------------------------------------------
=================================================
SAMPLE MAKE
root_at_maverick /mount/st41600_1/usr/local/src/tcl/STk/STk-2.2.0
155 % make
make Tcl
make[1]: `libtcl.a' is up to date.
make Tk
make[1]: `libtk.a' is up to date.
make Mp
make[1]: `libgmp.a' is up to date.
make Src
make stk-bin TK="-DUSE_TK"
/bin/rm -f libstk.a
ar rc libstk.a stk.o slib.o primitives.o boolean.o char.o str.o vector.o gc.o po
rt.o number.o list.o symbol.o read.o print.o eval.o env.o macros.o syntax.o con
t.o io.o sport.o promise.o error.o proc.o keyword.o dump.o address.o dynload.o u
nix.o toplevel.o argv.o extend.o dummy.o tk-main.o tk-glue.o tk-util.o tcl-lib.
o tcl-util.o tcl-trace.o hash.o posix.o stklos.o gf.o socket.o sregexp.o proces
s.o
ranlib libstk.a
ranlib: file: libstk.a(dummy.o) has no symbols
/bin/rm -f stk-bin
gcc -O2 -DSTK_VERSION=\"2.2\" -DMACHINE=\"--\" -DUSE_TK -DSTk_CODE -Dunknown -DUSE_HASH -DUSE_POSIX -DUSE_STKLOS -DUSE_SOCKET -DUSE_REGEXP -DUSE_PROCESS
-DHAVE_UNISTD_H=1 -DHAVE_SELECT=1 -DSTDC_HEADERS=1 -Dpid_t=int -I. -I../Tk -I../Tcl -I../Mp -o stk-bin userinit.o libstk.a ../Mp/libgmp.a ../Tk/libtk.a ../Tcl/libtcl.a -lX11 -lm
ld: Undefined symbols:
_S_ISDIR
_S_ISREG
_WEXITSTATUS
make[2]: *** [stk-bin] Error 1
make[1]: *** [stk] Error 1
make: *** [src] Error 1
=================================================
Received on Wed Sep 27 1995 - 17:30:35 CET
This archive was generated by hypermail 2.3.0
: Mon Jul 21 2014 - 19:38:59 CEST