Here are the instructions I used to get the latest HEAD with CVS to compile on Solaris. Compiling on Solaris is very doable...
For those interested, here are the steps I took to compile logging-log4cxx on Solaris 10. This *might* work for those working on earlier versions of Solaris. I am using a stock Solaris 10 install with the Sun Freeware CD installed which places a bunch of applications under /usr/sfw and /opt/sfw. The version of gcc that I have installed is 3.4.2. 1) Downloaded and installed ant 1.6.3. 2) Fetch from CVS ant-contrib and built it. 3) Fetch from CVS cpptasks and built it. 4) I copied the jars from ant-contrib and cpptasks to the ant lib directory. 5) Download the expat package from www.sunfreeware.com and install it. (/usr/local) 6) Download apr-1.1.0. Run configure, make, and make install. 7) Download apr-util-1.1.0. Run configure with the following args: --with-apr=/usr/local/apr --with-berkeley-db=/usr/local/BerkeleyDB.4.2 LDFLAGS="-R/opt/sfw/lib". Then do a make and make install. 8) Download cppunit-1.10.2. Run configure, make, and make install. 9) Modified the build.xml to add <linkerarg value="-L/usr/local/lib"/> to the following targets: build, build-example, build-socketserver, build-unittest, build-standalone-unittest 10) Run ant -Dapr.dir=/usr/local/apr -Dcppunit.dir=/export/disk10/cppProjects/cppunit-1.10.2 -Dlogchar=utf8 -Dhas.wchar_t=0 -----Original Message----- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Friday, June 10, 2005 1:18 PM To: Log4CXX User Subject: Re: build problem on solaris On Jun 10, 2005, at 9:10 AM, [EMAIL PROTECTED] wrote: thank you for your help but after one day of suffering i am abandoning my effort to compile it on Solaris with the workshop compiler. I probably am doing something wrong somewhere but ant -Dcompiler=CC results in miles and miles of compiler errors. as far as I can gather it does appear as if ant does not detect various aspects correctly e..g sigwait taking only one argument and hundreds more such things. Ant+cpptasks doesn't attempt to do any capability sniffing. That is like blaming make for a problem in configure. log4cxx doesn't call sigwait directly, so you are likely seeing an APR build problem, though maybe one that is specific to how log4cxx builds APR. i am very dissapointed as I really wanted to use this on Solaris but I can only conclude that if you are not an expert on ant and the likes, you will never get it to compile. There appear to be several issues with log4cxx on Solaris. Maybe some are related to the use of ant but it appears that at least some of them are related to other issues. I've got an x86 Solaris media kit at home and one of my to-do list items is to get a Solaris build machine up so I can knock these down. I am not even starting to talk to get it compiled 64-bit which is how I really have to compile it. the log4cxx community would probably make some people very happy to get it working on Solaris as easy as it is on Linux as the mailing lists does indicate a lot of interrest on using it on Solaris. I've added bug logcxx-92 (http://issues.apache.org/jira/browse/LOGCXX-92) for this and marked it as blocking our next release 0.9.8. Before 0.9.8, we should have Solaris builds with both autotools or ant.