compiling problems with mod_perl 2.0.3 and Apache 2.2.6
compiling problems with mod_perl 2.0.3 and Apache 2.2.6
am 18.01.2008 06:17:07 von James Breat
--_73db2234-edf2-4170-a380-15685678ef3f_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am having problems a static mod_perl with Apache 2.2.6 and
Perl 5.10.0.
I followed the instructions for a static build, but when I type make I get =
the following errors (only a few
same error lines are included):
httpd-2.2.6/srclib/apr/include/apr.h:273: error: expected '=3D', ',', ';', =
'asm' or '__attribute__' before 'apr_off_t'
httpd-2.2.6/srclib/apr-util/include/apr_buckets.h:242: error: expected spec=
ifier-qualifier-list before 'apr_off_t'
httpd-2.2.6/srclib/apr/include/apr_strings.h:315: error: expected ')' befor=
e '*' token
mod_perl.c:1058: error: 'request_rec' has no member named 'handler'
make[1]: *** [mod_perl.o] Error 1
Any idea on what's going on?
Thanks
____________________________________________________________ _____
Overpaid or Underpaid? Check our comprehensive Salary Centre
http://a.ninemsn.com.au/b.aspx?URL=3Dhttp%3A%2F%2Fcontent%2E mycareer%2Ecom%=
2Eau%2Fsalary%2Dcentre%3Fs%5Fcid%3D595810&_t=3D766724125&_r= 3DHotmail_Email=
_Tagline_MyCareer_Oct07&_m=3DEXT=
--_73db2234-edf2-4170-a380-15685678ef3f_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am having problems a static mod_perl with Apache 2.2.6 and
Perl 5.10.0=
..
I followed the instructions for a static build, but when I type ma=
ke I get the following errors (only a few
same error lines are included)=
:
httpd-2.2.6/srclib/apr/include/apr.h:273: error: expected '=3D', '=
,', ';', 'asm' or '__attribute__' before 'apr_off_t'
httpd-2.2.6/srclib/=
apr-util/include/apr_buckets.h:242: error: expected specifier-qualifier-lis=
t before 'apr_off_t'
httpd-2.2.6/srclib/apr/include/apr_strings.h:315: e=
rror: expected ')' before '*' token
mod_perl.c:1058: error: 'request_rec=
' has no member named 'handler'
make[1]: *** [mod_perl.o] Error 1
>Any idea on what's going on?
Thanks
Check our compre=
hensive Salary Centre
3A%2F%2Fcontent%2Emycareer%2Ecom%2Eau%2Fsalary%2Dcentre%3Fs% 5Fcid%3D595810&=
_t=3D766724125&_r=3DHotmail_Email_Tagline_MyCareer_Oct07&_m= 3DEXT' target=
=3D'_new'>Overpaid or Underpaid?
=
--_73db2234-edf2-4170-a380-15685678ef3f_--
Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
am 18.01.2008 08:49:47 von Heiko Jansen
Am Freitag, den 18.01.2008, 15:47 +1030 schrieb James Breat:
> I am having problems a static mod_perl with Apache 2.2.6 and
> Perl 5.10.0.
Essentially, the answer you need is: Don't use mod_perl2 and Perl 5.10.0
together yet.
As far as I know, the mod_perl developers are working on resolving the
issues (caused by internal changes in Perl 5.10) right now.
So we both have to wait for mod_perl 2.0.4...
heiko
Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
am 22.01.2008 08:11:22 von gozer
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9643B08A4730815DFA2A8AEE
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
James Breat wrote:
> I am having problems a static mod_perl with Apache 2.2.6 and
> Perl 5.10.0.
>=20
> I followed the instructions for a static build, but when I type make I =
> get the following errors (only a few
> same error lines are included):
>=20
> httpd-2.2.6/srclib/apr/include/apr.h:273: error: expected '=3D', ',', '=
;',=20
> 'asm' or '__attribute__' before 'apr_off_t'
> httpd-2.2.6/srclib/apr-util/include/apr_buckets.h:242: error: expected =
> specifier-qualifier-list before 'apr_off_t'
> httpd-2.2.6/srclib/apr/include/apr_strings.h:315: error: expected ')'=20
> before '*' token
Sounds like your compiler realy doesn't like something in APR.
Have you tried just trying to build apr by itself.
$> cd httpd-2.2.6/srclib/apr
$> ./configure
$> make
If that still spits out the above errors, it's not a mod_perl problem,
but something about your system and APR doesn't agree.
Could you post the few lines around the offending section of apr.h (aroun=
d line 273)?
> mod_perl.c:1058: error: 'request_rec' has no member named 'handler'
> make[1]: *** [mod_perl.o] Error 1
>=20
> Any idea on what's going on?
Again, sounds like there is something in your httpd tree that isn't getti=
ng
digested quite right by your compiler.
--=20
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
--------------enig9643B08A4730815DFA2A8AEE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHlZcayzKhB4jDpaURAqKPAKCIzFzPFcyUfhTQnVKpyaux2zyPOwCg o3Ko
BTC99YVUyDmZ19O7zIPLs5o=
=fPOr
-----END PGP SIGNATURE-----
--------------enig9643B08A4730815DFA2A8AEE--
Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
am 22.01.2008 08:12:34 von gozer
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB17DCB79FDF592BB08B25B0A
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Heiko Jansen wrote:
> Am Freitag, den 18.01.2008, 15:47 +1030 schrieb James Breat:
>> I am having problems a static mod_perl with Apache 2.2.6 and
>> Perl 5.10.0.
>=20
> Essentially, the answer you need is: Don't use mod_perl2 and Perl 5.10.=
0
> together yet.
Not yet, nope.
> As far as I know, the mod_perl developers are working on resolving the
> issues (caused by internal changes in Perl 5.10) right now.
> So we both have to wait for mod_perl 2.0.4...
Yes, but mod_perl 2.0.3 and Perl 5.10 should at least _build_, just
possibly exhibit unnatural behaviour at runtime...
--=20
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
--------------enigB17DCB79FDF592BB08B25B0A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHlZdiyzKhB4jDpaURAm+pAKCztpJfGxG/7jHbNXHFIl7he2UWcwCd FDBm
RwGk2HMmUEBaYepcrn7ub2o=
=0u8t
-----END PGP SIGNATURE-----
--------------enigB17DCB79FDF592BB08B25B0A--
Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
am 22.01.2008 08:58:11 von Heiko Jansen
Am Montag, den 21.01.2008, 23:12 -0800 schrieb Philippe M. Chiasson:
> Yes, but mod_perl 2.0.3 and Perl 5.10 should at least _build_, just
> possibly exhibit unnatural behaviour at runtime...
No - at least not for me (Solaris 10, 64Bit, Sun cc): 2.0.3 won't build
at all unless I copy "src/modules/perl/modperl_common_util.h" and
"src/modules/perl/modperl_interp.h" over from the dev tree. Then it
compiles fine.
Sadly I don't remember _why_ I had to copy these headers..
Bad hack, of course.
Heiko
Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
am 23.01.2008 01:57:37 von John D Groenveld
In message <4795B023020000C100047478@agrippa.hbz-nrw.de>, "Heiko Jansen" writes
:
>No - at least not for me (Solaris 10, 64Bit, Sun cc): 2.0.3 won't build
Working for me so far.
$ cd /tmp/httpd-2.2.8
$ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/sfw/bin \
CC=cc CFLAGS="-m64 -xO3" LDFLAGS="-m64 -L/usr/sfw/lib/64 -R/usr/sfw/lib/64" \
../configure --with-expat=/usr/sfw --with-ssl=/usr/sfw --enable-ssl \
--enable-proxy --enable-rewrite --enable-modules=all --enable-mods-shared=all \
--prefix=/opt/apache2
# make install
Edit apr_rules.mk and config_vars.mk in /opt/apache2/build and add "-m64"
to EXTRA_LDFLAGS
Add "-m64" to LDFLAGS in /opt/apache2/bin/apr-1-config
$ cd /tmp/perl-5.10.0
$ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
../Configure -Dprefix=/opt/apache2/perl-5.10.0 -Dcc=cc -Duseshrplib \
-Uusemymalc -Duselargefiles -Ubincompat5005 -Doptimize=-xO3 -Duse64bitall
# make install
$ cd /tmp/mod_perl-2.0.3
$ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
/opt/apache2/perl-5.10.0/bin/perl Makefile.PL MP_APXS=/opt/apache2/bin/apxs
# make install
John
groenveld@acm.org
Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
am 16.06.2009 22:05:14 von ArthurG
I have encountered the same mod_perl make problem working with these
releases:
Perl 5.8.9
Apache 2.2.3
mod_perl 2.0.4
artg@arthur-desktop:~/Downloads/mod_perl-2.0.4$ make
cd "src/modules/perl" && make
make[1]: Entering directory
`/home/artg/Downloads/mod_perl-2.0.4/src/modules/perl'
cc -I/home/artg/Downloads/mod_perl-2.0.4/src/modules/perl
-I/home/artg/Downloads/mod_perl-2.0.4/xs
-I/home/artg/Downloads/httpd-2.2.3/include
-I/home/artg/Downloads/httpd-2.2.3/srclib/apr/include
-I/home/artg/Downloads/httpd-2.2.3/srclib/apr-util/include
-I/home/artg/Downloads/httpd-2.2.3/os/unix -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/local/lib/perl5/5.8.9/i686-linux/CORE -DMOD_PER=
L
-DMP_COMPAT_1X -O2 -c mod_perl.c
In file included from
/home/artg/Downloads/httpd-2.2.3/include/ap_config.h:25,
from /home/artg/Downloads/httpd-2.2.3/include/httpd.h:43,
from modperl_apache_includes.h:27,
from mod_perl.h:20,
from mod_perl.c:17:
/home/artg/Downloads/httpd-2.2.3/srclib/apr/include/apr.h:27 0: error:
expected â=â=99, â=98,â=99, â=98;â=99, =
â=98asmâ=99 or â=98__attribute__â=99 before â=98ap=
r_off_tâ=99
Making apr via
pushd ../httpd-2.2.3/srclib/apr
make
sudo make install
proceeds without problems.
John D Groenveld-2 wrote:
>=20
> In message <4795B023020000C100047478@agrippa.hbz-nrw.de>, "Heiko Jansen"
> writes
> :
>>No - at least not for me (Solaris 10, 64Bit, Sun cc): 2.0.3 won't build
>=20
> Working for me so far.
>=20
> $ cd /tmp/httpd-2.2.8
> $ env PATH=3D/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/sfw/bin \
> CC=3Dcc CFLAGS=3D"-m64 -xO3" LDFLAGS=3D"-m64 -L/usr/sfw/lib/64
> -R/usr/sfw/lib/64" \
> ./configure --with-expat=3D/usr/sfw --with-ssl=3D/usr/sfw --enable-ssl \
> --enable-proxy --enable-rewrite --enable-modules=3Dall
> --enable-mods-shared=3Dall \
> --prefix=3D/opt/apache2
> # make install
> Edit apr_rules.mk and config_vars.mk in /opt/apache2/build and add "-m64"
> to EXTRA_LDFLAGS
> Add "-m64" to LDFLAGS in /opt/apache2/bin/apr-1-config
>=20
> $ cd /tmp/perl-5.10.0
> $ env PATH=3D/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
> ./Configure -Dprefix=3D/opt/apache2/perl-5.10.0 -Dcc=3Dcc -Duseshrplib \
> -Uusemymalc -Duselargefiles -Ubincompat5005 -Doptimize=3D-xO3 -Duse64bita=
ll
> # make install
>=20
> $ cd /tmp/mod_perl-2.0.3
> $ env PATH=3D/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
> /opt/apache2/perl-5.10.0/bin/perl Makefile.PL
> MP_APXS=3D/opt/apache2/bin/apxs
> # make install
>=20
> John
> groenveld@acm.org
>=20
>=20
>=20
--=20
View this message in context: http://www.nabble.com/compiling-problems-with=
-mod_perl-2.0.3-and-Apache-2.2.6-tp14946923p24061845.html
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
am 16.06.2009 22:28:11 von Mike OK
Hi Arthur
Are you building a static apache or dynamic that uses .so modules??
Mike
----- Original Message -----
From: "ArthurG"
To:
Sent: Tuesday, June 16, 2009 4:05 PM
Subject: Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
I have encountered the same mod_perl make problem working with these
releases:
Perl 5.8.9
Apache 2.2.3
mod_perl 2.0.4
artg@arthur-desktop:~/Downloads/mod_perl-2.0.4$ make
cd "src/modules/perl" && make
make[1]: Entering directory
`/home/artg/Downloads/mod_perl-2.0.4/src/modules/perl'
cc -I/home/artg/Downloads/mod_perl-2.0.4/src/modules/perl
-I/home/artg/Downloads/mod_perl-2.0.4/xs
-I/home/artg/Downloads/httpd-2.2.3/include
-I/home/artg/Downloads/httpd-2.2.3/srclib/apr/include
-I/home/artg/Downloads/httpd-2.2.3/srclib/apr-util/include
-I/home/artg/Downloads/httpd-2.2.3/os/unix -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/local/lib/perl5/5.8.9/i686-linux/CORE -DMOD_PERL
-DMP_COMPAT_1X -O2 -c mod_perl.c
In file included from
/home/artg/Downloads/httpd-2.2.3/include/ap_config.h:25,
from /home/artg/Downloads/httpd-2.2.3/include/httpd.h:43,
from modperl_apache_includes.h:27,
from mod_perl.h:20,
from mod_perl.c:17:
/home/artg/Downloads/httpd-2.2.3/srclib/apr/include/apr.h:27 0: error:
expected â=â, â,â, â;â, âasmâ or â__attribute__â before âapr_off_tâ
Making apr via
pushd ../httpd-2.2.3/srclib/apr
make
sudo make install
proceeds without problems.
John D Groenveld-2 wrote:
>
> In message <4795B023020000C100047478@agrippa.hbz-nrw.de>, "Heiko Jansen"
> writes
> :
>>No - at least not for me (Solaris 10, 64Bit, Sun cc): 2.0.3 won't build
>
> Working for me so far.
>
> $ cd /tmp/httpd-2.2.8
> $ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/sfw/bin \
> CC=cc CFLAGS="-m64 -xO3" LDFLAGS="-m64 -L/usr/sfw/lib/64
> -R/usr/sfw/lib/64" \
> ./configure --with-expat=/usr/sfw --with-ssl=/usr/sfw --enable-ssl \
> --enable-proxy --enable-rewrite --enable-modules=all
> --enable-mods-shared=all \
> --prefix=/opt/apache2
> # make install
> Edit apr_rules.mk and config_vars.mk in /opt/apache2/build and add "-m64"
> to EXTRA_LDFLAGS
> Add "-m64" to LDFLAGS in /opt/apache2/bin/apr-1-config
>
> $ cd /tmp/perl-5.10.0
> $ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
> ./Configure -Dprefix=/opt/apache2/perl-5.10.0 -Dcc=cc -Duseshrplib \
> -Uusemymalc -Duselargefiles -Ubincompat5005 -Doptimize=-xO3 -Duse64bitall
> # make install
>
> $ cd /tmp/mod_perl-2.0.3
> $ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
> /opt/apache2/perl-5.10.0/bin/perl Makefile.PL
> MP_APXS=/opt/apache2/bin/apxs
> # make install
>
> John
> groenveld@acm.org
>
>
>
--
View this message in context:
http://www.nabble.com/compiling-problems-with-mod_perl-2.0.3 -and-Apache-2.2.6-tp14946923p24061845.html
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
am 16.06.2009 23:02:00 von ArthurG
Hi Mike
Static mod_perl, as per
http://perl.apache.org/docs/2.0/user/install/install.html#St atic_mod_perl.
My make command was=20
perl Makefile.PL MP_USE_STATIC=3D1
MP_AP_PREFIX=3D/home/artg/Downloads/httpd-2.2.3
MP_AP_CONFIGURE=3D"--with-mpm=3Dprefork"
BR
A
Mike OK-2 wrote:
>=20
> Hi Arthur
>=20
> Are you building a static apache or dynamic that uses .so modules??
>=20
> Mike
> ----- Original Message -----=20
> From: "ArthurG"
> To:
> Sent: Tuesday, June 16, 2009 4:05 PM
> Subject: Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6
>=20
>=20
>=20
> I have encountered the same mod_perl make problem working with these
> releases:
>=20
> Perl 5.8.9
> Apache 2.2.3
> mod_perl 2.0.4
>=20
> artg@arthur-desktop:~/Downloads/mod_perl-2.0.4$ make
> cd "src/modules/perl" && make
> make[1]: Entering directory
> `/home/artg/Downloads/mod_perl-2.0.4/src/modules/perl'
> cc -I/home/artg/Downloads/mod_perl-2.0.4/src/modules/perl
> -I/home/artg/Downloads/mod_perl-2.0.4/xs
> -I/home/artg/Downloads/httpd-2.2.3/include
> -I/home/artg/Downloads/httpd-2.2.3/srclib/apr/include
> -I/home/artg/Downloads/httpd-2.2.3/srclib/apr-util/include
> -I/home/artg/Downloads/httpd-2.2.3/os/unix -fno-strict-aliasing -pipe
> -I/usr/local/include -I/usr/local/lib/perl5/5.8.9/i686-linux/CORE
> -DMOD_PERL
> -DMP_COMPAT_1X -O2 -c mod_perl.c
> In file included from
> /home/artg/Downloads/httpd-2.2.3/include/ap_config.h:25,
> from /home/artg/Downloads/httpd-2.2.3/include/httpd.h:43=
,
> from modperl_apache_includes.h:27,
> from mod_perl.h:20,
> from mod_perl.c:17:
> /home/artg/Downloads/httpd-2.2.3/srclib/apr/include/apr.h:27 0: error:
> expected â=â=99, â=98,â=99, â=98;â=99,=
â=98asmâ=99 or â=98__attribute__â=99 before â=98a=
pr_off_tâ=99
>=20
> Making apr via
> pushd ../httpd-2.2.3/srclib/apr
> make
> sudo make install
> proceeds without problems.
>=20
>=20
>=20
>=20
> John D Groenveld-2 wrote:
>>
>> In message <4795B023020000C100047478@agrippa.hbz-nrw.de>, "Heiko Jansen"
>> writes
>> :
>>>No - at least not for me (Solaris 10, 64Bit, Sun cc): 2.0.3 won't build
>>
>> Working for me so far.
>>
>> $ cd /tmp/httpd-2.2.8
>> $ env PATH=3D/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/sfw/bin \
>> CC=3Dcc CFLAGS=3D"-m64 -xO3" LDFLAGS=3D"-m64 -L/usr/sfw/lib/64
>> -R/usr/sfw/lib/64" \
>> ./configure --with-expat=3D/usr/sfw --with-ssl=3D/usr/sfw --enable-ssl \
>> --enable-proxy --enable-rewrite --enable-modules=3Dall
>> --enable-mods-shared=3Dall \
>> --prefix=3D/opt/apache2
>> # make install
>> Edit apr_rules.mk and config_vars.mk in /opt/apache2/build and add "-m64=
"
>> to EXTRA_LDFLAGS
>> Add "-m64" to LDFLAGS in /opt/apache2/bin/apr-1-config
>>
>> $ cd /tmp/perl-5.10.0
>> $ env PATH=3D/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
>> ./Configure -Dprefix=3D/opt/apache2/perl-5.10.0 -Dcc=3Dcc -Duseshrplib \
>> -Uusemymalc -Duselargefiles -Ubincompat5005 -Doptimize=3D-xO3 -Duse64bit=
all
>> # make install
>>
>> $ cd /tmp/mod_perl-2.0.3
>> $ env PATH=3D/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
>> /opt/apache2/perl-5.10.0/bin/perl Makefile.PL
>> MP_APXS=3D/opt/apache2/bin/apxs
>> # make install
>>
>> John
>> groenveld@acm.org
>>
>>
>>
>=20
> --=20
> View this message in context:=20
> http://www.nabble.com/compiling-problems-with-mod_perl-2.0.3 -and-Apache-2=
..2.6-tp14946923p24061845.html
> Sent from the mod_perl - General mailing list archive at Nabble.com.
>=20
>=20
>=20
>=20
>=20
--=20
View this message in context: http://www.nabble.com/compiling-problems-with=
-mod_perl-2.0.3-and-Apache-2.2.6-tp14946923p24062804.html
Sent from the mod_perl - General mailing list archive at Nabble.com.