Operating System - HP-UX
1833704 Members
3193 Online
110062 Solutions
New Discussion

about set the env for Pro*C

 
timtim4
Occasional Contributor

about set the env for Pro*C

I installed oracle9i and set the env for Pro*C.
But I met the error when I compile the C program.
The error is "Linking TEST ...
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (test_db.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: /oracle/lib/libclient9.a: Not a valid library (invalid magic number). Possibly a 64-bit PA archive library (Mismatched ABI)."
I don't know what it means and how to resolve it. If you know it please tell me.
Thank you very much.

best regards
PEI
2 REPLIES 2
Sukant Naik
Trusted Contributor

Re: about set the env for Pro*C


What is your SHLIB_PATH env variable set to?

Looks like the SHLIB_PATH variable is a problem.

-Sukant
Who dares he wins
timtim4
Occasional Contributor

Re: about set the env for Pro*C

Sorry ,My Machine is UNIX 11.0 .
I set the SHLIB_PATH like this
"COLUMNS=100
EDITOR=vi
ERASE=^H
HOME=/oracle
LANG=ja_JP.SJIS
LC_ALL=ja_JP.SJIS
LINES=54
LOGNAME=oracle
MAIL=/var/mail/oracle
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share/man/%L:/
opt/pd/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/audi
o/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/cxperf/share/man:/opt/imake/man:/opt/networker/man
NLS_LANG=Japanese_Japan.JA16SJIS
ORACLE_BASE=/oracle
ORACLE_HOME=/oracle
ORACLE_SID=MC1T
PATH=/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/pd/bin:/opt/egb/bin:bin:/op
t/hparray/bin:/opt/vje/bin:/opt/cxperf/bin:/opt/langtools/bin:/opt/imake/bin:/opt/networker/bin:.:/oracle/bin:/oracle
PWD=/SYOKI_TST
SHELL=/usr/bin/sh
SHLIB_PATH=/usr/lib
SH_LIB
TERM=ansi
TZ=JST-9"

but the same error was out. Can you give more advices? Thanks

best regards.
PEI