From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,69f0cb1b31da8cf6,start X-Google-Attributes: gidfcda7,public X-Google-Thread: 11035d,ffe1992c35f8f13 X-Google-Attributes: gid11035d,public X-Google-Thread: 10c665,ffe1992c35f8f13 X-Google-Attributes: gid10c665,public X-Google-Thread: fb4a0,ffe1992c35f8f13 X-Google-Attributes: gidfb4a0,public X-Google-Thread: 10b612,69f0cb1b31da8cf6,start X-Google-Attributes: gid10b612,public X-Google-Thread: fee84,ffe1992c35f8f13 X-Google-Attributes: gidfee84,public X-Google-Thread: 115614,ffe1992c35f8f13 X-Google-Attributes: gid115614,public X-Google-ArrivalTime: 1995-02-04 03:00:37 PST Path: nntp.gmd.de!dearn!esoc!linuxed1!peernews.demon.co.uk!pipex!pipex!howland.reston.ans.net!agate!aoki From: aoki@faerie.CS.Berkeley.EDU (Paul M. Aoki) Newsgroups: comp.unix.solaris,comp.unix.unixware,comp.unix.osf.osf1,comp.unix.sys5.r4,comp.sys.hp.hpux,comp.unix.aix,comp.unix.ultrix Subject: Re: Dynamic load: DIGEST Date: 4 Feb 1995 11:00:37 GMT Organization: University of California at Berkeley Distribution: inet Message-ID: <3gvmol$d9n@agate.berkeley.edu> References: <3gaaou$gl0@csinn.cgs.fr> Reply-To: aoki@CS.Berkeley.EDU (Paul M. Aoki) NNTP-Posting-Host: faerie.cs.berkeley.edu Xref: nntp.gmd.de comp.unix.solaris:36229 comp.unix.unixware:20120 comp.unix.osf.osf1:7489 comp.unix.sys5.r4:10473 comp.sys.hp.hpux:19748 comp.unix.aix:47484 comp.unix.ultrix:16659 meunier@capsogeti.fr (Jean-Luc Meunier) writes: | >> I am looking for information on how loading foreign or external code | >> in a running application. (Also called 'dynamic load', 'foreign code load') | | It appears now to me that it is possible on (at least) : | SunOS4, SOLARIS, HP-UX, AIX, Unixware, OSF/1 | and not possible on ULTRIX (apologies for the cross-post, but i figured that this might be useful information for somebody else who has to port something that requires dynamic loading to ultrix. unlikely, true, but you never know.) the vendor-supplied mips/ultrix libraries do not support this, but there are freeware dynamic-loading solutions that work. andrew yu has written a couple of dlopen/dlclose/dlsym libraries, the most recent being "libdl". ftp://s2k-ftp.cs.berkeley.edu/pub/personal/andrew/README ftp://s2k-ftp.cs.berkeley.edu/pub/personal/andrew/libdl-1.1.tar.Z libdl has been exercised pretty heavily -- we use it in the postgres extensible dbms and has proven to be much, much more robust than our previous solutions (based on either "ld -A" or gnu dld). version 1.1 added support for r4000-based decstations. -- Paul M. Aoki | University of California at Berkeley aoki@CS.Berkeley.EDU | Dept. of EECS, Computer Science Division (#1776)