Solved

hpux export stub.

Posted on 2002-03-27
1
597 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add content to output file 4 71
NotAlone Challenge 20 88
Not needed 13 129
Adjust the codes 3 35
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: 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.

726 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