Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, Right now I am porting an application from solaris to Linux.I am facing a problem in opening a shared library with dlopen().The arguments specified in solaris to this call ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    5

    problem with opening shared library using dlopen() in Red Hat Linux


    Hi,

    Right now I am porting an application from solaris to Linux.I am facing
    a problem in opening a shared library with dlopen().The arguments
    specified in solaris to this call are RTD_LAZY.It works fine in Solaris.

    But in Linux dlopen() gives an error in loading the shared object saying that " undefined symbol:XXXXXX".

    The linker options specified in solaris are " -u -G -dy -M mapfile" .
    The linker options specified by me in Linux are "-u -symbolic -fPIC -shared --version-script mapfile"

    Can you tell me in which case above dlopen() fails to load the shared object?

    Are the options given to the linker sufficient to load a shared object or should I add somemore
    options to the linker?


    Can anyone help me out .


    Regards
    Phani
    phanikumar.ankireddy@tcs.com

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    What does your call to dlopen() look like, verbatim? I believe that on linux, the flag is "RTLD_LAZY", not "RTD_LAZY".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •