- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Error compiling pro*c thru make in HP-UX
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
04-09-2007 05:47 PM
04-09-2007 05:47 PM
Re: Error compiling pro*c thru make in HP-UX
I assume you replaced "paths-to-search" by something appropriate? "/" would work.
>I am calling it, its proto defined in the header file used by the program
Why are you calling something if you don't know where it is defined? Who owns the header? Where is the lib that defines those functions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 06:30 PM
04-09-2007 06:30 PM
Re: Error compiling pro*c thru make in HP-UX
I am actually modifying some one else programm, with no documentation available
and this lib/function is called init.
I find out htat this function is part of third party software used here for decoding binary files
and this softwae is installed in one of direcroy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 06:36 PM
04-09-2007 06:36 PM
Re: Error compiling pro*c thru make in HP-UX
Any libs there? There is a chance it is in an object, so can you just do the above nm on any file with *.o?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 07:58 PM
04-09-2007 07:58 PM
Re: Error compiling pro*c thru make in HP-UX
I find out one of the .o file was
having defination of this unsat function
after including this .o(object file)
programm compiled without any errors
(no error as such of unsat which i was getting before) and executable is generated
after running this executable, after
few steps of processing(i debug by printf) programm aborting with follwing:
Memory fault(coredump)
is this link with same reason (compilation problem in creating exe)
or some other issue ,if you suggest
where exactly is problem great help
- Tags:
- SIGSEGV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:10 PM - edited 10-07-2011 02:00 AM
04-09-2007 08:10 PM - edited 10-07-2011 02:00 AM
Re: Error compiling pro*c thru make in HP-UX
>after running this executable, after few steps of processing(I debug by printf) program aborting with following:
Memory fault(coredump)
You'll need to compile with -g so you can debug it with gdb. You can download the latest from:
http://www.hp.com/go/wdb
Then you just use: gdb tapin.exe core
Or you can start from the beginning and run it in the debugger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:20 PM
04-09-2007 08:20 PM
Re: Error compiling pro*c thru make in HP-UX
Memory fault(coredump)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 08:25 PM
04-09-2007 08:25 PM
Re: Error compiling pro*c thru make in HP-UX
If you don't check the return value from malloc, you can get signal 11. (Whether that is insufficient memory or a bug, I'll leave it up to you. :-) Otherwise signal 11 is a bug. But using the debugger will tell you that without guessing.
Also please read the following about how to assign points. You have gotten lots of answers to many questions. You can assign points to every answer.
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2007 11:37 PM
04-09-2007 11:37 PM
Re: Error compiling pro*c thru make in HP-UX
give following msg:
Program terminated with signal 11, Segmentation fault.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...#0 0xc01f7198 in __ldfcvt_r+0x2ec0 ()
from /usr/lib/libc.2
(gdb)
(gdb)
(gdb)
(gdb)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 02:39 PM
04-10-2007 02:39 PM
Re: Error compiling pro*c thru make in HP-UX
Now you need to use some debugging commands.
The first is "bt" for back trace.
ldfcvt seems to be a conversion function for floating point, possibly for printf?
Then you can use the "frame #" command to go to frame # and print out locals.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 05:10 PM
04-10-2007 05:10 PM
Re: Error compiling pro*c thru make in HP-UX
Thanks for your help
Actually i used printf in the programm
for debugging and was able to resolve the problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 06:50 PM
04-10-2007 06:50 PM
Re: Error compiling pro*c thru make in HP-UX
If you have gotten your answers, you should read my previous reply about:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
- « Previous
-
- 1
- 2
- Next »