Login Register Actian.com  

Actian Community Forum


Go Back   Actian Community Forums > Ingres Forums > Ingres Database Contributions
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2012-01-30   #11 (permalink)
Ingres Community
 
Join Date: Oct 2011
Posts: 14
Default

As far as I can see LD_AUDIT is not set in the environment
mpoosterom is offline   Reply With Quote
Old 2012-01-30   #12 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,661
Default

Well, something seems to be asking for auditing. Do you have a CCFLAGS defined that specifies -p or -P to the compiler? Is is possible that xerces was compiled with -p or -P?

I'm not familiar with any of the Solaris auditing stuff. There's a section in the Solaris Linker and Libraries guide that talks about the runtime auditing interface, maybe there's something in there that might help you.
kschendel is offline   Reply With Quote
Old 2012-01-30   #13 (permalink)
Ingres Community
 
Join Date: Oct 2011
Posts: 14
Default

I think I found a part of the problem. When building xerces-c-2.7.0 the following message appears on screen:

CC: Warning: Option -ptr/export/home/xerces-c-src_2_7_0/obj/SOLARIS passed to ld, if ld is invoked, ignored otherwise

I'll try to figure out how to disable audit.
mpoosterom is offline   Reply With Quote
Old 2012-01-30   #14 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,661
Default

That option (-ptr/blah/blah) definitely would cause the problem. From the little I read in the Linker manual, -pfilename sets up filename as an audit library to be called when the dynamic linker (ld.so) tries to use the resulting object. That corresponds exactly to the error messages you're seeing.

So the next question is why the Xerces build is asking for -ptr/export/home/blah/blah. Perhaps some poking around in the Xerces build documentation might turn up an option that is inadvertently being invoked. In any case I think you're on the right track.
kschendel is offline   Reply With Quote
Old 2012-01-30   #15 (permalink)
Ingres Community
 
Join Date: Oct 2011
Posts: 14
Default

I poked around in the Xerces sources and I found a file called Makefile.incl. In this file I found the following ifeq statement

Quote:
ifeq (${PLATFORM}, SOLARIS)
ifeq (${GXX}, yes)
PLATFORM_COMPILE_OPTIONS = -fPIC -D${PLATFORM} -D_REENTRANT
MAKE_SHARED = ${CXX} -D${PLATFORM} -shared ${LDFLAGS}
MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared ${LDFLAGS}
ifeq (${TRANSCODER}, ICU)
ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib \
-licuuc -licudata -lm -lgen
else
ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib \
-lm -lgen
endif

ifeq (${MESSAGELOADER}, ICU)
ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib \
-licuuc -licudata -lXercesMessages -lm -lgen
endif

else
PLATFORM_COMPILE_OPTIONS = -KPIC -mt -xs -ptr$(XML_OBJ_DIR) \
-features=rtti -D${PLATFORM} -D_REENTRANT
MAKE_SHARED = ${CXX} -D${PLATFORM} -G -ptr$(XML_OBJ_DIR) ${LDFLAGS}
MAKE_SHARED_C = ${CC} -D${PLATFORM} -G ${LDFLAGS}
ifeq (${TRANSCODER}, ICU)
ALLLIBS = -mt ${LIBS} -licuuc -licudata
else
ALLLIBS = -mt ${LIBS}
endif
If I'm right a ifeq statement is issued to check if the compiler was GXX or not. In my case it was not, because I used cc and CC. So in my case [I]-ptr$(XML_OBJ_DIR)[/I} are set in the variables PLATFORM_COMPILE_OPTIONS and MAKE_SHARED_C.

I will try two things:
1. Compile xerces with cc and CC without the -ptr flag.
and if that does not work
2. Compile xerces with gcc
mpoosterom is offline   Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2011 Actian Corporation. All Rights Reserved