httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subra A Narayanan" <aswat...@gmail.com>
Subject Re: compiling using gcc directly rather than using apxs
Date Wed, 28 Nov 2007 18:27:31 GMT
Here you go Karim.....

On Nov 28, 2007 1:23 PM, karim Bendadda <kakibend@gmail.com> wrote:

> You have forgotten to attach your module can you do it please?
>
> 2007/11/28, Subra A Narayanan <aswathsn@gmail.com>:
> >
> > 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 <aswathsn@gmail.com> 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
>

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