Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-166

[gcc/HP-UX] link errors due to the wrong shared library suffix

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.3
    • 4.1.4
    • Build and Installation
    • None

    Description

      All programs fail to link with the shared stdcxx library due to the wrong library suffix (.so, should be .sl on HP-UX):

      $ make strstream
      generating dependencies for $(TOPDIR)/examples/manual/strstream.cpp
      gcc -c -I/house/sebor/stdcxx-4.1.3/include/ansi -D_RWSTD_USE_CONFIG -I/house/sebor/build/stdcxx-4.1.3-gcc-3.4.2/include -I/house/sebor/stdcxx-4.1.3/include -I/house/sebor/stdcxx-4.1.3/examples/include -pedantic -nostdinc++ -O2 -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /house/sebor/stdcxx-4.1.3/examples/manual/strstream.cpp
      gcc strstream.o -o strstream -L/house/sebor/build/stdcxx-4.1.3-gcc-3.4.2/lib -lstd8d -lsupc++ -lm
      /usr/ccs/bin/ld: Can't find library: "std8d"
      collect2: ld returned 1 exit status
      make: *** [strstream] Error 1

      $ ls -l ../lib/libstd8d.so
      lrwxr-xr-x 1 sebor nis 63 Mar 18 14:56 ../lib/libstd8d.so -> /house/sebor/build/stdcxx-4.1.3-gcc-3.4.2/lib/libstd8d.so.4.1.3

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: