Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:54 • Ticket [218264ffff] Source TCL 8.2.1 won't compile on Solaris 2.6 with gcc c... artifact: c413d7f7d3 user: dgp
2000-10-26
08:17 • Closed ticket [218264ffff]. artifact: 2e7b019eb6 user: welch
00:55 • New ticket [218264ffff]. artifact: b76eb0dd6a user: nobody

Source TCL 8.2.1 won't compile on Solaris 2.6 with gcc compi

Closed / Fixed218264ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:55:13
OriginalBugID: 3310 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '1999-11-11'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
OSVersion: 2.6
FixedDate: '2000-10-25'
ClosedDate: '1999-11-11'


Name:
Joe Coppa

Comments:
Please help

ReproducibleScript:
[root@netmon]/opt/local/src/tcl8.2.1/unix
#make
gcc -pipe -c -O -Wall -Wconversion -fPIC  -I./../generic -I.  -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DUSEGETWD=1 -DNO_STRERROR=1 -DNO_GETWD=1 -DNO_WAIT3=1 -DNO_UNAME=1 -DNO_REALPATH=1 -DNO_STDLIB_H=1 -DNO_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DTM_IN_SYS_TIME=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TIMEZONE_VAR=1 -DNO_FSTATFS=1 -DNO_MEMMOVE=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_UNION_WAIT=1 -DNEED_MATHERR=1 -DRETSIGTYPE=int -Dvfork=fork -DNO_GETTOD=1 -DGETTOD_NOT_DECLARED=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_NET_ERRNO_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1          -DTCL_SHLIB_EXT=\".so\" -DUSE_TCLALLOC=0 ./../generic/tclAlloc.c
In file included from ../generic/tclPort.h:27,
                 from ./../generic/tclAlloc.c:22:
../generic/../unix/tclUnixPort.h:42: net/errno.h: No such file or directory
In file included from ../generic/tclInt.h:30,
                 from ./../generic/tclAlloc.c:21:
/usr/include/stdio.h:34: warning: empty declaration
In file included from ../generic/../compat/string.h:28,
                 from ../generic/tclInt.h:48,
                 from ./../generic/tclAlloc.c:21:
/usr/include/sys/types.h:246: warning: empty declaration
/usr/include/sys/types.h:250: warning: empty declaration
/usr/include/sys/types.h:253: warning: empty declaration
/usr/include/sys/types.h:256: warning: empty declaration
In file included from ../generic/tclPort.h:27,
                 from ./../generic/tclAlloc.c:22:
../generic/../unix/tclUnixPort.h:255: conflicting types for `gettimeofday'
/usr/include/sys/time.h:389: previous declaration of `gettimeofday'
*** Error code 1
make: Fatal error: Command failed for target `tclAlloc.o'

ObservedBehavior:
configure:2402: checking tm_tzadj in struct tm
configure:2411: gcc -pipe -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:2407: structure has no member named `tm_tzadj'
configure: failed program was:
#line 2404 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
struct tm tm; tm.tm_tzadj;
; return 0; }
configure:2427: checking tm_gmtoff in struct tm
configure:2436: gcc -pipe -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:2432: structure has no member named `tm_gmtoff'
configure: failed program was:
#line 2429 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
struct tm tm; tm.tm_gmtoff;
; return 0; }

DesiredBehavior:
Expected the compilation to actually work......



This was a mistake in mixing 2.7 and 2.6 Sol builds without a
make distclean. 
-- 11/11/1999 hobbs
welch Closed ticket [218264ffff]. [History diff]2000-10-26 08:17:56
dgp Ticket [218264ffff]: 3 changes [History diff]2001-04-05 06:54:28
Log in (anonymous is fine) to add a comment.