On Thu, 6 Aug 1998, Fred Leeflang wrote:
> I''ve forwarded my own message since I got another email telling me
to
> send a confirm message for my subscription after I typed it so I
don''t
> know if I already was subscribed. ta!
If it is a module then all it should need form the apache is the header
files. One can extract the header files form one of the module source rpms
we ship (mod_php or mod_perl).
So, with those headers you should be able to compile the extra module
right to the point where it will want to be linked with the httpd server.
Then all you will need is to hack a little the Makefile of the module
(assuming it has one) and then the module source:
- for the Makefile:
- add to the CFLAGS the -fPIC option
- add to LDFLAGS something like -Wl,shared if the link is done
with gcc/egcs, or simply add -shared if the Makefile calls
directly ld to perform the link (not likely, but...)
- for the source: every apache module has an entry point called the
module structure, something defined as
struct module foo_module = { ... }
You will need to change this in the module source such that the exported
entry point of the module will be called "module_info":
struct module module_info = { ... }
Note, change only the name of the structure, don''t touch anything else.
Now theoretically you should be able to compile the new module, stick it
into /usr/lib/apaches and have apache load it on restart.
It is not very hard, but onw will need a fair amount of experience
tweaking Makefile and changing source files here and there to get this
done.
I hope this helps,
Cristian
--
----------------------------------------------------------------------
Cristian Gafton -- gafton@redhat.com -- Red Hat Software, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UNIX is user friendly. It''s just selective about who its friends are.