home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!mcsun!sunic!dkuug!daimi!tthorn
- From: tthorn@daimi.aau.dk (Tommy Thorn)
- Subject: patch to tk3.0 for HP-UX 8.0
- Message-ID: <1992Dec18.152612.23246@daimi.aau.dk>
- Sender: news@daimi.aau.dk
- Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
- Date: Fri, 18 Dec 92 15:26:12 GMT
- Lines: 73
-
- This is my attempt to compile tk3.0 on a snake (hp9000s700) with gcc 2.3.2
-
- make
- gcc -O6 -I. -DTCL_LIBRARY=\"/users/tthorn/lib/tcl\" -c tclExpr.c
- In file included from tclExpr.c:33:
- tclUnix.h:297: conflicting types for `fseek'
- /usr/local/include/stdio.h:136: previous declaration of `fseek'
-
- int/long return type conflict. Fix: #if'defed
-
- gcc -O6 -I. -DTCL_LIBRARY=\"/users/tthorn/lib/tcl\" -c tclTest.c
- tclTest.c:28: macro `Tcl_DumpActiveMemory' used without args
-
- Fix: /* xx */
-
- Passed all tests in tests.
-
- cd ..
- make
- gcc -I. -Itcl -O6 -DTK_LIBRARY=\"/users/tthorn/lib/tk\" -c tk3d.c
- In file included from tk3d.c:21:
- tkConfig.h:123: conflicting types for `select'
- /usr/local/include/sys/time.h:146: previous declaration of `select'
-
- Fix: #ifdef'ed select in tkConfig.h
-
- As a patch to tk3.0:
- -----------------------------------------------------------
- diff -u +recur tk3.0/tcl/tclTest.c tk3.0-hpux/tcl/tclTest.c
- --- tk3.0/tcl/tclTest.c Sun Dec 13 02:19:03 1992
- +++ tk3.0-hpux/tcl/tclTest.c Fri Dec 18 11:58:21 1992
- @@ -25,7 +25,7 @@
- #include <stdlib.h>
- #include "tcl.h"
-
- -extern int Tcl_DumpActiveMemory();
- +/*extern int Tcl_DumpActiveMemory();*/
-
- Tcl_Interp *interp;
- Tcl_CmdBuf buffer;
- diff -u +recur tk3.0/tcl/tclUnix.h tk3.0-hpux/tcl/tclUnix.h
- --- tk3.0/tcl/tclUnix.h Sat Aug 22 00:59:18 1992
- +++ tk3.0-hpux/tcl/tclUnix.h Fri Dec 18 11:53:14 1992
- @@ -294,7 +294,9 @@
- extern int execvp _ANSI_ARGS_((CONST char *name, char **argv));
- extern void _exit _ANSI_ARGS_((int status));
- extern pid_t fork _ANSI_ARGS_((void));
- +#ifndef __hpux__
- extern long fseek _ANSI_ARGS_((FILE *stream, long offset, int base));
- +#endif
- extern uid_t geteuid _ANSI_ARGS_((void));
- extern pid_t getpid _ANSI_ARGS_((void));
- extern char * getcwd _ANSI_ARGS_((char *buffer, int size));
- Only in tk3.0-hpux/tcl: tclUnix.h.bak
- diff -u +recur tk3.0/tkConfig.h tk3.0-hpux/tkConfig.h
- --- tk3.0/tkConfig.h Wed Nov 11 00:11:22 1992
- +++ tk3.0-hpux/tkConfig.h Fri Dec 18 14:19:24 1992
- @@ -118,8 +118,10 @@
- #endif
- extern void panic _ANSI_ARGS_(VARARGS);
- extern int read _ANSI_ARGS_((int fd, char *buf, int numBytes));
- +#ifndef __hpux__
- extern int select _ANSI_ARGS_((int nfds, SELECT_MASK *readfds,
- SELECT_MASK *writefds, SELECT_MASK *exceptfds,
- struct timeval *timeout));
- +#endif
-
- #endif /* _TKCONFIG */
- --------------------------------------------------------
- --
- Tommy.Thorn@daimi.aau.dk | If you use a PC consider upgrading to a real OS.
- Join the League for Pro- | Linux is Posix (Unix). It has GCC,Emacs,X11,TCP,NFS,
- gramming Freedom, LPF | Doc,Interviews,Prolog...(you name it) and it's free!
-