음.. 것두 수정했거든여.. 그래도 안되서.. 그럽니다..
에러는 .....
[oracle@localhost proc]$ make -f /home/oracle/816/precomp/demo/proc/demo_proc.mk OBJS=sample1.o EXE=sample1 build
cc -o sample1 sample1.o -L/home/oracle/816/lib/ -lclntsh `cat /home/oracle/816/lib/sysliblist` -ldl -lm
sample1.o: In function `main':
sample1.o(.text+0x67b): the `gets' function is dangerous and should not be used.
/usr/i386-glibc-2.1-linux/i386-glibc21-linux/bin/ld: warning: libwtc8.so, needed by /home/oracle/816/lib//libclntsh.so,
not found (try using -rpath or -rpath-link) /home/oracle/816/lib//libclntsh.so: undefined reference to `wtcstu'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtclkm'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtcsrin'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtcMerr'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtcsrin0'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtcLerr'
collect2: ld returned 1 exit status
make: *** [build] Error 1
라고 나옵니다.
현재 제 상태는..
cc 컴파일러는.. glibc 1.1.2 버젼을 설치하고 링크를 걸어서 다음과 같고..
/usr/bin/gcc -> /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc
/usr/bin/ld -> /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld
/usr/bin/cc -> gcc
.bash_profile 에서는..
LD_LIBRARY_PATH=/home/oracle/816/lib:/usr/lib:/lib
$ORACLE_HOME/precomp/admin/pcscfg.cfg 에서는..
sys_include=($ORACLE_HOME/precomp/public,/usr/i386-glibc-2.1-linux/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/include/,
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include,/usr/include) include=($ORACLE_HOME/precomp/public)
include=$ORACLE_HOME/precomp/hdrs
include=$ORACLE_HOME/tpcc2x_2/src
include=$ORACLE_HOME/precomp/include
include=$ORACLE_HOME/oracore/include
include=$ORACLE_HOME/oracore/public
include=$ORACLE_HOME/rdbms/include
include=$ORACLE_HOME/rdbms/public
include=$ORACLE_HOME/rdbms/demo
include=$ORACLE_HOME/nlsrtl/include
include=$ORACLE_HOME/nlsrtl/public
include=$ORACLE_HOME/network_src/include
include=$ORACLE_HOME/network_src/public
include=$ORACLE_HOME/network/include
include=$ORACLE_HOME/network/public
include=$ORACLE_HOME/plsql/public
ltype=short
로 해놨습니다.
혹시 아시면 좀 갈쳐주세요.. 부탁드립니다.
: 6.2 호환 패키지를 선택하셨다면 egcs 1.1.2는 이미 설치되어 있을겁니다.
:
: $ORACLE_HOME/precomp/admin 디렉토리에 보면 pcscfg.cfg 파일이 있을텐데
: 8.1.x 버젼의 경우 아마 빈 파일일 겁니다. 거기에다
:
: sys_include=(디렉토리,디렉토리, ... )
:
: 와 같이 include 파일이 있는 디렉토리를 컴마로 구분해서 주욱 써주시면 되
: 는데 이 디렉토리를 찾는게 문제죠. midnight 커맨더로 stdarg.h 파일(또는
: 비슷한것)을 검색하면 여러개가 검색될텐데, 발견된 디렉토리중 egcs 어쩌
: 구 하는 디렉토리와 /usr/include 이렇게 두개만 지정해 주면 될것 같네요.
: egcs쪽 디렉토리를 정확히 지정하지 않으면 프리컴파일 하다가 헤더 파일쪽
: 에서 에러가 날 겁니다만, C 컴파일러의 버젼문제라기 보다는 PRO*C와 리눅
: 스의 C 컴파일러용 헤더파일과의 호환성 문제랄까요.
:
: 개인적인 생각이지만, 지금 오라클쪽은 PRO*C 등의 프리컴파일러보다는
: Java 등의 다른 플랫폼에 신경을 더 쓰는것 같네요.
: :
: : 전 지금 wowlinux 7.1에 오라클 8.1.6 을 설치하고 있습니다.
: : 그런데.. 오라클에서 사용하는 gcc 버젼과 7.1 의 버젼이 맞지 않아서
: : Pro*c 컴파일을 못하고 있습니다..
: :
: : 여기저기 찾아보니..
: : gcc-2.96 을 rpm -e 로 다 지우고..
: : egcs-1.1.2 를 설치하라고 하더군요.
: :
: : 저는...
: : rpm -e gcc-g++-2.96-81
: : rpm -e gcc-gtt-2.96-81
: : rpm -e gcc-2.96-81 으로 다 지우고..
: :
: : rpm -Uvh egcs-1.1.2-30.src.rpm 을 설치하려했습니다..
: : ###################################[100%] 라고 나오더군요..
: :
: : 그런데.. rpm -qi 를 해보니.. not installed 라고 하네요..
: : 쩝.. 뭐가 잘못된건지.. 누구 아시는 분 계시면 부탁드립니다..
: :
: : 다른 글들도 많이 봤는데.. 잘 이해가 안갑니다.. 흑흑..
: :
: : 지발~~~
: :
: : --
: : 우상희--우상희