[Dmalloc] latest dmalloc-5.5.2 wont compile both the C & C++ shared libraries
Brought to you by:
graywatson
From: Debug M. L. <dma...@li...> - 2009-06-20 20:31:57
|
I've having trouble building both the C & C++ shared libraries. The other libaries build fine: [root@server ~]# tar xvfz dmalloc-5.5.2.tgz dmalloc-5.5.2 dmalloc-5.5.2/contrib dmalloc-5.5.2/docs dmalloc-5.5.2/conf.h.in dmalloc-5.5.2/configure dmalloc-5.5.2/dmalloc.spec dmalloc-5.5.2/mkinstalldirs dmalloc-5.5.2/install-sh dmalloc-5.5.2/dmallocc.cc dmalloc-5.5.2/dmalloc_argv_loc.h dmalloc-5.5.2/dmalloc_argv.h dmalloc-5.5.2/dmalloc_argv.c dmalloc-5.5.2/settings.dist dmalloc-5.5.2/version.h dmalloc-5.5.2/return.h dmalloc-5.5.2/malloc_funcs.h dmalloc-5.5.2/dmalloc_fc_t.c dmalloc-5.5.2/dmalloc_t.c dmalloc-5.5.2/dmalloc_tab_loc.h dmalloc-5.5.2/dmalloc_tab.h dmalloc-5.5.2/dmalloc_tab.c dmalloc-5.5.2/dmalloc_rand.h dmalloc-5.5.2/dmalloc.h.3 dmalloc-5.5.2/dmalloc_rand.c dmalloc-5.5.2/dmalloc_loc.h dmalloc-5.5.2/dmalloc.h.1 dmalloc-5.5.2/dmalloc.c dmalloc-5.5.2/malloc.c dmalloc-5.5.2/heap.h dmalloc-5.5.2/heap.c dmalloc-5.5.2/error_val.h dmalloc-5.5.2/error.h dmalloc-5.5.2/error.c dmalloc-5.5.2/env.h dmalloc-5.5.2/env.c dmalloc-5.5.2/debug_tok.h dmalloc-5.5.2/compat.h dmalloc-5.5.2/compat.c dmalloc-5.5.2/chunk_loc.h dmalloc-5.5.2/chunk.h dmalloc-5.5.2/chunk.c dmalloc-5.5.2/arg_check.h dmalloc-5.5.2/arg_check.c dmalloc-5.5.2/dmallocrc dmalloc-5.5.2/RELEASE.html dmalloc-5.5.2/README dmalloc-5.5.2/NEWS dmalloc-5.5.2/INSTALL dmalloc-5.5.2/ChangeLog.1 dmalloc-5.5.2/config.help dmalloc-5.5.2/configure.ac dmalloc-5.5.2/Makefile.in dmalloc-5.5.2/docs/TODO dmalloc-5.5.2/docs/NOTES dmalloc-5.5.2/docs/Manifest dmalloc-5.5.2/docs/dmalloc.pdf dmalloc-5.5.2/docs/dmalloc.html dmalloc-5.5.2/docs/dmalloc.texi dmalloc-5.5.2/contrib/README dmalloc-5.5.2/contrib/z_os_notes dmalloc-5.5.2/contrib/tsecs dmalloc-5.5.2/contrib/stratus_ftx_notes dmalloc-5.5.2/contrib/ra_info.pl dmalloc-5.5.2/contrib/next_notes dmalloc-5.5.2/contrib/dmalloc_summarize.pl dmalloc-5.5.2/contrib/dmalloc.gdb dmalloc-5.5.2/contrib/dgux_notes dmalloc-5.5.2/contrib/dec_notes dmalloc-5.5.2/contrib/atexit.c dmalloc-5.5.2/contrib/aix_notes dmalloc-5.5.2/contrib/Xmalloc.c dmalloc-5.5.2/contrib/aix_5l_notes [root@server ~]# cd dmalloc-5.5.2 [root@server dmalloc-5.5.2]# CFLAGS=-fPIC [root@server dmalloc-5.5.2]# export CFLAGS [root@server dmalloc-5.5.2]# ./configure configure: configurations for the dmalloc library configure: build utilities checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes configure: WARNING: could not find C++ compiler checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/types.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking shared library link args... ld -shared --whole-archive -soname $@ -o $@.t checking shared library extension... so checking C++ support... disabled checking thread support... disabled checking shlib support... disabled checking for size_t... yes checking dmalloc size unsigned... yes checking strdup macro... no checking for mprotect... yes checking mprotect works... yes configure: important functionality checking for mmap... yes checking for sbrk... yes checking mmap usage... yes checking for getpagesize... yes checking basic-block size... 12 checking for long... yes checking size of long... 8 checking data-alignment size... 8 checking for abort... yes checking abort safe... yes checking return type of signal handlers... void checking signal works... checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes yes checking for getenv... yes checking getenv safe... yes checking sys/cygwin.h usability... no checking sys/cygwin.h presence... no checking for sys/cygwin.h... no checking w32api/windef.h usability... no checking w32api/windef.h presence... no checking for w32api/windef.h... no checking for w32api/winbase.h... no checking for GetEnvironmentVariableA... no checking constructor attribute... yes checking destructor attribute... yes checking return.h macros work... yes checking if ident works... yes configure: pthread particulars checking for library containing pthread_mutex_init... none required checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking pthreads.h usability... no checking pthreads.h presence... no checking for pthreads.h... no checking for pthread_mutex_init... yes checking for pthread_mutex_lock... yes checking for pthread_mutex_unlock... yes checking pthread mutex type... pthread_mutex_t checking pthread attribute initialization... 0 configure: functions checking for atexit... yes checking for on_exit... yes checking for fork... yes checking for gethostname... yes checking for getpid... yes checking for getuid... yes checking for time... yes checking for ctime... yes checking for vprintf... yes checking for snprintf... yes checking for vsnprintf... yes checking for recalloc... no checking for memalign... yes checking for valloc... yes checking for memcmp... yes checking for memcpy... yes checking for memmove... yes checking for memset... yes checking for strchr... yes checking for strrchr... yes checking for strlen... yes checking for strcmp... yes checking for strcpy... yes checking for strsep... yes configure: various functions for argv files checking for atoi... yes checking for atol... yes checking for getenv... (cached) yes checking for strchr... (cached) yes checking for strcmp... (cached) yes checking for strcpy... (cached) yes checking for strlen... (cached) yes checking for strncmp... yes checking for strncpy... yes checking for strsep... (cached) yes configure: various functions for argument checking checking for atoi... (cached) yes checking for atol... (cached) yes checking for bcmp... yes checking for bcopy... yes checking for bzero... yes checking for index... yes checking for memccpy... yes checking for memchr... yes checking for memcmp... (cached) yes checking for memcpy... (cached) yes checking for memmove... (cached) yes checking for memset... (cached) yes checking for rindex... yes checking for strcasecmp... yes checking for strcat... yes checking for strchr... (cached) yes checking for strcmp... (cached) yes checking for strcpy... (cached) yes checking for strcspn... yes checking for strlen... (cached) yes checking for strncasecmp... yes checking for strncat... yes checking for strncmp... (cached) yes checking for strncpy... (cached) yes checking for strpbrk... yes checking for strrchr... (cached) yes checking for strspn... yes checking for strstr... yes checking for strtok... yes configure: creating ./config.status config.status: creating Makefile config.status: creating conf.h config.status: executing dmalloc.h.2 commands config.status: executing settings.h commands configure: configure: Please check-out Makefile and conf.h to make sure that configure: sane configuration values were a result. configure: configure: You may want to change values in settings.h before configure: running 'make'. configure: configure: To run the basic library tests, you can execute: configure: make light configure: or configure: make heavy configure: [root@server dmalloc-5.5.2]# make rm -f dmalloc.h dmalloc.h.t cat ./dmalloc.h.1 dmalloc.h.2 ./dmalloc.h.3 > dmalloc.h.t mv dmalloc.h.t dmalloc.h rm -f arg_check.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c arg_check.c -o ./arg_check.o rm -f compat.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c compat.c -o ./compat.o rm -f dmalloc_rand.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c dmalloc_rand.c -o ./dmalloc_rand.o rm -f dmalloc_tab.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c dmalloc_tab.c -o ./dmalloc_tab.o rm -f env.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c env.c -o ./env.o rm -f heap.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c heap.c -o ./heap.o rm -f chunk.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c chunk.c -o ./chunk.o rm -f error.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c error.c -o ./error.o rm -f malloc.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c malloc.c -o ./malloc.o ar cr libdmalloc.a arg_check.o compat.o dmalloc_rand.o dmalloc_tab.o env.o heap.o chunk.o error.o malloc.o ranlib libdmalloc.a rm -f dmalloc.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c dmalloc.c -o ./dmalloc.o rm -f dmalloc_argv.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c dmalloc_argv.c -o ./dmalloc_argv.o rm -f dmalloc gcc -o aout dmalloc.o dmalloc_argv.o compat.o env.o \ -L. mv aout dmalloc To make the thread version of the library type 'make threads' To make the C++ version of the library type 'make cxx' To make the shared version of the library type 'make shlib' [root@server dmalloc-5.5.2]# make cxx rm -f dmallocc.o g++ -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c ./dmallocc.cc \ -o ./dmallocc.o ar cr libdmallocxx.a arg_check.o compat.o dmalloc_rand.o dmalloc_tab.o env.o heap.o chunk.o error.o malloc.o dmallocc.o ranlib libdmallocxx.a Enter 'make cxxsl' to build the cxx shared library [root@server dmalloc-5.5.2]# make threads rm -f chunk_th.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -DLOCK_THREADS=1 \ -c ./chunk.c -o ./chunk_th.o rm -f error_th.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -DLOCK_THREADS=1 \ -c ./error.c -o ./error_th.o rm -f malloc_th.o gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W 32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -DLOCK_THREADS=1 \ -c ./malloc.c -o ./malloc_th.o ar cr libdmallocth.a arg_check.o compat.o dmalloc_rand.o dmalloc_tab.o env.o heap.o chunk_th.o error_th.o malloc_th.o ranlib libdmallocth.a Enter 'make threadscxx' to build the threaded C++ library Enter 'make threadssl' to build the threaded shared library [root@server dmalloc-5.5.2]# make threadscxx ar cr libdmallocthcxx.a arg_check.o compat.o dmalloc_rand.o dmalloc_tab.o env.o heap.o chunk_th.o error_th.o malloc_th.o dmallocc.o ranlib libdmallocthcxx.a Enter 'make threadscxxsl' to build the threaded C++ shared-library [root@server dmalloc-5.5.2]# |