Hi. I'm new to log4cpp, and I have not used C++ in many years, so I apologize if this is a "stupid" question. I've been asked to determine whether log4cpp (version 0.3.4b or later) can be compiled for 64-bit Solaris systems. Is this doable, and if so, then what considerations should I take when compiling? We use gcc 3.3.2 as our compiler.
Thanks in advance!
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With gcc it should be no problem. Problems arise when you build with sun CC. A wrong flag (-pthreads) is given to the compiler which generates a Solaris AUDIT dependency to the library and therefore linked applications will not execute. The complain about a missing AUDIT library named "threads". The -p flag tells the sun CC compiler to use the given library as AUDIT library.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have tried to build log4cpp-2.7.0-rc1 on SunOS 5.10 Generic but unable to get a 64 bit library built despite using flags like -m64, xarch=generic64, -G and -Kpic. Can you please help me build 64 bit libraries of log4cpp for Solaris.
Thankyou
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. I'm new to log4cpp, and I have not used C++ in many years, so I apologize if this is a "stupid" question. I've been asked to determine whether log4cpp (version 0.3.4b or later) can be compiled for 64-bit Solaris systems. Is this doable, and if so, then what considerations should I take when compiling? We use gcc 3.3.2 as our compiler.
Thanks in advance!
Greg
Can't say for sure - never built it with 64-bit mode. You can try - I'm mostly sure it will compile and work fine.
With gcc it should be no problem. Problems arise when you build with sun CC. A wrong flag (-pthreads) is given to the compiler which generates a Solaris AUDIT dependency to the library and therefore linked applications will not execute. The complain about a missing AUDIT library named "threads". The -p flag tells the sun CC compiler to use the given library as AUDIT library.
I have tried to build log4cpp-2.7.0-rc1 on SunOS 5.10 Generic but unable to get a 64 bit library built despite using flags like -m64, xarch=generic64, -G and -Kpic. Can you please help me build 64 bit libraries of log4cpp for Solaris.
Thankyou
Hello,
I suggest you try to build latest code at https://sourceforge.net/projects/log4cpp/files/log4cpp-1.1.x%20%28new%29/log4cpp-1.1/log4cpp-1.1.2rc5.tar.gz/download
In ase of build errros post them here, will have a look