- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Abort executing Ansi-C compiled program
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 02:57 AM
09-20-2007 02:57 AM
I am working on HPUX IA server with 11.23 OS.
I got this error executing ansi-c (Version 6.15) compiled program:
aCC runtime: Use of "-mt" must be consistent during both compilation and linking.
Abort(coredump)
I have already installed all the required patch for ansi-c version 6.15:
PHSS_36343
PHSS_36342
PHSS_36345
PHSS_36344
PHSS_36347
Thanks,
Fabrizio
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 03:09 AM
09-20-2007 03:09 AM
Re: Abort executing Ansi-C compiled program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 03:31 AM
09-20-2007 03:31 AM
Re: Abort executing Ansi-C compiled program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 06:45 PM
09-20-2007 06:45 PM
SolutionAs Clay said, when you link with libpthread, you must compile ALL aC++ sources with -mt. This includes third party sources and shlibs, etc.
>Fabrizio: Yes.
You must have forgot some lib?
Can you use gdb to get a stack trace to see what shlibs you are using:
$ gdb executable core
(gdb) bt
(gdb) q
You can use footprints(1) to scan your objects, binaries, shlibs to see if they were compiled with -mt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 09:47 PM
09-20-2007 09:47 PM
Re: Abort executing Ansi-C compiled program
I use footprints to scan the binary file, and i found out "-mt" set to false.I can't find this value into other object (like libraries etc )
Could be the problem?Can i set it to true?
Only a note, i am not an expert developer ;), i am trying to debug and solve the problem on behalf of develop team.Otherwise they will solve it next week..
Thanks a lot,
Fabrizio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2007 10:24 PM
09-20-2007 10:24 PM
Re: Abort executing Ansi-C compiled program
If the binary only has C source, it probably doesn't matter.
>I can't find this value into other object (like libraries etc) Could be the problem? Can i set it to true?
If the libs were compiled with a much older aC++ compiler, the -mt flag wasn't saved.
Yes, it could be a problem.
The only way to set it to "true" is recompile the source in those libs.