LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: fox

关于oracle,讨论讨论。

[复制链接]
发表于 2003-5-10 22:20:03 | 显示全部楼层
呵呵,这些太高深了,不了解。只能找找archive里面的说法了。
 楼主| 发表于 2003-5-10 23:29:24 | 显示全部楼层
还是不行。。。。。。。。。。。。。。。。。。。。

/usr/bin/make -f ins_oemagent.mk install ORACLE_HOME=/usr/oracle
chmod 755 /usr/oracle/bin
if [ linux = aix ]; then \
    gcc  -L/usr/oracle/lib/ -L/usr/oracle/rdbms/lib -L/usr/oracle/network/lib -Wno-deprecated -Wl --allow-shlib-undefined
-L/usr/oracle/lib/ -L/usr/oracle/rdbms/lib -L/usr/oracle/network/lib -Wno-deprecated -Wl --allow-shlib-undefined   -o dbsnmp
/usr/oracle/network/lib/s0nmi.o  -lvppdc /usr/oracle/network/lib/libvps.a \
/usr/oracle/network/lib/libnmi.a \
        /usr/oracle/network/lib/libnmd.a /usr/oracle/network/lib/libnms.a /usr/oracle/network/lib/libnmt.a /usr/oracle/network/lib/libnml.a \
        /usr/oracle/network/lib/libnmi.a /usr/oracle/network/lib/libnmsp.a /usr/oracle/network/lib/libpeer.a /usr/oracle/network/lib/libtcl.a \
        -lclntsh /usr/oracle/rdbms/lib/defopt.o -lclient9 \
        -ltrace9 -lclntsh  `cat /usr/oracle/lib/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat /usr/oracle/lib/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lclient9  -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -lwtc9 -lmm
-lnls9  -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 `cat /usr/oracle/lib/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat /usr/oracle/lib/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lclient9  -lvsn9 -lwtc9 -lcommon9 -lgeneric9  -ltrace9 -lnls9  -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 -lclient9  -lvsn9
-lwtc9 -lcommon9 -lgeneric9 -lnls9  -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9   `cat /usr/oracle/lib/sysliblist` -Wl,-rpath,/usr/oracle/lib:/lib:/usr/lib -lm    `cat /usr/oracle/lib/sysliblist` -ldl -lm    -lcrypt -lm \
-Wno-deprecated -Wl --allow-shlib-undefined; \
else \
    gcc  -L/usr/oracle/lib/ -L/usr/oracle/rdbms/lib -L/usr/oracle/network/lib -Wno-deprecated -Wl --allow-shlib-undefined
-L/usr/oracle/lib/ -L/usr/oracle/rdbms/lib -L/usr/oracle/network/lib -Wno-deprecated -Wl --allow-shlib-undefined   -o dbsnmp
/usr/oracle/network/lib/s0nmi.o  -lvppdc /usr/oracle/network/lib/libvps.a \
/usr/oracle/network/lib/libnmi.a \
        /usr/oracle/network/lib/libnmd.a /usr/oracle/network/lib/libnms.a /usr/oracle/network/lib/libnmt.a /usr/oracle/network/lib/libnml.a \
        /usr/oracle/network/lib/libnmi.a /usr/oracle/network/lib/libnmsp.a /usr/oracle/network/lib/libpeer.a /usr/oracle/network/lib/libtcl.a \
        -lclntsh /usr/oracle/rdbms/lib/defopt.o -lclient9 \
        -ltrace9 -lclntsh  `cat /usr/oracle/lib/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat /usr/oracle/lib/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lclient9  -lvsn9 -lwtc9 -lcommon9 -lgeneric9 -lwtc9 -lmm
-lnls9  -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 `cat /usr/oracle/lib/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lnro9 `cat /usr/oracle/lib/ldflags`    -lnsslb9 -lncrypt9 -lnsgr9 -lnzjs9 -ln9 -lnl9 -lclient9  -lvsn9 -lwtc9 -lcommon9 -lgeneric9  -ltrace9 -lnls9  -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9 -lclient9  -lvsn9
-lwtc9 -lcommon9 -lgeneric9 -lnls9  -lcore9 -lnls9 -lcore9 -lnls9 -lxml9 -lcore9 -lunls9 -lnls9   `cat /usr/oracle/lib/sysliblist` -Wl,-rpath,/usr/oracle/lib:/lib:/usr/lib -lm    `cat /usr/oracle/lib/sysliblist` -ldl -lm    -lcrypt -lm \
-Wno-deprecated -Wl --allow-shlib-undefined; \
fi
/usr/oracle/network/lib/libnmi.a(snmite.o): In function `snmitetn_tempName':
snmite.o(.text+0x15db): the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/oracle/network/lib/libnmi.a(nmijs.o): In function `nmijsgn_GetNextTime':
nmijs.o(.text+0x3552): undefined reference to `__ctype_b'
nmijs.o(.text+0x3565): undefined reference to `__ctype_toupper'
/usr/oracle/network/lib/libnmi.a(nmijs.o): In function `nmijsupper':
nmijs.o(.text+0x4e9a): undefined reference to `__ctype_b'
nmijs.o(.text+0x4ead): undefined reference to `__ctype_toupper'
/usr/oracle/network/lib/libnmi.a(snmifork.o): In function `snmifon2p_NameToPathname':
snmifork.o(.text+0x152): undefined reference to `__ctype_b'
/usr/oracle/network/lib/libnmi.a(nmis.o): In function `nmissf_StreamFileIO':
nmis.o(.text+0x132): undefined reference to `__ctype_toupper'
nmis.o(.text+0x212): undefined reference to `__ctype_toupper'
/usr/oracle/network/lib/libnmi.a(snmitcl.o): In function `get_ora_ctx_handle':
snmitcl.o(.text+0x10e): undefined reference to `__ctype_b'
/usr/oracle/network/lib/libnmi.a(snmitcl.o): In function `get_ora_stmt_handle':
snmitcl.o(.text+0x1f3): undefined reference to `__ctype_b'
/usr/oracle/network/lib/libnmi.a(snmitcl.o): In function `OraProcess_Oid':
snmitcl.o(.text+0xe90): undefined reference to `__ctype_b'
snmitcl.o(.text+0xfe8): undefined reference to `__ctype_b'
snmitcl.o(.text+0x1075): undefined reference to `__ctype_b'
/usr/oracle/network/lib/libnmi.a(snmitcl.o)(.text+0x1418): more undefined references to `__ctype_b' follow
/usr/oracle/network/lib/libnmi.a(snmitcl.o): In function `Oratcl_Startup':
snmitcl.o(.text+0x8475): undefined reference to `__ctype_toupper'
snmitcl.o(.text+0x8599): undefined reference to `__ctype_toupper'
/usr/oracle/network/lib/libnmi.a(snmitcl.o): In function `Oratcl_Shutdown':
snmitcl.o(.text+0x8ee2): undefined reference to `__ctype_toupper'
snmitcl.o(.text+0x9042): undefined reference to `__ctype_toupper'
/usr/oracle/network/lib/libnmi.a(snmitcl.o): In function `Oratcl_Snmp':
snmitcl.o(.text+0x96e5): undefined reference to `__ctype_toupper'
/usr/oracle/network/lib/libnmi.a(snmitcl.o)(.text+0xbdf3): more undefined references to `__ctype_toupper' follow
/usr/oracle/network/lib/libnmi.a(snmitcln.o): In function `get_msg_id':
snmitcln.o(.text+0xba): undefined reference to `__ctype_b'
/usr/oracle/network/lib/libnmi.a(snmitcln.o): In function `Nls_FormatCmd':
snmitcln.o(.text+0x823): undefined reference to `__ctype_b'
snmitcln.o(.text+0x927): undefined reference to `__ctype_b'
snmitcln.o(.text+0xa4e): undefined reference to `__ctype_b'
/usr/oracle/network/lib/libnmi.a(snmitcln.o): In function `Nls_ScanCmd':
snmitcln.o(.text+0x159d): undefined reference to `__ctype_b'
/usr/oracle/network/lib/libnmi.a(snmitcln.o)(.text+0x1603): more undefined references to `__ctype_b' follow
collect2: ld returned 1 exit status
make: *** [dbsnmp] Error 1
发表于 2003-5-11 00:10:39 | 显示全部楼层
你干脆把CFLAGS指定为"-w",这个参数禁止所有的警告。
 楼主| 发表于 2003-5-11 01:50:34 | 显示全部楼层
试了,也不行。


也没法连接到次要的glibc-2.2.5上。
发表于 2003-5-11 02:51:46 | 显示全部楼层
上面换CFLAGS都不是让你连接到glibc-2.2.5上的,而是用glibc-2.3.x。
因为这个错误只是在编译的时候出现,而在编译好了以后就没有了。具体来说,在编译glibc-2.3.x时,应该加上--enable-oldese-api=2.2.0,那篇帖子里说了,还是看看吧。
 楼主| 发表于 2003-5-13 00:33:04 | 显示全部楼层
那篇贴子的做法我没成功。可能是我没看懂吧。

我已经成功的连接到glibc2.2.5上。数据库应该没问题,只是配置工具都用不了,用了ibm的jre。

郁闷中。。。java是一次编译到处运行还是一次编译到处调试!
发表于 2003-5-13 00:47:19 | 显示全部楼层
java……有点头痛。
一个java的编辑器,也要消耗几十M内存。
 楼主| 发表于 2003-5-13 19:07:05 | 显示全部楼层
找到这个
http://lists.debian.org/debian-g ... 00210/msg00093.html

If you want to hack your glibc 2.3 build to work around the problem, here
is how to do it: Remove the "compat_symbol" lines from ctype/ctype-info.c
and recompile libc.  This makes those symbols be exported again and that
removes the only cases of this combination of symbols and relocations that
the old dynamic linker code doesn't handle.  It means that link-time
references against those symbols will resolve happily in your libc.so
binary, which is exactly what we don't want for these obsolete symbols.
So this workaround won't go into glibc, but you can use it yourself.  The
Red Hat Linux 8.0 version of glibc (which is otherwise not much modified
from glibc 2.2) has this very workaround, not for the problem of old
static binaries that you are having, but to support old static libraries
(i.e. .a files lying around) that otherwise would have been broken very
late in the Beta test cycle.  Other full-system distributions might make
that choice too, I don't know.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表