Hello folks, I have run in to a problem and hope someone can help me out. I am using Apache HTTP server version 2.0.61
I have written a simple test module called mod_my.c in which all I do is printout the contents of request->parsed_uri structure which if of type apr_uri_t. The module works just fine when I use the following command to compile and install it: *$ /usr/sbin/apxs -c mod_my.c $ /usr/sbin/apxs -i mod_my.la * But if I use my own make file to compile the module, I see that the members of the apr_uri_t are either null or incorrectly populated. Here is the command I use to compile *$ gcc -Wall -Werror -fPIC -D_REENTRANT -Di686 -D_FILE_OFFSET_BITS=64 -g -I /usr/include/httpd -I /usr/include/apr-0 -c mod_my.c -o mod_my.o $ gcc -fPIC -static-libgcc -shared -z initfirst ./mod_my.o -o ./mod_my.so * I know for sure that the problem is with the way I am compiling the module. Can anyone tell me what am I missing here? I am also attaching my module file for your reference. Thanks, Subra
