473,394 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

SWIG, C++ and extension modules problem

Hi,
This might be slightly off topic and but i am hoping someone here can
help.
I am trying to build a python wrapper for some C++ classes that access
oracle.
when i try loading the module i get the following errors

Python 2.4.2 (#1, Nov 9 2005, 09:37:25) [C] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>import DbConnectionParams
# DbConnectionParams.pyc matches DbConnectionParams.py
import DbConnectionParams # precompiled from DbConnectionParams.pyc
shl_load _DbConnectionParams.sl
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol 'kpggwcx_' in load
module '/oravl01/oracle/9.2.0.6/lib/libwtc9.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'LhtStrSearch' in load
module '/oravl01/oracle/9.2.0.6/lib/libwtc9.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'kpggGetPG' in load
module '/oravl01/oracle/9.2.0.6/lib/libwtc9.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'LhtStrInsert' in load
module '/oravl01/oracle/9.2.0.6/lib/libwtc9.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'kpuhhalo' in load
module '/oravl01/oracle/9.2.0.6/lib/libwtc9.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'kpuhhfre' in load
module '/oravl01/oracle/9.2.0.6/lib/libwtc9.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'LhtStrCreate' in load
module '/oravl01/oracle/9.2.0.6/lib/libwtc9.sl'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'kpugdr' in load
module '/oravl01/oracle/9.2.0.6/lib/libwtc9.sl'.

doing "ldd -r" on that module does not show any undefined symbols in
the oracle libraries.

Platform - HP-UX B.11.11
Command to create the shared lib for extension module (sdklib is the
proprietary lib i am trying to wrap ) -
/opt/aCC/bin/aCC +DD64 -b -mt -AA -D__HPACC_THREAD_SAFE_RB_TREE
-DRWSTD_MUL\
TI_THREAD -DRW_MULTI_THREAD -D_REENTRANT -D_THREAD_SAFE -Wl,+k
-Wl,+s -Wl,+n -Wl,-B,symbolic -o_DbConnectionParams.sl
DbConnectionParams_wrap.o $(SDK_LIB_DIRS) -L$(ORACLE_HOME)/lib
-lsdklib /oravl01/oracle/9.2.0.6/precomp/lib/cobsqlintf.o
/oravl01/oracle/9.2.0.6/lib/libsql9.a -locci -lclntsh -lnsl
-L/usr/lib/pa20_64 -lstd_v2 -lCsup_v2
Any pointers will be appreciated,
Thanks,
Anuj.

Nov 1 '06 #1
0 1200

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jon Moldover | last post by:
Hi, I'm using Python in my win32 app by linking to the python23.dll. I'm trying to expose some c++ code in my app to Python so I can make application calls from Python scripts (according to the...
2
by: Chris Hodapp | last post by:
I have seen messages posted about this before, and there is a clear reference to it in the manual, but I have been unable to find a solution. I'm on Slackware 9.1, kernel 2.6.0-test11, using...
3
by: stefan | last post by:
Hi Folks, I currenty extended some of my C++ functionality to python and also embedded python to use python functionality in my C++ system (and use as well these extended functions). While...
0
by: timothy.williams | last post by:
Hi all. How do I tell distutils to run build_ext before build_py when I try to do a 'python setup.py build' ? I have a C extension using SWIG, and when I build with setup.py, build_py...
2
by: ajikoe | last post by:
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my python.h exist in bcc32.cfg. /* File : example.c...
10
by: Bart Ogryczak | last post by:
Hi, I´m looking for some benchmarks comparing SWIG generated modules with modules made directly with C/Python API. Just how much overhead does SWIG give? Doing profile of my code I see, that it...
0
by: Eric von Horst | last post by:
Hi, we have a third-party product that has a C++ api on HP-UX. I would like be able to use the API in Python (as I remember Python is good at doing this). I have no experience with this so...
3
by: Soren | last post by:
Hi, I went through the SWIG tutorial for the example named "simple". I managed to get to the first step, creating example_wrap.c using swig, and doing: "gcc -fpic -c example_wrap.c...
2
by: mk | last post by:
Hello, I'm having terrible problems building C++ extension to Python 2.4 using SWIG. I'd appreciate if somebody knowledgeable at the subject took a look at it. swig-1.3.29, g++ (GCC) 4.1.1...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.