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

[gcc/HP-UX 11.23] duplicate definition for ~type_info() and std::uncaught_exception()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.2.1
    • 4.2.2
    • Build and Installation
    • None
    • gcc 3.4.3 on HP-UX 11.23

    • Linker Error

    Description

      stdcxx doesn't link with gcc on HP-UX:

      gcc -pthread -shared -fPIC assert.o atomic-cxx.o bitset.o catalog.o codecvt.o collate.o ctype.o ctype_bits.o domain_error.o exception.o export.o facet.o file.o instance.o invalid_argument.o ios.o ios_bits.o iostore.o iostream.o iso2022.o length_error.o limits.o limits_bits.o locale_bits.o locale_body.o locale_classic.o locale_combine.o locale_core.o locale_eq.o locale_global.o locale_name.o logic_error.o memattr.o memory.o messages.o mman.o num_get.o num_put.o once.o out_of_range.o overflow_error.o punct.o random.o range_error.o runtime_error.o setlocale.o string.o strstream.o strtol.o ti_collate.o ti_filebuf.o ti_insert_dbl.o ti_insert_int.o ti_insert_ptr.o ti_ios.o ti_istream.o ti_messages.o ti_money_get.o ti_money_put.o ti_moneypunct.o ti_num_get.o ti_num_put.o ti_numpunct.o ti_ostream.o ti_podarray.o ti_streambuf.o ti_string.o ti_stringbuf.o ti_time_get.o ti_time_put.o ti_wcollate.o ti_wfilebuf.o ti_winsert_dbl.o ti_winsert_int.o ti_winsert_ptr.o ti_wios.o ti_wistream.o ti_wmessages.o ti_wmoney_get.o ti_wmoney_put.o ti_wmoneypunct.o ti_wnum_get.o ti_wnum_put.o ti_wnumpunct.o ti_wostream.o ti_wstreambuf.o ti_wstring.o ti_wstringbuf.o ti_wtime_get.o ti_wtime_put.o time_get.o time_put.o tmpbuf.o typeinfo.o underflow_error.o valarray.o vecbool.o version.o wcodecvt.o wctype.o -lsupc++ -o libstd12d.sl.4.2.1
      ld: Duplicate symbol "std::type_info::~type_info()" in files typeinfo.o and /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/../../../libsupc++.a[tinfo.o]
      ld: Duplicate symbol "std::type_info::~type_info()" in files typeinfo.o and /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/../../../libsupc++.a[tinfo.o]
      ld: Duplicate symbol "std::type_info::~type_info()" in files typeinfo.o and /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/../../../libsupc++.a[tinfo.o]
      ld: Duplicate symbol "std::uncaught_exception()" in files exception.o and /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/../../../libsupc++.a[eh_catch.o]
      4 errors.
      collect2: ld returned 1 exit status

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              baugh Rhys Baugh
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified