Solved

AIX shared libraries

Posted on 1997-07-22
3
551 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 70 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Title # Comments Views Activity
Looking for a specific application/software 2 119
java ^ examples 8 70
My project did see openJDK that I installed. What could be the problem 7 162
Thin secure Windows 10 5 108
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.

730 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