Solved

hpux export stub.

Posted on 2002-03-27
1
533 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

6 Experts available now in Live!

Get 1:1 Help Now