Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
0.10.0
-
None
-
None
Description
I am trying to build to build log4cxx shared library linked against static apr and apr-util libraries. I have built apr and apr-util with --enable-shared=no option. When I try to build log4cxx, I see the following warning messages when it tries to link against apr and apr-util static libraries.
"*** Warning: This system can not link to static lib archive /home/dev/panky/log4cxx/zips/test/apr-util-1.3.4/libaprutil-1.la.
-
-
- I have the capability to make that library automatically link in when
- you link to this library. But I can only do this if you have a
- shared version of the library, which you do not appear to have.
-
-
-
- Warning: This system can not link to static lib archive /home/dev/panky/log4cxx/zips/test/apr-util-1.3.4/xml/expat/lib/libexpat.la.
- I have the capability to make that library automatically link in when
- you link to this library. But I can only do this if you have a
- shared version of the library, which you do not appear to have.
-
-
-
- Warning: This system can not link to static lib archive /home/dev/panky/log4cxx/zips/test/apr-1.3.3/libapr-1.la.
- I have the capability to make that library automatically link in when
- you link to this library. But I can only do this if you have a
- shared version of the library, which you do not appear to have."
-
I get a log4cxx dll built which does not shows apr and apr-utli shared libraries needed when tested with 'ldd liblog4cxx.sl.10.0'
but fails LD_PRELOAD test. Whe I try to link and run with an application I find undefined symbols "apr_initialize" and the application cores.
I believe this is because of the above error messages only.
With shared libs of apr and apr-util, my application is running fine. Please help.