Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-09-11
04:19 • Closed ticket [459305ffff]: compile error in unix/tclLoadShl.c r1.6 plus 9 o... artifact: 6ae4f632fc user: dgp
01:09 • Ticket [459305ffff]: 4 changes artifact: 6754f39311 user: techentin
2001-09-07
06:23 • Ticket [459305ffff]: 5 changes artifact: 09dd39191d user: dgp
2001-09-06
20:38 • New ticket [459305ffff]. artifact: e5cf0525a6 user: techentin

compile error in unix/tclLoadShl.c r1.6

Closed / Fixed459305ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-09-06 20:38:18
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.
dgpplain2001-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.
techentinplain2001-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"
  

  /*
  
*----------------------------------------------------------------------
dgpplain2001-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.
Log in (anonymous is fine) to add a comment.