Solved

hpux export stub.

Posted on 2002-03-27
1
584 Views
Last Modified: 2013-12-26
Hi,
  In a program that i am developing, i am linking with a third party software. Now when i call a function asctime in my program i get a core dump. When i debug the core i found that there was a call to a function __eprintf and this functions type was "hpux export stub". What is this hp ux export stub? This is the case when i am linking with the shared library. However when i am linking with the static library i am not getting any core dump and the program is working fine. Now when i did nm on the libraries(shared and static) for asctime functions i found the following thing:

In shared library:
asctime             |          |undef |code   |
asctime             |   1398712|uext  |stub   |

In static library:
asctime             |          |undef |code   |


Now you can see the differnece between the libraries as far the function asctime is concerned.
Do you have any clue why i am not getting core dump in calling asctime using static library, and i am getting a core dump when i use the shared library.

Thanks,

-Prabhakar.
0
Comment
Question by:pandey5
1 Comment
 
LVL 3

Accepted Solution

by:
elfie earned 300 total points
ID: 6916450
How is your program linked together. Try using immediate binding ( ld option).

Thsi way you see at startup time if some functions are missings in the shared libraries.

If it works with static libraries, it's also possible that the order in which the shared libraries are specified is not correct.

Which version of HPUX are u using?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question