| Ticket UUID: | 459305 | ||
| Title: | compile error in unix/tclLoadShl.c r1.6 | ||
| Type: | Bug | Created on: | 2001-09-06 20:38:18 |
| Submitter: | techentin | Assigned to: | dgp |
| Subsystem: | 40. Dynamic Loading | Severity: | |
| Priority: | 5 Medium | Last modified: | 2001-09-11 04:19:47 |
| Status: | Closed | Closed by: | dgp |
| Resolution: | Fixed | Closed on: | 2001-09-10 21:19:47 |
| Version: | obsolete: 8.4a4 | ||
| Description: | ||||
I got this compile error from CVS HEAD today (6-Sept-2001) on HP-UX 10.20, configured with the HP ANSI compiler. cc -c -Ae -O +z -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".sl\" ./../unix/tclLoadShl.c cc: "../unix/tclLoadShl.c", line 120: error 1588: "TclpUnloadFile" undefined. I think somebody needs a forward declaration. | ||||
| User Comments: | ||||
dgp added on 2001-09-07 06:23:10:
Logged In: YES user_id=80530 Change line 26: #include "tcl.h" To: #include "tclInt.h" and see if that takes care of things. If so, contribute the patch. techentin added on 2001-09-11 01:09:24:
Logged In: YES user_id=43494 Oooook, Don. I tried changing "tcl.h" to "tclInt.h", and it seems to fix the problem. The file tclLoadShl.c compiles fine, and Tcl passes all of the test suite. Supply a patch? To add three characters to the file? I guess I can. But I was sort of thinking that Vince Darley might want to make the change himself. If there are compile errors when something is checked in, there might actually be a mistake somewhere. In any event, here is what I patched. *** tclLoadShl.c Mon Sep 10 13:00:55 2001 --- tclLoadShl.c.orig Tue Sep 4 13:06:34 2001 *************** *** 23,29 **** # undef EXTERN #endif ! #include "tclInt.h" /* *---------------------------------------------------------------------- --- 23,29 ---- # undef EXTERN #endif ! #include "tcl.h" /* *---------------------------------------------------------------------- dgp added on 2001-09-11 04:19:47:
Logged In: YES user_id=80530 OK, a patch may be overboard. Just trying to cultivate good volunteer habits. Bug fix committed. | ||||
