RM文件配置for Informix 7.2.3 - Tuxedo (Chinese)

#the RM is good for informix 723
INFORMIX-OnLine:infx_xa_switch: -lixsql -lixasf -lixgen -lixos -lixgls -lnsl_s -lcrypt_i -lsocket -lm -lsuds -lx /informix/informix/lib/esql/checkapi.o 



Error Compiling php 5.1.6 with Oracle Instant Client on Fedora 5

I have Oracle 10.1.0 enterprise database installed on a Windows 2003 server.
I have another machine that has Fedora Core 5 installed on it. I downloaded:
Apache 2.2.3
Php 5.1.6
OracleInstantClient (base and skdk packages) from technet.oracle.com
I created a directory called /usr/lib/instantclient10_1 in which I unzipped
the files for the Oracle Instant Client and the SDK into /usr/lib/instantclient10_1.
So inside /usr/lib/instantclient10_1 I have:
all the unzipped filed from the base for the instant client as well as
a directory called sdk with files inside this subdirectory.
I compiled and installed Apache.
I then tried to configure php using the instantclient with the configure option
The first time I did this I got the error: "link from
/usr/lib/instantclient10_1/libclntsh.so to libclntsh.so.10
not found"
Well I had the libclntsh.so.10 but no such link. So I did the following:
ln -s libclntsh.so.10.1 libclntsh.so
I assume this was OK to do but I found it strange that I had to do this.
Question #1 - why should I have to do this?
I then tried to configure php again but got an error that I paste in from
the debug.log. From this debug log you can see the configure options I gave for
php as well as the error. It says "cannot find -lirc". Now I did put into
/etc/ld.so.conf the line /usr/lib/gaim since that is where libirc.so is and ran
ldconfig but it still complained. When I copied libirc.so into /usr/lib it then said there were
lots of errors in that libirc.so. The only item in the configure options depending on lirc is
the with-oci8.  Why does with-oci8 depend on lirc?
I also tried the above on Red Hat AS 4.0 and got the same errors.
Question #2 -- what do I do?
Thank You
Gail Lange
Here is the debug.log in the case when libirc.so is just in /usr/lib/gaim:
CONFIGURE: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-track-vars'
'--enable-inline-optimization' '--with-gd' '--with-zlib' '--enable-debug'
'--with-oci8=instantclient,/usr/lib/instantclient10_1' '--enable-sigchild'
CC: gcc
CFLAGS: -I/usr/include -g -O2
INCLUDES: -I/usr/include/libxml2 -I/home/gail/php/php-5.1.6/ext/date/lib
LDFLAGS: -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1 -L/usr/lib/instantclient10_1
LIBS: -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -ldl -lm -lnsl
-lirc -lclntsh -lxml2 -lz -lm
SAPI: apache2handler
PHP_RPATHS: /usr/lib/instantclient10_1
uname -a: Linux localhost.localdomain 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006
i686 i686 i386 GNU/Linux
gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1
-L/usr/lib/instantclient10_1 conftest.c -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm
-lxml2 -lz -lm -ldl -lm -lnsl -lirc -lclntsh -lxml2 -lz -lm 1>&5
conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in function 'exit'
/usr/bin/ld: cannot find -lirc
collect2: ld returned 1 exit status
Question #1 - why should I have to do this?I had to do this with Instantclient 10.1 also. No biggie, it works, it's just a little weird during setup.
Question #2 -- what do I do?libirc.so is not the same as a -lirc flag. Oracle doesn't depend on gAIM :)
What you should do is to make sure that you undo the changes you made to your /etc/ directory, and make sure you have /usr/lib/instantclient10_1/lib in your LD_LIBRARY_PATH. Then try it again.
I will try that tomorrow. Actually I thought I had tried that - namely adding to /etc/ld.so.conf just the /usr/lib/instantclient10_1
and got that link error for lirc
Only then did I add to ld.so.conf the /usr/lib/gaim path.
I do have one question now: What is it referring to when it says it cannot find -lirc?
(i.e., what is the -lirc flag?)
To be perfectly honest, I'm not sure. Everything I could find on it had to do with IRC or some kind of remote control thing (for controlling audio/media players). Maybe if Ivan stops by he'll know what it means... he knows quite a lot about the inner workings of many of these libraries.
http://us3.php.net/install.unix was the most useful info I could find.
There's also this thread:
Cannot find ld -lirc PHP Linux
Cannot find ld -lirc PHP LinuxThis is one solution...
Other solution is to use instant client 10gR2 instead of 10gR1... 
Hi Jer
Thank you! Removing the -lirc worked!! I really appreciate your advice.

help, pro*c and gcc, compile correct, but buildserver errror

[oracle#Tux10M simpapp]$ buildserver -f fetch.c -o fetch -s FETCH
fetch.c:147:20: sqlcpr.h: No such file or directory
CMDTUX_CAT:1832: ERROR: can't execute cc -m32 -I$TUXDIR/include -o fetch BS-5366.c -L${TUXDIR}/lib fetch.c -ltux -lbuft -lfml -lfml32 -lengine -ldl -lpthread
[oracle#Tux10M simpapp]$

Oracle 8.1.7 Solaris 2.6 Install error

I'm trying to install 8.1.7 on a Solaris 2.6 box (10K domain, with all patches installed according to readme file). The install of the client part works great, but when I go and install the server I get an error saying that make of /opt/oracle/8.1.7/rdbms/lib/ins_rdbms.mk has failed.
When looking in the install/make.log I get the following error:
make: Fatal error: Command failed for target `/opt/oracle/8.1.7/rdbms/lib/hsodbc'
/usr/ccs/bin/make -f ins_rdbms.mk ihsodbc ORACLE_HOME=/opt/oracle/8.1.7
- Linking hsodbc agent
rm -f /opt/oracle/8.1.7/rdbms/lib/hsodbc
/usr/ccs/bin/ld -o /opt/oracle/8.1.7/rdbms/lib/hsodbc -L/opt/oracle/8.1.7/rdbms/lib/ -L/opt/oracle/8.1.7/lib/ -dy /opt/oracle/8.1.7/lib/SC4.2/crti.o /opt/oracle/8.1.7/lib/SC4.2/crt1.o /opt/oracle/8.1.7/lib/SC4.2/crtn.o /opt/oracle/8.1.7/hs/lib/hsodbc.o /opt/oracle/8.1.7/rdbms/lib/defopt.o /opt/oracle/8.1.7/rdbms/lib/homts.o /opt/oracle/8.1.7/rdbms/lib/ssdbaed.o -L/opt/oracle/8.1.7/hs/lib/ -lnavhoa -lnavshr -lnvbaseshr -lagtsh -lpls8 -lplp8 -lthread -lclntsh -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `cat /opt/oracle/8.1.7/lib/sysliblist` `if [ -f /usr/lib/libsched.so ] ; then echo -lsched ; else true; fi` -R /opt/SUNWcluster/lib:/opt/oracle/8.1.7/lib -Y P,:/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib -Qy -lc -laio -lposix4 -lkstat -lm
ld: warning: symbol `nnfgtable' has differing sizes:
(file /opt/oracle/8.1.7/lib//libagtsh.so value=0x70; file /opt/oracle/8.1.7/lib//libclntsh.so value=0x50);
/opt/oracle/8.1.7/lib//libagtsh.so definition taken
Undefined first referenced
symbol in file
nnfyboot /opt/oracle/8.1.7/lib//libagtsh.so
ld: fatal: Symbol referencing errors. No output written to /opt/oracle/8.1.7/rdbms/lib/hsodbc
*** Error code 1
make: Fatal error: Command failed for target `/opt/oracle/8.1.7/rdbms/lib/hsodbc
Any ideas?

About OCCI in CC/gcc

compile an OCCI program using CC under Solaris is OK.
CC -o main main.cpp src1.cpp src2.cpp -lpthread -lrt -lnsl -locci -lclntsh -I/export/home/oracle/rdbms/demo -I/export/home/oracle/rdbms/public -L/export/home/oracle/lib -L/usr/local/lib
But using gcc under Solaris :
未定义 文件中的
符号 在文件中
std::ios_base::Init::~Init [in-charge]()/var/tmp//ccTBAkoI.o
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Hcompare6kMIIpkcI_i_ /export/home/oracle/lib/libocci.so
c::c(N6, (int0_t)) /export/home/oracle/lib/libocci.so
oracle::occi::SQLException::getErrorCode() const/var/tmp//ccW2yUcB.o
... ...
ld: 致命的: 符号参照错误. 没有输出被写入main

problem to install DBD-Oracle-1.15

when I execute perl makefile.pl I 've this message :
Configuring DBD::Oracle ...
Remember to actually READ the README file!Especially if you have any problems.
Using Oracle in /soft/oracle/9.2.0
Oracle version 9.2.0 (9.200)
Found /soft/oracle/9.2.0/precomp/demo/proc/demo_proc.mk
Using /soft/oracle/9.2.0/precomp/demo/proc/demo_proc.mk
Reading /soft/oracle/9.2.0/precomp/demo/proc/demo_proc.mk
Reading /soft/oracle/9.2.0/precomp/lib/env_precomp.mk
Deleting ORA_NLS = $(ORACLE_HOME)/ocommon/nls/admin/data/
because it is not already set in the environment
and it can cause ORA-01019 errors.
Deleting ORA_NLS33 = $(ORACLE_HOME)/ocommon/nls/admin/data/
because it is not already set in the environment
and it can cause ORA-01019 errors.
Attempting to discover Oracle OCI build rules
gcc -c -I. -I/soft/oracle/9.2.0/precomp/public -I/soft/oracle/9.2.0/rdbms/public -I/soft/oracle/9.2.0/rdbms/demo -I/soft/oracle/9.2.0/plsql/public -I/soft/oracle/9.2.0/network/public -I/soft/oracle/9.2.0/rdbms/demo -I/soft/oracle/9.2.0/rdbms/demo -I/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE -DUTF8_SUPPORT DBD_ORA_OBJ.c
by executing: [make -f /soft/oracle/9.2.0/precomp/demo/proc/demo_proc.mk build ECHODO=echo ECHO=echo GENCLNTSH='echo genclntsh' CC=echo OPTIMIZE= CCFLAGS= EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o]
Oracle oci build command:
[-o DBD_ORA_EXE DBD_ORA_OBJ.o -L/soft/oracle/9.2.0/lib/ -lclntsh -lnbeq9 -lnhost9 -lnus9 -lnldap9 -lldapclnt9 -lnsslb9 -lnoname9 -lntcp9 -lntcps9 -lnsslb9 -lntcp9 -lntns9 -ldl -lm -lpthread -lnsl -ldl -lm]
Found header files in rdbms/demo.
I can't find the header files I need in your Oracle installation.
You probably need to install some more Oracle components.
I'll keep going, but the compile will probably fail.
See README.clients for more information.
Checking for functioning wait.ph
System: perl5.006001 linux daffy.perf.redhat.com 2.4.17-0.13smp #1 smp fri feb 1 10:30:48 est 2002 i686 unknown
Compiler: gcc -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -I/usr/local/include
Linker: /usr/bin/ld
Sysliblist: -ldl -lm -lpthread -lnsl
Oracle makefiles would have used these definitions but we override them:
CC: cc
[$(GFLAG) -O3 $(CDEBUG) -trigraphs -fPIC -DPRECOMP -I. -I/soft/oracle/9.2.0/precomp/public -I/soft/oracle/9.2.0/rdbms/public -I/soft/oracle/9.2.0/rdbms/demo -I/soft/oracle/9.2.0/plsql/public -I/soft/oracle/9.2.0/network/public -DLINUX -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS $(LPFLAGS) $(USRFLAGS)]
[-o $# -L/soft/oracle/9.2.0/precomp/lib/ -L$(LIBHOME) -L$(LIBHOME)stubs/]
Linking with OTHERLDFLAGS = -L/soft/oracle/9.2.0/lib/ -lclntsh -lnbeq9 -lnhost9 -lnus9 -lnldap9 -lldapclnt9 -lnsslb9 -lnoname9 -lntcp9 -lntcps9 -lnsslb9 -lntcp9 -lntns9 -ldl -lm -lpthread -lnsl -ldl -lm [from 'build' rule]
Warning: If you have problems you may need to rebuild perl with threading enabled.
Using DBD::Oracle 1.15.
Using DBI 1.40 (for perl 5.006001 on i386-linux) installed in /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help files.
(Of course, you have read README by now anyway, haven't you?)
and when I execute make I've the error :
/bin/sh -c true
/bin/sh -c true
gcc -c -I. -I/soft/oracle/9.2.0/precomp/public -I/soft/oracle/9.2.0/rdbms/public -I/soft/oracle/9.2.0/rdbms/demo -I/soft/oracle/9.2.0/plsql/public -I/soft/oracle/9.2.0/network/public -I/soft/oracle/9.2.0/rdbms/demo -I/soft/oracle/9.2.0/rdbms/demo -I/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE -DUTF8_SUPPORT Oracle.c
In file included from Oracle.h:20,
from Oracle.xs:1:
dbdimp.h:44:20: ocidfn.h: No such file or directory
dbdimp.h:57:21: ociapr.h: No such file or directory
make: *** [Oracle.o] Error 1
what is the problem ?
64bit Oracle server or 32bit?
Did you use 32bit or 64 bit Perl libs?
Check for those.
If you have 64bit Oracle, 32bit libs are under $ORACLE_HOME/lib32 instead of $O_H/lib/
There may be some missing headers under lib32. I can't remember on top of my head but you can copy over some of the header files from lib. Hope this helps. 
Make sure that oci gets installed with the client / server you are linking against -- this is what DBD is wanting to use. Also make sure that you read the README. The files that you are missing are located in $ORACLE_HOME/rdbms/demo/ Which gets installed with oci developer stuff.