Re: compiling using gcc directly rather than using apxs
Here you go Karim. On Nov 28, 2007 1:23 PM, karim Bendadda <[EMAIL PROTECTED]> wrote: > You have forgotten to attach your module can you do it please? > > 2007/11/28, Subra A Narayanan <[EMAIL PROTECTED]>: > > > > I am still not able to figure out the problem. For longtime module > > developers, this should be a simple problem to solve. > > > > Any pointers in the right direction would be greatly appreciated. > > > > Subra > > > > On Nov 27, 2007 1:21 PM, Subra A Narayanan <[EMAIL PROTECTED]> wrote: > > > > > 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 > > > > > > > > > > > > > > > -- > Karim Bendadda >
Re: compiling using gcc directly rather than using apxs
You have forgotten to attach your module can you do it please? 2007/11/28, Subra A Narayanan <[EMAIL PROTECTED]>: > > I am still not able to figure out the problem. For longtime module > developers, this should be a simple problem to solve. > > Any pointers in the right direction would be greatly appreciated. > > Subra > > On Nov 27, 2007 1:21 PM, Subra A Narayanan <[EMAIL PROTECTED]> wrote: > > > 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 > > > > > > > -- Karim Bendadda
Re: compiling using gcc directly rather than using apxs
On Wed, 28 Nov 2007 13:03:19 -0500 "Subra A Narayanan" <[EMAIL PROTECTED]> wrote: > I am still not able to figure out the problem. For longtime module > developers, this should be a simple problem to solve. > > Any pointers in the right direction would be greatly appreciated. What's wrong with apxs/2? If you're really concerned then look at the source code/output of apxs, it shows what it's doing. -- The Optical Cable to the omega 13 device is resetting because of the monkey done broke it. Apu is required to go to a mandatory meeting to be fired. :: http://www.s5h.net/ :: http://www.s5h.net/gpg.html signature.asc Description: PGP signature
compiling using gcc directly rather than using apxs
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