Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
08:23 • Ticket [217995ffff] installation trouble on linux status still Closed with 3... artifact: e7ac23db47 user: dgp
2000-10-26
08:12 • Closed ticket [217995ffff]. artifact: 543cb0be16 user: welch
00:51 • New ticket [217995ffff]. artifact: 0fa78cdc02 user: nobody

installation trouble on linux

Closed / Fixed217995ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:51:47
OriginalBugID: 646 Bug
Version: 8.0p2
SubmitDate: '1998-05-25'
LastModified: '1998-11-19'
Severity: LOW
Status: Closed
Submitter: hershey
ChangedBy: rjohnson
OS: Linux
OSVersion: NA
Machine: NA
FixedDate: '2000-10-25'
FixedInVersion: NA
ClosedDate: '1998-11-19'


I am trying to compile on Linux with

#define USE_TCLALLOC 1

turned on and TCL_MEM_DEBUG turned off. I get link errors for TclpAlloc,
TclpFree, and TclpRealloc.

In tcl8.0p2, tclUnixPort.h had the following definitions:

/*
 * The following defines denote malloc and free as the system calls
 * used to allocate new memory.  These defines are only used in the
 * file tclCkalloc.c.
 */

#define TclpAlloc(size)         malloc(size)
#define TclpFree(ptr)           free(ptr)
#define TclpRealloc(ptr, size)  realloc(ptr, size)

Is there a reason these definitions were removed?


Sydney Polk, [email protected]
Source-Navigator Development Manager
Cygnus Solutions

They are not removed.  They are only defined in the Mac & Windows case.  The UNIX build was never designed for the USE_TCLALLOC to work for it.  (It probably would work - but it's never been tried.)  Ray

BTW, I know Syd has already moved passed this and made the memory allocator work on UNIX.
welch Closed ticket [217995ffff]. [History diff]2000-10-26 08:12:10
dgp Ticket [217995ffff]: 3 changes [History diff]2001-04-05 08:23:13
Log in (anonymous is fine) to add a comment.