?
Solved

AIX shared libraries

Posted on 1997-07-22
3
Medium Priority
?
557 Views
Last Modified: 2013-12-26
I'm using a RS/6000 machine running AIX 4.1. I need to create shared object files (.so files). I am able to compile my C program using cc into a .so file but whenever I try to load the .so file I get the following message:

dlopen():path component not found (errno ERNOENT)

Anyone able to guide me as to how to overcome this problem? It's rather urgent. My project depends on it.
0
Comment
Question by:thleong
[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
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 210 total points
ID: 1294030
Is the errno returned by dlopen()  ENOENT?
Then you probably misstyped the pathname of your library.
Or, if you just used the library's filename, forgot to set your
LD_LIBRARY_PATH environment variable appropriate.
0
 

Author Comment

by:thleong
ID: 1294031
Where should the LD_LIBRARY_PATH point to? Is it possible that some component may be missing from my machine that causes the problem? If so, what could the component possibly be and is there any way for me to get it?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1294032
LD_LIBRARY_PATH should point to the directories containing the
shared libraries used for your program. It's usage may depend on
some linker options (sorry, I don't have the AIX man-pages handy)
Straight forward, use the absolute pathname of your library in
the dlopen() call.

> Is it possible that some component may be missing from ...
i.g.: no. Your program then wouldn't start complaining about
missing shared libraries. But again, this depends on linker
options (somthing known as: DEFERED, IMMEDIATE, NONFATAL binding)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

741 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