C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28695
Number of posts: 94715

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Problem in C++ Under HP UNIX (PORTING FROM LINUX) Posted by sandeept_24 on 1 Aug 2006 at 11:31 PM
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.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.