progress made on tclkit lite on sparc solaris 9

"Virden, Larry W." <[email protected]>
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
Okay, after doing a checkout of kitgen this morning, editing the
config.sh to add the LDFLAGS mentioned for SunOS, then removing my
8.5 tree and doing a new gmake large, I now get vlerq to compile - with
this warning:
gcc -pipe -DPACKAGE_NAME=\"vlerqtcl\" -DPACKAGE_TARNAME=\"vlerqtcl\" -DPACKAGE_V
ERSION=\"4.1\" -DPACKAGE_STRING=\"vlerqtcl\ 4.1\" -DPACKAGE_BUGREPORT=\"\" -DSTD
C_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_ST
RING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_
H=1 -DWORDS_BIGENDIAN=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLO
C=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1
 -DSTATIC_BUILD=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -DTCL_WIDE_INT_TYP
E=long\ long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DH
AVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1   -I"/vol/tclsrcsol/cvs/ki
tgen/8.5/kit-large/build/include"    -I/usr/dt/include -I/usr/openwin/include -O
2 -Wall -Wno-implicit-int -c `echo ../../../vlerq/generic/vlerq.c` -o vlerq.o
../../../vlerq/generic/vlerq.c:35:1: warning: "_BIG_ENDIAN" redefined
In file included from /usr/include/sys/feature_tests.h:15,
                 from /vol/gnu/gcc/lib/gcc-lib/sparc-sun-solaris2.8/3.3.1/includ
e/iso/stdlib_iso.h:39,
                 from /usr/include/stdlib.h:18,
                 from ../../../vlerq/generic/vlerq.c:11:
/usr/include/sys/isa_defs.h:297:1: warning: this is the location of the previous
 definition
../../../vlerq/generic/vlerq.c:57: warning: redefinition of `uint8_t'
/usr/include/sys/int_types.h:78: warning: `uint8_t' previously declared here
../../../vlerq/generic/vlerq.c: In function `BufferAsIntVec':
../../../vlerq/generic/vlerq.c:639: warning: dereferencing type-punned pointer w
ill break strict-aliasing rules
../../../vlerq/generic/vlerq.c: In function `FinishStrVec':
../../../vlerq/generic/vlerq.c:1080: warning: dereferencing type-punned pointer 
will break strict-aliasing rules
../../../vlerq/generic/vlerq.c: In function `CoerceColType':
../../../vlerq/generic/vlerq.c:1239: warning: dereferencing type-punned pointer 
will break strict-aliasing rules
rm -f libvlerqtcl4.1.a


Then, when I get to the build of kit-cli, I am getting:
cc -o kit-cli -I/usr/dt/include -I/usr/openwin/include ../../kitInit.c ../../pwb
.c ../../rechan.c ../../zlib.c ../tcl/unix/tclAppInit.c -Ibuild/include \
  -DKIT_LITE -DTCL_LOCAL_APPINIT=TclKit_AppInit -DSTATIC_BUILD \
  build/lib/vfs1*/*vfs1*.a build/lib/vlerqtcl4*/*vlerqtcl4*.a \
  build/lib/libz.a build/lib/libtcl8*.a -ldl -lsocket -lnsl -lm
../../kitInit.c:
../../pwb.c:
../../rechan.c:
../../zlib.c:
../tcl/unix/tclAppInit.c:
Undefined                       first referenced
 symbol                             in file
__lshrdi3                           build/lib/libtcl8.5.a(tclStrToD.o)
__floatdidf                         build/lib/libtcl8.5.a(tclBasic.o)
__ashldi3                           build/lib/libtcl8.5.a(tclExecute.o)
__ashrdi3                           build/lib/libtcl8.5.a(tclExecute.o)
ld: fatal: Symbol referencing errors. No output written to kit-cli
gmake[1]: *** [kit-cli] Error 1
gmake[1]: Leaving directory `/vol/tclsrcsol/cvs/kitgen/8.5/kit-large'
gmake: *** [large] Error 2

I then compare the link step with the tcl8.5 tclsh link, and I see one missing
library - -lpthread . So I add that to the config.sh LDFLAGS, but that
doesn't help.

The weird thing is that I don't recognize these functions and I don't see them
in the standard Sun headers. In fact, I don't see these functions in
the .c files mentioned.

Anyone have any ideas about these?
-- 
Tcl - The glue of a new generation.  <URL: http://wiki.tcl.tk/ >
Larry W. Virden <mailto:[email protected]><URL: http://www.purl.org/NET/lvirden/ >
Even if explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-><-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.