Unix
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Unix

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old November 2nd, 2005, 01:22 PM
Cavalier, Laurent
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
CXX-DEV: HP-UX IPF 11.23 : Conflict between aCC shared and g++application

Hello,

We have the following problem when porting application from Linux to
HP-UX IPF 11.23 :
- we use the gcc/g++ compiler to be close to the Linux compilation
process
- we need to link to an already ported share object compiled with
aCC and library libstd_v2
- To link our application with this share object we then need to
link our application with libstd_v2

The compiled application systematically generates a core file.

After investigation it seems that there is a conflict between the
libstdcso (from g++) and libstd_v2.so (from aCC)

This problem can be easily reproduced with the following code :

#include <iostream>
using std::cout;


int main(int argc, char **argv)
{
cout << "a standard output \n" ;
}

And then compile with :

g++ -mlp64 -o essai_io essai_io.cpp -lstd_v2 -lCsup

( Note that -lstd_v2 is not usually needed to link with g++ but here,
we use it to simulate the link with our shared library generated by
aCC )

The compiled application systematically generates a core dump at runtime

Do you know if libstdcso from g++ and libstd_v2.so from aCC can be
used in the same process ?
Do you know if we can set some flag to aCC to generate shared library
compatible with g++ ?

Every suggestion should be appreciate

Thanks

Laurent

To leave this mailing list, send mail to majordomo (AT) cxx (DOT) cup.hp.com
with the message UNSUBSCRIBE cxx-dev

Reply With Quote
  #2  
Old November 2nd, 2005, 01:22 PM
Al Simons
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
CXX-DEV: HP-UX IPF 11.23 : Conflict between aCC shared andg++ application

At 01:15 PM 11/2/2005, Cavalier, Laurent wrote:

>Do you know if libstdcso from g++ and libstd_v2.so from aCC can be
>used in the same process ?


Yes, we know. No, they cannot be mixed. The two ABI implementations
are not compatible.

>Do you know if we can set some flag to aCC to generate shared library
>compatible with g++ ?


No, it is not possible to mix and match C++ modules from the two compilers.

To leave this mailing list, send mail to majordomo (AT) cxx (DOT) cup.hp.com
with the message UNSUBSCRIBE cxx-dev

Reply With Quote
  #3  
Old November 2nd, 2005, 02:19 PM
Albert Chin
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
CXX-DEV: HP-UX IPF 11.23 : Conflict between aCC shared andg++ application

Wed, Nov 02, 2005 at 10:19:01AM -0800, Steve Ellcey wrote:

You can mix C code from GCC with C code from HP C, and either of these
can be mixed with one of the two C++ compilers (g++ or aCC), but there
is no way to mix g++ and aCC code in one process. They use completely
different runtime systems and their ABI's are not identical.

I thought there was an IA-64 C++ ABI standard so different C++
compilers on IA-64 could share libraries?

If so, is it just that G++ doesn't implement it?

--
albert chin (china (AT) thewrittenword (DOT) com)

To leave this mailing list, send mail to majordomo (AT) cxx (DOT) cup.hp.com
with the message UNSUBSCRIBE cxx-dev

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Unix > CXX-DEV: HP-UX IPF 11.23 : Conflict between aCC shared and g++application


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
Stay green...Green IT