This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Why is malloc being defined as rpl_malloc ??
- From: "Dr. David Kirkby" <drkirkby at ntlworld dot com>
- To: "autoconf at gnu dot org" <autoconf at gnu dot org>, automake <automake at gnu dot org>
- Date: Sun, 04 May 2003 00:57:25 +0100
- Subject: Why is malloc being defined as rpl_malloc ??
I have a configure script that runs okay on the following systems,
which while quite varied in OS, are a bit Sun biased.
1) A 32-bit PC running Redhat Linux
2) A 32-bit Sun running Solaris 2.5
3) A 64-bit Sun Ultra 80 running Solaris 9
4) A 32-bit Sun running NetBSD
5) A 32-bit Sun running OpenBSD
6) A 32-bit Sun running running Debian Linux
7) A 32-bit Sun running Redhat Linux.
I'm now trying to run the script on a 64-bit Dec Alpha (Digital
Personal Workstation 600a to be precise) running HP/Compaq's Tru64
operating system. The build process fails with:
ld:
Unresolved:
rpl_malloc
There is no call to rpl_malloc in the code, but I noticed that the
command line to cc,:
-Dmalloc=rpl_malloc
Clearly malloc is being redefined as something else, which is then not
avaialble to be linked in. Has anyone any ideas why this is happening
? config.log show:
DEFS='-DPACKAGE_NAME=\"atlc\" -DPACKAGE_TARNAME=\"atlc\"
-DPACKAGE_VERSION=\"4.3.0\" -DPACKAGE_STRING=\"atlc\ 4.3.0\"
-DPACKAGE_BUGREPORT=\"drkirkby@ntlworld.com\" -DPACKAGE=\"atlc\"
-DVERSION=\"4.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_MALLOC_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1
-DHAVE_SYS_TYPES_H=1 -DHAVE__BOOL=1 -DSIZEOF_INT=4 -DSIZEOF_LONG=8
-DSIZEOF_SIZE_T=8 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=0
-Dmalloc=rpl_malloc -DHAVE_MEMSET=1 -DHAVE_STRCHR=1 -DHAVE_STRTOL=1 '
#define malloc rpl_malloc
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk