LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: fox

关于oracle,讨论讨论。

[复制链接]
发表于 2003-5-10 01:02:06 | 显示全部楼层
你如果不用glibc2.2而是直接用glibc2.3,那应该也可以吧?运行的时候会怎么说?
发表于 2003-5-10 01:20:24 | 显示全部楼层
我不知道安装步骤是什么,但编译好的文件,共享库都是编好的.
redhat他们的glibc可能patch过.
 楼主| 发表于 2003-5-10 02:59:55 | 显示全部楼层
我在make.log里找到这些信息。

if [ linux = aix ]; then \
    gcc  -L/usr/oracle/lib/ -L/usr/oracle/rdbms/lib  -L/usr/oracle/network/lib    -L/usr/oracle/lib/ -L/usr/oracle/rdbms/lib
-L/usr/oracle/network/lib   -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; \
else \
    gcc  -L/usr/oracle/lib/ -L/usr/oracle/rdbms/lib  -L/usr/oracle/network/lib    -L/usr/oracle/lib/ -L/usr/oracle/rdbms/lib
-L/usr/oracle/network/lib   -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; \
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-10 03:14:31 | 显示全部楼层
错误对话框

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2003-5-10 03:20:15 | 显示全部楼层
完整的make.log

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2003-5-10 08:18:27 | 显示全部楼层
http://archive.linuxfromscratch. ... v/2003/02/0831.html
But more specifically, the issue is the fact that glibc-2.3 no longer
includes the __ctype_ operators (except when you enable the abi
compatibility) and the link editor complains when you try to relink
legacy (Oracle) apps. It doesn't appear to be a problem insofar as the
apps run, but the errors cause automated installs (like Oracle Installer
and ./configure) to fail. I can get around problems like this using such
nice flags as -Wno-deprecated and -Wl,--allow-shlib-undefined but as a
purist, I prefer to fix warnings rather than ignore them.
这里说了问题,也说了一个解决方法,你试试看?就是指定你的CFLAGS为上面的值.
发表于 2003-5-10 21:17:04 | 显示全部楼层
成了没有?
 楼主| 发表于 2003-5-10 21:49:44 | 显示全部楼层
我修改了makefile的CFLAGS,CXXFLAGS,LDFLAGS,不行。
加上--enable-oldest-abi=2.0,重新编译了glibc2.3.2,也不成。

如果能让makefile连接我的glibc2.2.5就好了。
发表于 2003-5-10 21:53:31 | 显示全部楼层
那上面的那个CFLAGS不管用?他也是在glibc-2.3上面装的啊。
 楼主| 发表于 2003-5-10 22:16:19 | 显示全部楼层
啊!

好像可以,我只改了env_oemagent.mk,其他没改,所以才会继续报错。

我恢复我的系统再试试。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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