mod_vhost compilation errors
mod_vhost compilation errors
am 27.11.2009 17:23:42 von mohitanchlia
I downloaded the module mod_vhost_limit from "http://apache.ivn.cl/"
site. When I try to complile I get the following errors. The module I
downloaded is for apache2. Could someone please help me?
In file included from /usr/local/apache2/include/ap_config.h:25,
from /usr/local/apache2/include/httpd.h:43,
from mod_vhost_limit.c:53:
/usr/local/apache2/include/apr.h:285: error: syntax error before "apr_off_t"
/usr/local/apache2/include/apr.h:285: warning: data definition has no
type or storage class
In file included from /usr/local/apache2/include/apr_file_io.h:29,
from /usr/local/apache2/include/apr_network_io.h:26,
from /usr/local/apache2/include/httpd.h:53,
from mod_vhost_limit.c:53:
/usr/local/apache2/include/apr_file_info.h:198: error: syntax error
before "apr_off_t"
/usr/local/apache2/include/apr_file_info.h:198: warning: no semicolon
at end of struct or union
/usr/local/apache2/include/apr_file_info.h:200: warning: data
definition has no type or storage class
/usr/local/apache2/include/apr_file_info.h:213: error: syntax error
before '}' token
In file included from /usr/local/apache2/include/apr_network_io.h:26,
from /usr/local/apache2/include/httpd.h:53,
from mod_vhost_limit.c:53:
/usr/local/apache2/include/apr_file_io.h:632: error: syntax error
before "apr_off_t"
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_vhost compilation errors
am 27.11.2009 17:41:28 von Eric Covener
On 11/27/09, Mohit Anchlia wrote:
> I downloaded the module mod_vhost_limit from "http://apache.ivn.cl/"
> site. When I try to complile I get the following errors. The module I
> downloaded is for apache2. Could someone please help me?
>
> In file included from /usr/local/apache2/include/ap_config.h:25,
> from /usr/local/apache2/include/httpd.h:43,
> from mod_vhost_limit.c:53:
> /usr/local/apache2/include/apr.h:285: error: syntax error before "apr_off_t"
> /usr/local/apache2/include/apr.h:285: warning: data definition has no
> type or storage class
Are you using apxs?
--
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_vhost compilation errors
am 27.11.2009 17:43:16 von mohitanchlia
no
On Fri, Nov 27, 2009 at 8:41 AM, Eric Covener wrote:
> On 11/27/09, Mohit Anchlia wrote:
>> I downloaded the module mod_vhost_limit from "http://apache.ivn.cl/"
>> =A0site. When I try to complile I get the following errors. The module I
>> =A0downloaded is for apache2. Could someone please help me?
>>
>> =A0In file included from /usr/local/apache2/include/ap_config.h:25,
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from /usr/local/apache2/include/httpd=
..h:43,
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from mod_vhost_limit.c:53:
>> =A0/usr/local/apache2/include/apr.h:285: error: syntax error before "apr=
_off_t"
>> =A0/usr/local/apache2/include/apr.h:285: warning: data definition has no
>> =A0type or storage class
>
>
> Are you using apxs?
>
> --
> Eric Covener
> covener@gmail.com
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_vhost compilation errors
am 27.11.2009 17:43:52 von mohitanchlia
This is compile.sh
libtool --silent --mode=3Dcompile gcc -g -O2 -pthread -DLINUX=3D2 \
-D_REENTRANT -D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE -D_SVID_SOURCE \
-I/usr/local/apache2/include \
-prefer-pic -c mod_vhost_limit.c && touch mod_vhost_limit.slo
libtool --silent --mode=3Dlink gcc -g -O2 -pthread -DLINUX=3D2 \
-D_REENTRANT -D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE -D_SVID_SOURCE \
-D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER \
-I/usr/local/apache2/include \
-export-dynamic -o mod_vhost_limit.la -rpath /usr/lib/httpd/module=
s \
-module -avoid-version mod_vhost_limit.lo
rm -rf *.a *.la *.lo *.slo *.o
mv .libs/*.so .
rm -rf .libs
On Fri, Nov 27, 2009 at 8:43 AM, Mohit Anchlia wro=
te:
> no
>
> On Fri, Nov 27, 2009 at 8:41 AM, Eric Covener wrote:
>> On 11/27/09, Mohit Anchlia wrote:
>>> I downloaded the module mod_vhost_limit from "http://apache.ivn.cl/"
>>> =A0site. When I try to complile I get the following errors. The module =
I
>>> =A0downloaded is for apache2. Could someone please help me?
>>>
>>> =A0In file included from /usr/local/apache2/include/ap_config.h:25,
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from /usr/local/apache2/include/http=
d.h:43,
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from mod_vhost_limit.c:53:
>>> =A0/usr/local/apache2/include/apr.h:285: error: syntax error before "ap=
r_off_t"
>>> =A0/usr/local/apache2/include/apr.h:285: warning: data definition has n=
o
>>> =A0type or storage class
>>
>>
>> Are you using apxs?
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server Projec=
t.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_vhost compilation errors
am 27.11.2009 17:46:05 von Eric Covener
On 11/27/09, Mohit Anchlia wrote:
> > Are you using apxs?
> no
use apxs.
--
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_vhost compilation errors
am 27.11.2009 18:14:42 von mohitanchlia
What changes do I need to make to my compile script to use apxs?
libtool --silent --mode=3Dcompile gcc -g -O2 -pthread -DLINUX=3D2 \
-D_REENTRANT -D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE -D_SVID_SOURCE \
-I/usr/local/apache2/include \
-prefer-pic -c mod_vhost_limit.c && touch mod_vhost_limit.slo
libtool --silent --mode=3Dlink gcc -g -O2 -pthread -DLINUX=3D2 \
-D_REENTRANT -D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE -D_SVID_SOURCE \
-D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER \
-I/usr/local/apache2/include \
-export-dynamic -o mod_vhost_limit.la -rpath /usr/lib/httpd/modules=
\
-module -avoid-version mod_vhost_limit.lo
rm -rf *.a *.la *.lo *.slo *.o
mv .libs/*.so .
rm -rf .libs
On Fri, Nov 27, 2009 at 8:46 AM, Eric Covener wrote:
> On 11/27/09, Mohit Anchlia wrote:
>> =A0> Are you using apxs?
>> no
> use apxs.
>
> --
> Eric Covener
> covener@gmail.com
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_vhost compilation errors
am 27.11.2009 19:08:08 von Eric Covener
On Fri, Nov 27, 2009 at 12:14 PM, Mohit Anchlia wr=
ote:
> What changes do I need to make to my compile script to use apxs?
>
> libtool --silent --mode=3Dcompile gcc =A0-g -O2 -pthread =A0 =A0-DLINUX=
=3D2 \
I assume you'd just replace it:
http://httpd.apache.org/docs/2.2/programs/apxs.html
--=20
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_vhost compilation errors
am 28.11.2009 17:09:55 von mohitanchlia
On Fri, Nov 27, 2009 at 10:08 AM, Eric Covener wrote:
> On Fri, Nov 27, 2009 at 12:14 PM, Mohit Anchlia =
wrote:
>> What changes do I need to make to my compile script to use apxs?
>>
>> libtool --silent --mode=3Dcompile gcc =A0-g -O2 -pthread =A0 =A0-DLINUX=
=3D2 \
>
> I assume you'd just replace it:
>
> http://httpd.apache.org/docs/2.2/programs/apxs.html
Thanks. With apxs do I still need gcc installed or is it bundled in apxs?
>
> --
> Eric Covener
> covener@gmail.com
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_vhost compilation errors
am 28.11.2009 17:15:33 von Eric Covener
On 11/28/09, Mohit Anchlia wrote:
> On Fri, Nov 27, 2009 at 10:08 AM, Eric Covener wrote:
> > On Fri, Nov 27, 2009 at 12:14 PM, Mohit Anchlia wrote:
> >> What changes do I need to make to my compile script to use apxs?
> >>
> >> libtool --silent --mode=compile gcc -g -O2 -pthread -DLINUX=2 \
> >
> > I assume you'd just replace it:
> >
> > http://httpd.apache.org/docs/2.2/programs/apxs.html
>
> Thanks. With apxs do I still need gcc installed or is it bundled in apxs?
It invokes your compiler, it doesn't contain a compiler.
--
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org