* dlopen()/dlsym() and Digital Unix 4.0
@ 1997-03-12 5:00 Peter Eriksson
1997-03-13 5:00 ` Tony Quan
0 siblings, 1 reply; 2+ messages in thread
From: Peter Eriksson @ 1997-03-12 5:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 599 bytes --]
I'm trying to port my multithreaded web server Phttpd to Digital Unix 4.0.
However, Phttpd uses dynamic linking of shared library objects via the
dlopen()/dlsym() interface.
What is the correct method of compiling and linking such a shared
library object? I've tried to read the manual pages for dlopen,
dlsym, cc and ld but they aren't exactly clear on this subject...
- Peter
--
Peter Eriksson <peter@ifm.liu.se> Computer Systems Manager/BOFH
WWW: http://www.ifm.liu.se/~peter/ Phone: +46 13 282786
Link�ping University, Department of Physics, S-581 83 Link�ping, Sweden
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dlopen()/dlsym() and Digital Unix 4.0
1997-03-12 5:00 dlopen()/dlsym() and Digital Unix 4.0 Peter Eriksson
@ 1997-03-13 5:00 ` Tony Quan
0 siblings, 0 replies; 2+ messages in thread
From: Tony Quan @ 1997-03-13 5:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 953 bytes --]
In article <5g6mgv$j0c$1@newsy.ifm.liu.se>, peter@ifm.liu.se wrote:
>I'm trying to port my multithreaded web server Phttpd to Digital Unix 4.0.
>
>However, Phttpd uses dynamic linking of shared library objects via the
>dlopen()/dlsym() interface.
>
>What is the correct method of compiling and linking such a shared
>library object? I've tried to read the manual pages for dlopen,
>dlsym, cc and ld but they aren't exactly clear on this subject...
>
>- Peter
>
>--
>Peter Eriksson <peter@ifm.liu.se> Computer Systems Manager/BOFH
>WWW: http://www.ifm.liu.se/~peter/ Phone: +46 13 282786
>Link�ping University, Department of Physics, S-581 83 Link�ping, Sweden
Very simply, it's just:
ld -shared -o <name of shared library> <names of objects & libraries to link in>
By convention, shared libraries on Digital UNIX have names starting with
lib and ending with a .so extension, as in "libtest.so".
--Tony
tquan@ibm.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-03-13 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-12 5:00 dlopen()/dlsym() and Digital Unix 4.0 Peter Eriksson
1997-03-13 5:00 ` Tony Quan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox