OK, I think the issue might be with libtool When I build the libraries the 'old fashioned' way from the .o's
ar r liblog4cxx.a *.o and xlC -G -bernotok -o liblog4cxx.so *.o -lxml2 The examples seem to work OK. Maybe you should try this on XP Pro also. Thanks for everyone's help! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 11:30 AM To: Log4CXX User Subject: RE: 0.9.7 not working on AIX 5.1 Joe, no I am not sure it is. I believe you are right, it should not happen with trivial. I just happened to get the same error message, but with the example from documentation (and on Windows, not AIX). Alex "Zendle, Joseph" <[EMAIL PROTECTED]> wrote on 07/29/2004 11:21:50 AM: > Thanks for the quick response. > > I tried #pragma priority (n) (i think this achieves the same effect > for > xlC) in level.cpp and logmanager.cpp. This did not help. Also, I am > running trivial.cpp which does not use static instances of LoggerPtr - > it calls BasicConfigurator(). Are you sure this is the same problem? > > Joe > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 29, 2004 11:06 AM > To: Log4CXX User > Subject: Re: 0.9.7 not working on AIX 5.1 > > > > > > > > Check out > > http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] > ng > .apache.org&msgNo=111 > > Alex > > > > > > "Zendle, Joseph" > > <[EMAIL PROTECTED] > > bertyMutual.com> > To > > <[email protected]> > > 07/29/2004 10:51 > cc > AM > > > Subject > 0.9.7 not working on AIX 5.1 > > Please respond to > > "Log4CXX User" > > <[EMAIL PROTECTED] > > ging.apache.org> > > > > > > > > > > > > > > Hi, > > > I just built log4cxx-0.9.7 on AIX 5.1 > > > using: > xlC 5.0 > libtool 1.5.6 > automake 1.8.5 > > > The build worked fine by running: > > > autogen.sh > configure --prefix=/mydir > make > make install > > > I am having problems with the examples that worked fine for 0.9.6. Can > anyone help? > > > Here is my output: > > > from examples: > $trivial > You have tried to set a null level to root. > > > > > > from performance: > $ logging xml/logging1.xml 1 > You have tried to set a null level to root. > Could not perform variable substitution. > "" has no closing brace. Opening brace at position 0. > Could not perform variable substitution. > "" has no closing brace. Opening brace at position 0. > Could not perform variable substitution. > "" has no closing brace. Opening brace at position 0. > Could not perform variable substitution. > "debug" has no closing brace. Opening brace at position 0. Could not > perform variable substitution. "" has no closing brace. Opening brace > at position 0. You have tried to set a null level to root. Illegal > instruction(coredump) > > > > > > > Here is a stack trace: > (dbx) where > warning: Unable to access address 0x0 from core > warning: could not locate trace table from starting address 0x0 > parseLevel(log4cxx::helpers::ObjectPtrT<log4cxx::helpers::XMLDOMElemen > t> > ,log4cxx::helpers::ObjectPtrT<log4cxx::Logger>,bool)(0x2ff220f0, > 0x2ff21c28, 0x2ff21c2c, 0x1000001), line 567 in "domconfigurator.cpp" > unnamed block $b1316, line 452 in "domconfigurator.cpp" unnamed block > $b1311, line 452 in "domconfigurator.cpp" unnamed block $b1310, line 452 > in "domconfigurator.cpp" unnamed block $b1309, line 452 in > "domconfigurator.cpp" > parseChildrenOfLoggerElement(log4cxx::helpers::ObjectPtrT<log4cxx::helpe > rs::XMLDOMElement>,log4cxx::helpers::ObjectPtrT<log4cxx::Logger>,bool)(0 > x2ff220f0, > 0x2ff21cc8, 0x2ff21ccc, 0x1000001), line 452 in "domconfigurator.cpp" > parseRoot(log4cxx::helpers::ObjectPtrT<log4cxx::helpers::XMLDOMElement>) > (0x2ff220f0, > 0x2ff21f6c), line 399 in "domconfigurator.cpp" unnamed block $b1347, > line 718 in "domconfigurator.cpp" unnamed block $b1345, line 718 in > "domconfigurator.cpp" unnamed block $b1344, line 718 in > "domconfigurator.cpp" > parse(log4cxx::helpers::ObjectPtrT<log4cxx::helpers::XMLDOMElement>)(0x2 > ff220f0, > 0x2ff22050), line 718 in "domconfigurator.cpp" unnamed block $b1335, > line 594 in "domconfigurator.cpp" doConfigure(const > std::basic_string<char,std::char_traits<char>,std::allocator<char> > >&,log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggerRepository>&)(0x2f > >f2 > >20f0, > 0x2ff226c8, 0x20211adc), line 594 in "domconfigurator.cpp" > configure(const > std::basic_string<char,std::char_traits<char>,std::allocator<char> > >&)(0x2ff226c8), line 607 in "domconfigurator.cpp" main.init(const > std::basic_string<char,std::char_traits<char>,std::allocator<char> > >&,const > std::basic_string<char,std::char_traits<char>,std::allocator<char> > >&,const > std::basic_string<char,std::char_traits<char>,std::allocator<char> > >&,const > std::basic_string<char,std::char_traits<char>,std::allocator<char> > >&)(configFile = &(...), runLengthStr = &(...), delayStr = &(...), > burstLenStr = &(...)), line 71 in "main.cpp" unnamed block $b15, line > 121 in "main.cpp" unnamed block $b14, line 121 in "main.cpp" main(argc > = 3, argv = 0x2ff22838), line 121 in "main.cpp" > > > > > >
