httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Taylor <mtt...@gmail.com>
Subject dlopen a .so from a module
Date Thu, 07 Jan 2016 03:30:52 GMT
Hi all,

I have a module that dlopens a .so, gets a handle to a function in the so
and calls it. The function in the so calls ap_rputs.  dlopen returns the
error 'undefined symbol ap_rputs'.

nm tells me ap_rputs is defined in httpd, and via some dark magic, httpd
symbols are available to modules compiles the apxs -c.  But when I compile
my .so to be loaded into my module, the symbols from httpd aren't
available. My hypothesis, now disproven, was that symbols available to my
module would be visible to my .so.

Does anyone have any insight into this process? How do modules resolve
symbols from httpd, while my .so cannot?

-Mark

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message