Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-328

Unable to link apr and apr-util static libraries while building log4cxx libraries on HPUX. I am using aCC compiler

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 0.10.0
    • None
    • Build
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            carnold@apache.org Curt Arnold
            panky.tiwari Pankaj Tiwari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment