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
Solved

AIX shared libraries

Posted on 1997-07-22
3
546 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
  • 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
twoTwo  challenge 35 107
FizzBuzz challenge 9 82
how to split multiple lines delimiter : 8 109
Making an alias 7 101
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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

860 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