有人在RHEL上构建过omniORB吗

Has anyone ever built omniORB on RHEL?

本文关键字:omniORB 构建 RHEL      更新时间:2023-10-16

我正试图在RHEL 5.5上构建omniORB库。

我试着用运行配置

CC=gcc,CXX=g++,PYTHON=bin/ommypthon

我遇到了这个问题,它抱怨

gmake[3]: Entering directory `/home/local/NT/jayanthv/omniORB-4.1.4/src/lib/omniORB'
../../../bin/omniidl -bcxx -p../../../src/lib/omniORB -Wbdebug -Wba -p../../../src/lib/omniORB -Wbdebug -v -ComniORB4 ../../../idl/Naming.idl

omniidl: ERROR!
omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory /home/local/NT/jayanthv/omniORB-4.1.4/lib
omniidl: (or set the PYTHONPATH environment variable)
omniidl: (The error was '/home/local/NT/jayanthv/omniORB-4.1.4/lib/_omniidlmodule.so: wrong ELF class: ELFCLASS64')

因此,我尝试使用英特尔C++编译器,使用

export CXX=/opt/intel/Compiler/11.1/080/bin/ia32/icc
export LD_LIBRARY_PATH=/opt/intel/Compiler/11.1/080/lib/ia32
export PYTHON=/home/local/NT/jayanthv/omniORB-4.1.4/bin/omnipython

但是,现在它抱怨../../../bin/ominidl-bcxx-p./..//src/lib/omniORB-Wbdebug-Wba-p./..//src/lib/omniORB-Wbdebug-v-ComniORB4./..//idl/Naming.idl

omniidl: ERROR!
omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory /home/local/NT/jayanthv/omniORB-4.1.4/lib
omniidl: (or set the PYTHONPATH environment variable)
omniidl: (The error was '/home/local/NT/jayanthv/omniORB-4.1.4/lib/_omniidlmodule.so: undefined symbol: __cxa_pure_virtual')

操作系统是具有x86_64体系结构的RHEL 5.5,我正在尝试构建32位二进制文件。如果能深入了解这个问题,我将不胜感激。

这是因为omnidl是作为Python扩展模块实现的。您正在使用的Python可执行文件是一个64位可执行文件,因此它无法加载32位库。

看看这个http://objectmix.com/object/196129-compiling-omniorb-32bits-libraries-64bits-machine-suse.html

我终于找到了在Linux上使用英特尔编译器构建omniORB的神奇组合。

您可以看到它在哪里抱怨找不到'__cxa_pure_virtual',这发生在gcc下,因为它找不到名为libstdc++的lib

因此,根据您使用的编译器来设置CC="icc -lstdc++"CC="gcc -lstdc++"。对CXX执行相同操作(如果使用g++,请在g++处指定)

对于Python,我使用了omnipython,它是一个python1.5,PYTHON=bin/omnipython

这意味着它相对于omniORB根路径进行查找。

您可以看到它在哪里抱怨"错误的ELF类:ELFCLASS64",这是因为您试图使用64位链接器链接32位二进制文件。

因此,强制编译器和链接器标志为32。

CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32

完成后,运行配置

./configure --prefix=/opt/omniInst --build=i686-pc-linux-gnu

运行gmake,然后运行gmake-install,您将看到omniInst或您建议的任何前缀目录下的所有二进制文件和lib。