[Log4cplus-devel] Sunstudio build with AUDIT support and tests fail
Logging Framework for C++
Brought to you by:
wilx
From: Jeremy C. R. <re...@re...> - 2011-06-01 20:00:40
|
System is: SunOS 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V240 Compiler is: Sun C++ 5.10 SunOS_sparc 2009/06/03 Using 1.0.4 source, but also have same problem with latest subversion trunk. ./configure --prefix=/udir/jreed/opt/log4cplus-1.0.4-sunstudio The resulting library has: $ elfdump src/.libs/liblog4cplus.so | grep AUDIT [11] AUDIT 0x32cb6 threads Running a test results in: $ tests/timeformat_test/timeformat_test ld.so.1: timeformat_test: fatal: threads: open failed: No such file or directory ld.so.1: timeformat_test: fatal: threads: audit initialization failure: disabled Killed $ elfdump tests/timeformat_test/.libs/timeformat_test | grep AUDIT [12] DEPAUDIT 0xd93 threads [13] AUDIT 0xd93 threads By the way, how to run the tests using make? I don't see any make target to run them. See this truss output: $ truss tests/timeformat_test/.libs/timeformat_test execve("tests/timeformat_test/.libs/timeformat_test", 0xFFBFFB24, 0xFFBFFB2C) argc = 1 resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12 getcwd("/export/home/users/jreed/src/log4cplus/log4cplus-1.0.4", 979) = 0 resolvepath("/export/home/users/jreed/src/log4cplus/log4cplus-1.0.4/tests/timeformat_test/.libs/timeformat_test", "/export/home/users/jreed/src/log4cplus/log4cplus-1.0.4/tests/timeformat_test/.libs/timeformat_test", 1023) = 98 stat("/export/home/users/jreed/src/log4cplus/log4cplus-1.0.4/tests/timeformat_test/.libs/timeformat_test", 0xFFBFF900) = 0 open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT stat("/udir/jreed/opt/log4cplus-1.0.4-sunstudio/lib/threads", 0xFFBFF3A0) Err#2 ENOENT stat("/export/home/opt/sunstudio12.1/lib/rw7/threads", 0xFFBFF3A0) Err#2 ENOENT stat("/export/home/opt/sunstudio12.1/lib/stlport4/threads", 0xFFBFF3A0) Err#2 ENOENT stat("/export/home/opt/sunstudio12.1/lib/sparc/threads", 0xFFBFF3A0) Err#2 ENOENT stat("/export/home/opt/sunstudio12.1/lib/threads", 0xFFBFF3A0) Err#2 ENOENT stat("/usr/ccs/lib/threads", 0xFFBFF3A0) Err#2 ENOENT stat("/lib/threads", 0xFFBFF3A0) Err#2 ENOENT stat("/usr/lib/threads", 0xFFBFF3A0) Err#2 ENOENT stat("/lib/threads", 0xFFBFF3A0) Err#2 ENOENT stat("/usr/lib/threads", 0xFFBFF3A0) Err#2 ENOENT ld.so.1: timeformat_test: fatal: threads: open failed: No such file or directory write(2, " l d . s o . 1 : t i m".., 81) = 81 ld.so.1: timeformat_test: fatal: threads: audit initialization failure: disabled write(2, " l d . s o . 1 : t i m".., 81) = 81 lwp_self() I don't understand why it stat() all these non-existent "threads" files and then fails with no such file. Anyone know about this audit problem? I am guessing some compiler/linker option is missing or added but I can't see it yet. My generated src/Makefile is at http://bind10.isc.org/~jreed/nxahuf-Makefile.txt and config.log is at: http://bind10.isc.org/~jreed/nxahuf-config.log.txt Jeremy C. Reed echo 'EhZ[h ^jjf0%%h[[Zc[Z_W$d[j%Xeeai%ZW[ced#]dk#f[d]k_d%' | \ tr '#-~' '\-.-{' |