0

C++ code compilation with Oracle Studio Developer 12.5 in Redhat Linux 7.1 throws undefined reference to `__intel_cpu_feature_indicator_x' compilation error while linking oracle 19c library file.

/export/home/user1/Appl/exe/abc /opt/oracle/19.3.0/lib/libcore19.a(slarch.o): In function slarch_osd_init': slarch.c:(.text+0x2a3): undefined reference to __intel_cpu_feature_indicator_x' slarch.c:(.text+0x562): undefined reference to __intel_cpu_features_init_x' slarch.c:(.text+0x572): undefined reference to __intel_cpu_features_init_x' slarch.c:(.text+0x58a): undefined reference to __intel_cpu_features_init_x' slarch.c:(.text+0x5a1): undefined reference to __intel_cpu_features_init_x' slarch.c:(.text+0x5b8): undefined reference to __intel_cpu_features_init_x' /opt/oracle/19.3.0/lib/libcore12.a(slarch.o):slarch.c:(.text+0x5cf): more undefined references to __intel_cpu_features_init_x' follow make[1]: *** [/export/home/user1/Appl/exe/abc] Error 2 make[1]: Leaving directory `/export/home/user1/Appl/source' make: *** [lifecad] Error 2

Compilation in Sun Solaris 5.1 is successful with Oracle Studio developer. But, not on Redhat Enterprise Linux 7.1 platform.

Has anyone faced such issues with oracle library files in Redhat Linux platform?

If yes, please advise how you managed to resolve it?

sepp2k
  • 353,842
  • 52
  • 662
  • 667
  • Modified the library options in the make files as follows: In inc_Linux.mk, modified the compiler system library options as (similar to Oacle demo make files) SYSLIBOPT=-L${SYSLIBDIR} -ldl -lm -lpthread -m64 Also, modified inc_Oracle.mk with DBMS library options as follows: DBMSLIBOPT=-L${ORACLE_HOME}/lib -L${ORACLE_HOME}/rdbms/lib -L/lib64 -lclntsh -lnsgr19 -lnzjs19 -ln19 -lnl19 -lnro19 -lclient19 -lvsn19 -lcommon19 -lmm -lnls19 -lclntshcore -lcore19 I was able to compile successfully. – Subalakshmi R Sep 24 '21 at 14:46

0 Answers0