Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
RW compiled a 4GL program with the -shared option and got a dynamic linker error opening lib4gsh720.so. Rahul Dhuvad advised setting LD_LIBRARY_PATH to $INFORMIXDIR/lib/tools. Vicente Salvador suggested a symlink in /usr/lib. Jonathan Leffler listed the library path, ld.so.cache, symlink or link-option routes, and warned not to move INFORMIXDIR after building.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
RW — — source: Informix-list mailing list archive (1991-1998)
Could anyone help me with the following problem:
I am trying to compile my 4gl program using -shared option (I want my exec
file to be smaller). I can't run my program - I get message:
dynamic linker: error opening lib4gsh720.so
Killed
What do I need to do to run my program?
Thanks in advance,
Regards,
RW.
↪ replying to RW
Rahul Dhuvad — — source: Informix-list mailing list archive (1991-1998)
Hi,
I think you forgot to set LD_LIBRARY_PATH (in Solaris) -or- equivalent
<runtime-shared-lib-search-path> environment variable to point to
$INFORMIXDIR/lib/tools. i.e. In Solaris,
setenv LD_LIBRARY_PATH $INFORMIXDIR/lib/tools #--csh
export LD_LIBRARY_PATH=$INFORMIXDIR/lib/tools #--ksh
After setting this env. variable, just execute your program(a.out).
Hope this helps,
Rahul.
RW wrote:
>
> Could anyone help me with the following problem:
> I am trying to compile my 4gl program using -shared option (I want my exec
> file to be smaller). I can't run my program - I get message:
>
> dynamic linker: error opening lib4gsh720.so
> Killed
>
> What do I need to do to run my program?
>
> Thanks in advance,
>
> Regards,
>
> RW.
↪ replying to RW
DEISTER — — source: Informix-list mailing list archive (1991-1998)
Installation of 4GL program is wrong and doesn't creates the appropiate link.
1. Connect as root
2. cd /usr/lib
3 ln -s $INFORMIXDIR/lib/tools/lib4gsh720.so .
and compiler should work fine.
Vicente Salvador
DEISTER, S.A.
RW wrote:
> Could anyone help me with the following problem:
> I am trying to compile my 4gl program using -shared option (I want my exec
> file to be smaller). I can't run my program - I get message:
>
> dynamic linker: error opening lib4gsh720.so
> Killed
>
> What do I need to do to run my program?
>
> Thanks in advance,
>
> Regards,
>
> RW.
↪ replying to RW
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
RW wrote:
>
> Could anyone help me with the following problem:
> I am trying to compile my 4gl program using -shared option (I want
> my exec file to be smaller). I can't run my program - I get message:
>
> dynamic linker: error opening lib4gsh720.so
> Killed
>
> What do I need to do to run my program?
Either: ensure $INFORMIXDIR/lib/tools is included in LD_LIBRARY_PATH
or its equivalent on your O/S
Or: ensure $INFORMIXDIR/lib/tools is handled by ld.so.cache (Linux)
Or: add a symlink in /usr/lib referencing
$INFORMIXDIR/lib/tools/lib4gsh720.so
Or: Decide to add $INFORMIXDIR/lib/tools/lib4gsh720.so to your
link options -- but don't move INFORMIXDIR after building your
executable. If the code has to be moved to a new machine, the
INFORMIXDIR must be in the same place on the new machine.
--
Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net)
Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN
#include <disclaimer.h>
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.