[ 
https://issues.apache.org/jira/browse/LOGCXX-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thorsten Schöning resolved LOGCXX-328.
--------------------------------------

    Resolution: Not A Problem

This reads like a usage error to me which is better discussed on the users 
mailing list.

> Unable to link apr and apr-util static libraries while building log4cxx 
> libraries on HPUX. I am using aCC compiler
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: LOGCXX-328
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-328
>             Project: Log4cxx
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 0.10.0
>            Reporter: Pankaj Tiwari
>            Assignee: Curt Arnold
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to