[Sunpro][regex] Anyone know how to fix this issue?

Does anyone know what would cause: ld: fatal: relocation error: file: /scratch2/kbelco/boost/results/boost/bin.v2/libs/regex/build/sun-5.9/debug/link-static/threading-multi/libboost_regex-sw59-mt-d-1_35.a(posix_api.o) section: .rela.debug_info symbol: : relocation against a discarded symbol, ?symbol is part of discarded section: .text%void boost::re_detail::basic_regex_creator<char,boost::regex_traits<char,boost::cpp_regex_traits<char>
::create_startmap(boost::re_detail::re_syntax_base*,unsigned char*,unsigned*,unsigned char)
When trying to build (or use) the regex library on Solaris with Sun-5.9? Annoyingly there are no problems with Sun-5.8, would there be any compiler or linker options that would help here? Many thanks, John.

This bug seems to be fixed in the patch-01 for the Sun C++ 5.9. Without the patch the only known workaround is to do not use debug mode. Patches for various platform can be found here: http://sunsolve.sun.com/show.do?target=patchpage Enter following patch number to the "PatchFinder" and press "Find Patch" button. 124863-01 Solaris/sparc 124864-01 Solaris/intel 124865-01 Linux On Nov 5, 2007 7:47 PM, John Maddock <john@johnmaddock.co.uk> wrote:
Does anyone know what would cause:
ld: fatal: relocation error: file: /scratch2/kbelco/boost/results/boost/bin.v2/libs/regex/build/sun-5.9/debug/link-static/threading-multi/libboost_regex-sw59-mt-d-1_35.a(posix_api.o) section: .rela.debug_info symbol: : relocation against a discarded symbol, ?symbol is part of discarded section: .text%void boost::re_detail::basic_regex_creator<char,boost::regex_traits<char,boost::cpp_regex_traits<char>
::create_startmap(boost::re_detail::re_syntax_base*,unsigned char*,unsigned*,unsigned char)
When trying to build (or use) the regex library on Solaris with Sun-5.9?
Annoyingly there are no problems with Sun-5.8, would there be any compiler or linker options that would help here?
Many thanks, John.
-- Simon Atanasyan

Simon Atanasyan wrote:
This bug seems to be fixed in the patch-01 for the Sun C++ 5.9. Without the patch the only known workaround is to do not use debug mode.
Patches for various platform can be found here: http://sunsolve.sun.com/show.do?target=patchpage
Enter following patch number to the "PatchFinder" and press "Find Patch" button. 124863-01 Solaris/sparc 124864-01 Solaris/intel 124865-01 Linux
OK thanks, John.

On Nov 12, 2007, at 6:53 AM, John Maddock wrote:
Simon Atanasyan wrote:
This bug seems to be fixed in the patch-01 for the Sun C++ 5.9. Without the patch the only known workaround is to do not use debug mode.
Patches for various platform can be found here: http://sunsolve.sun.com/show.do?target=patchpage
Enter following patch number to the "PatchFinder" and press "Find Patch" button. 124863-01 Solaris/sparc 124864-01 Solaris/intel 124865-01 Linux
OK thanks, John.
I've requested this patch be applied to our sun-5.9 installation. Thanks for the pointer Simon. -- Noel
participants (3)
-
John Maddock
-
K. Noel Belcourt
-
Simon Atanasyan