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

tests and sample code unnecessarily compiled during default make target

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.11.0
    • Build
    • None

    Description

      The autotools build would build the unit test and sample program executables during the default build process which appears to be responsible for that failing on HP-UX (or at least some version) since libtool complains that the platform does not like uninstalled shared images. The fix delays the building of the unit tests and samples until make check is run. On HP-UX, make check should only be run after a make install.

      On May 3, 2008, at 6:04 AM, Chakravarthula, Krishnamurthy wrote:

      Hi Arnold,

      I am getting following error when I do make of log4cxx. The earlier
      problems got resolved. They were because of my library path settings.
      Please advice.

      libtool: link: warning: this platform does not like uninstalled shared
      libraries
      libtool: link: `trivial' will be relinked during installation
      g++ -g -O2 -o .libs/trivial trivial.o -L/u/chakrava/apr
      -L/u/chakrava/apr-util
      -lm ../../../src/main/cpp/.libs/liblog4cxx.sl
      /u/chakrava/apr-util/.libs/libapru
      til-1.sl /u/chakrava/apr-util/xml/expat/lib/.libs/libexpat.sl
      /u/chakrava/apr/.l
      ibs/libapr-1.sl -lrt -lpthread /opt/hp-gcc64-4.2.1/lib/libstdc++.sl
      -L/tmp/gcc-4
      .2.1.tar.gz/obj/hppa64-hp-hpux11.11/libstdc++-v3/src
      -L/tmp/gcc-4.2.1.tar.gz/obj
      /hppa64-hp-hpux11.11/libstdc++-v3/src/.libs
      -L/tmp/gcc-4.2.1.tar.gz/obj/./gcc -L
      /opt/hp-gcc64-4.2.1/hppa64-hp-hpux11.11/bin -L/opt/hp-gcc64-4.2.1/lib
      -Wl,+b -Wl
      ,/u/chakrava/log4cxx/src/main/cpp/.libs:/u/chakrava/apr-util/.libs:/u/ch
      akrava/a
      pr-util/xml/expat/lib/.libs:/u/chakrava/apr/.libs:/opt/hp-gcc64-4.2.1/li
      b:/usr/l
      ocal/lib:/usr/local/apr/lib
      ld: Can't find dependent library "libaprutil-1.sl.2"
      Fatal error.
      collect2: ld returned 1 exit status

          • Error exit code 1

      Stop.

          • Error exit code 1

      Stop.

          • Error exit code 1

      Stop.

          • Error exit code 1

      Stop.

      Regards,
      Krishna

      Attachments

        Activity

          People

            carnold@apache.org Curt Arnold
            carnold@apache.org Curt Arnold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: