|
From: Howard C. <hy...@sy...> - 2005-02-10 07:00:58
|
ZhangPu wrote: >/usr/include/dlfcn.h >#ifdef __USE_GNU >... ># define RTLD_NEXT ((void *) -1l) >... >#endif > >Need a GNU make? > > No, but you need to add "-D__USE_GNU" to the CFLAGS, I think. On older versions of glibc it was defined by default, not sure when/why it changed. Most of the autoconf machinery in this package is pretty broken. It was like that in the original FunctionCheck 1.4 and I've never bothered to fix it, since I was only interested in getting it to work for myself on Linux and Solaris. Also the test directory is broken, I never use it. It has tests for C and C++, but I've only used this tool for C. (assert( C > C++) ;) >On Thu, 10 Feb 2005 15:36:16 +0900 >ZhangPu <zh...@fj...> wrote: > > > >>Thanks for you supplied this tool. >>I'm compiling it now. >> >>But I got the error fllowing when did 'make': >>fncmalloc.c: In function `hx_init_malloc': >>fncmalloc.c:34: error: `RTLD_NEXT' undeclared (first use in this function) >>fncmalloc.c:34: error: (Each undeclared identifier is reported only once >>fncmalloc.c:34: error: for each function it appears in.) >> >>checked dlfcn.h >>[isdev@ipf124 fnccheck]$ rpm -qf /usr/include/dlfcn.h >>glibc-headers-2.3.3-73 >>[isdev@ipf124 fnccheck]$ grep RTLD_NEXT /usr/include/* 2> /dev/null >>/usr/include/dlfcn.h:/* If the first argument of `dlsym' or `dlvsym' is set to RTLD_NEXT >>/usr/include/dlfcn.h:# define RTLD_NEXT ((void *) -1l) >> >>Any ideas? >> >>Thanks & Regards >>Pu >>On Wed, 09 Feb 2005 21:40:33 -0800 >>Howard Chu <hy...@sy...> wrote: >> >> > > > > -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support |