Unix Technical Forum

Problem of C++ program in hp Unix

This is a discussion on Problem of C++ program in hp Unix within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi All I am working for porting across unix flavours. A shared library program using dlopen, dlsym etc worked ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 10:07 AM
chets
 
Posts: n/a
Default Problem of C++ program in hp Unix

Hi All
I am working for porting across unix flavours. A shared library
program using dlopen, dlsym etc worked on linux. But when I tried it on
hp Unix 64 bit; it did not work.

mytest.pcè pro c program whose shared library is required.
prog.cè c program in which I am calling function of mytest.pc(using
dlopen,dlsym etc)
Following is my build script for the programs.

proc iname=mytest.pc sqlcheck=full code=cpp user=ml/ml@base35db

aCC -g -c mytest.c -o mytest.o +DD64 -D_ARCH_PARISC -D_COMPILER_ACC
-D_BITS_64 +Z -I/oracle/precomp/public -I/oracle/rdbms/demo
-I/oracle/rdbms/public -L/oracle/lib /oracle/precomp/lib/cobsqlintf.o
-lclntsh `cat /oracle/lib/sysliblist` -lm

aCC +DD64 -b -o mytest.sl mytest.o -L/oracle/lib
/oracle/precomp/lib/cobsqlintf.o -lclntsh `cat /oracle/lib/sysliblist`
-lm

aCC +DD64 -g -o run prog.c -lpthread

It compiled correctly but gave segmentation fault. When I tried it with
gdb it gave following error :-

Version of shared library /lib/pa20_64/libpthread.1 not understood.

Please help me to solve the problem if possible for anyone.
Thanks in Advance.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 10:07 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: Problem of C++ program in hp Unix

"chets" <gautamchetana1982@gmail.com> writes:

> I am working for porting across unix flavours. A shared library
> program using dlopen, dlsym etc worked on linux. But when I tried it on
> hp Unix 64 bit; it did not work.


Please stop multi-posting (learn to cross-post instead), and please
stop posting to groups where this is completely off-topic.

What does your problem have to do with AIX???

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:31 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com