SUMMARY: tcl compilation

From: Derald McMillan (Derald.Mcmillan@soltech.com)
Date: Fri Feb 10 1995 - 00:07:36 CST


Sun Managers,

There was only one reply to the question so I include it below.
I am not sure if this works or not because I ended up just using
the version I compiled on another machine running 2.3 before this
answer came in and everything works like a champ.

Thanks to Casper (casper@fwi.uva.nl) for the answer though...

My question:

>
>I wrote the other day about user addition and mentioned that
>I got tcl to compile flawlessly under Solaris 2.3. Well I
>shouldn't have opened my big mouth. I have since tried to
>compile tcl on a Sparc 690 running Solaris 2.3 and I get
>bombed out. This is the error:
>---------------
>gcc -g -I. -I. -DNO_GETTOD=1 -DNO_GETWD=1 -DNO_WAIT3=1
>-DHAVE_UNISTD_H=1 -DNO_DIRENT_H=1 -DNO_STDLIB_H=1
>-DNO_STRING_H=1 -Dmode_t=int -Dpid_t=int -Dsize_t=unsigned
>-Duid_t=int -Dgid_t=int -DUSE_DIRENT2_H=1 -DNO_SYS_ERRLIST=1
>-DNO_UNION_WAIT=1 -DTCL_LIBRARY=\"/usr/local/lib/tcl\"
>tclAppInit.o libtcl.a -lm -o tclsh
>
>
>Undefined first referenced
> symbol in file
>getwd libtcl.a(getcwd.o)

Casper's answer:

The solution is very simple: get rid of the getcwd.o object,
it's bogus. (It defines getwcd in terms of getwd)

have you reconfigured for Solaris?

-DNO_DIRENT_H=1 >-DNO_STRING_H=1 -DNO_STDLIB_H=1

etc are all wrong for Solaris 2.x

None of the compat objects should end up in libtcl.

Casper



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:15 CDT