My Oracle Support Banner

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 later
Information 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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.