Solved

hpux export stub.

Posted on 2002-03-27
1
554 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
A short film showing how OnPage and Connectwise integration works.

914 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now