Undefined Symbols "sys_nerr" And "sys_errlist[]" When Using -m64 Flag
(Doc ID 2737309.1)
Last updated on MAY 02, 2023
Applies to:
Oracle Solaris Studio - Version 12.2 and laterInformation in this document applies to any platform.
Symptoms
The following code:
#cat test.c
compiles successfully with the following command:
# <STUDIO_INSTALL_DIR>/bin/CC test.c
but adding the -m64 flag fails.
# <STUDIO_INSTALL_DIR>/bin/CC -m64 test.c
Undefined first referenced
symbol in file
sys_nerr test.o
sys_errlist test.o
ld: fatal: symbol referencing errors
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |