473,699 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 DbConnectionPar ams
# DbConnectionPar ams.pyc matches DbConnectionPar ams.py
import DbConnectionPar ams # precompiled from DbConnectionPar ams.pyc
shl_load _DbConnectionPa rams.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_THREA D -D_REENTRANT -D_THREAD_SAFE -Wl,+k
-Wl,+s -Wl,+n -Wl,-B,symbolic -o_DbConnectionP arams.sl
DbConnectionPar ams_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 1208

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

Similar topics

0
2013
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 Python windows FAQ I shouldn't have to make a seperate dll, see link below). I create a MyModule.i file for swig which contains a simple test c++ class. I run swig on it with the following options: swig -python -c++ -includeall -shadow MyModule.i,...
2
6763
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 Python 2.3.1 and GCC 3.2.3 (both installed by default with Slackware) and SWIG 1.3.19, compiled from source code. I messed around a little on my own and couldn't get things to work right, so I copied the examples from the book, nearly verbatim but...
3
1997
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 this works fine with the core python functionality, as soon as I run a script (on the embedded system) which tries to import modules which are not in the core system, like "xml" or "re", it fails and says it cannot find the related dll (for example...
0
1075
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 runs on the current module.py file before swig
2
4449
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 */ #include <time.h>
10
3199
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 spends quiet some time in functions like _swig_setattr_nondinamic, _swig_setattr, _swig_getattr.
0
1719
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 I Googled and tried to find some info on what I had to do.
3
3682
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 -IC:\python24\include " to create example_wrap.o But when I needed to compile the library file using:
2
3608
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 20070105 (Red Hat 4.1.1-52). I used following commands to build C++ extension: # swig -c++ -python edit_distance.i # c++ -c edit_distance.c edit_distance_wrap.cxx edit_distance.cpp -I.
0
8620
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9180
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8887
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7755
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3060
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2351
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.