You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Hans C. Poo" <ha...@welinux.cl> on 2012/12/03 15:02:56 UTC

Problem compiling 1.0 on linux

Hi.

I have a legacy mod_perl project, and need to create a development environment. 

mod_perl-1.31 y apache_1.3.41 on Ubuntu Linux 12.04

The makefile is created fine:
hans@tierra:~/desarrollo/mod_perl-1.31$ perl Makefile.PL DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 

Then, when issuing make:

cc -O2 -g -I/usr/lib/perl/5.14/CORE -D_REENTRANT  -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD_PERL_VERSION=\"1.31\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.31\" -I../.. -I/usr/lib/perl/5.14/CORE -I../../os/unix -I../../include    -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT  -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT  -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `../../apaci` -c mod_perl.c
mod_perl.c: En la función ‘mp_check_version’:
mod_perl.c:538:2: aviso: se desconoce el carácter de tipo de conversión ‘_’ en el formato [-Wformat]
mod_perl.c: En la función ‘perl_module_init’:
mod_perl.c:564:2: aviso: se desconoce el carácter de tipo de conversión ‘v’ en el formato [-Wformat]
mod_perl.c: En la función ‘perl_startup’:
mod_perl.c:790:15: error: se requiere un l-valor como operando izquierdo de la asignación
make[5]: *** [mod_perl.o] Error 1
make[4]: *** [all] Error 1
make[3]: *** [subdirs] Error 1

Looking at the code, there are some formats en the form %_ until i can see it is complaining for the underscore.

Thanks
Hans

Re: Problem compiling 1.0 on linux

Posted by "Hans C. Poo" <ha...@welinux.cl>.
Andreas,

Thanks for your correction and time, i hope your patch gets its way into main, for now will survive with the virtual machine solution until a patched 1.32 perl to be available for ubuntu/debian.

Bye
Hans

Hans Poo, Welinux S.A.
Bombero Ossa #1010, oficina 800, 
+56-2-3729770, Movil: +56-9-3199305
Santiago, Chile


----- Mensaje original -----
> De: "Andreas Koenig" <an...@franz.ak.mind.de>
> Para: "Hans C. Poo" <ha...@welinux.cl>
> CC: "Fred Moyer" <fr...@redhotpenguin.com>, "mod_perl list" <mo...@perl.apache.org>
> Enviados: Lunes, 24 de Diciembre 2012 11:27:04
> Asunto: Re: Problem compiling 1.0 on linux
> 
> "Hans C. Poo" <ha...@welinux.cl> writes:
> 
> > Fred,
> >
> > Yea, i know the platform is outdated, it is a very legacy system
> > and
> > we are planning a complete rebuild... finally i installed a virtual
> > machine with ubuntu 10.04 (a two year old release of linux) and it
> > compiled without problems, in this way we'll be able to cope with
> > maintenance until the new system is ready. It was a gcc or glibc
> > related issue.
> 
> It's not likely it was a gcc or glibc related issue. From all I can
> read
> here it was a perl 5.14 issue and that has been addressed in the SVN
> repository.
> 
> While we are at it, I tried 1.x with perl 5.16.2 and it compiled and
> tested OK with the appended patch which goes on top of current
> https://svn.apache.org/repos/asf/perl/modperl/branches/1.x. I haven't
> yet tested it further but will do.
> 
> I would be glad to see this patch go into the repository and thus
> into
> "1.32" whenever it happens. Or put another way, I would be glad to
> hear
> of people having other relevent informations to share for running
> perl
> 5.16 with mp1.
> 
> 
> 
> [Documentos de texto:mp1+perl5.16.diff]
> 
> 
> --
> andreas
> 

Re: Problem compiling 1.0 on linux

Posted by Andreas Koenig <an...@franz.ak.mind.de>.
"Hans C. Poo" <ha...@welinux.cl> writes:

> Fred,
>
> Yea, i know the platform is outdated, it is a very legacy system and
> we are planning a complete rebuild... finally i installed a virtual
> machine with ubuntu 10.04 (a two year old release of linux) and it
> compiled without problems, in this way we'll be able to cope with
> maintenance until the new system is ready. It was a gcc or glibc
> related issue.

It's not likely it was a gcc or glibc related issue. From all I can read
here it was a perl 5.14 issue and that has been addressed in the SVN
repository.

While we are at it, I tried 1.x with perl 5.16.2 and it compiled and
tested OK with the appended patch which goes on top of current
https://svn.apache.org/repos/asf/perl/modperl/branches/1.x. I haven't
yet tested it further but will do.

I would be glad to see this patch go into the repository and thus into
"1.32" whenever it happens. Or put another way, I would be glad to hear
of people having other relevent informations to share for running perl
5.16 with mp1.


Re: Problem compiling 1.0 on linux

Posted by "Hans C. Poo" <ha...@welinux.cl>.
Fred,

Yea, i know the platform is outdated, it is a very legacy system and we are planning a complete rebuild... finally i installed a virtual machine with ubuntu 10.04 (a two year old release of linux) and it compiled without problems, in this way we'll be able to cope with maintenance until the new system is ready. It was a gcc or glibc related issue.

Thanks
Hans

Hans Poo, Welinux S.A.
Bombero Ossa #1010, oficina 800, 
+56-2-3729770, Movil: +56-9-3199305
Santiago, Chile


----- Mensaje original -----
> De: "Fred Moyer" <fr...@redhotpenguin.com>
> Para: "Hans C. Poo" <ha...@welinux.cl>
> CC: "mod_perl list" <mo...@perl.apache.org>
> Enviados: Viernes, 7 de Diciembre 2012 0:17:15
> Asunto: Re: Problem compiling 1.0 on linux
> 
> On Mon, Dec 3, 2012 at 6:26 AM, Hans C. Poo <ha...@welinux.cl> wrote:
> > I've continued looking with more atention, and the format messages
> > were just warnings, the error appears with an lvalue assignement
> > in mod_perl.c:
> 
> Are you able to implement mod_perl2? Apache 1.x in particular has
> reached end of life status.
> 
> >
> > mod_perl.c:790:15: error: lvalue required as left operand of
> > assignment
> >
> > And the aforementioned line is:
> >
> >   GvCV(exitgp) = perl_get_cv("Apache::exit", TRUE);
> >
> >
> > ¿ Not sure but it's a gcc thing ?
> >
> > Hans
> >
> > Hans Poo, Welinux S.A.
> > Bombero Ossa #1010, oficina 800,
> > +56-2-3729770, Movil: +56-9-3199305
> > Santiago, Chile
> >
> >
> > ----- Mensaje original -----
> >> De: "Hans C. Poo" <ha...@welinux.cl>
> >> Para: modperl@perl.apache.org
> >> Enviados: Lunes, 3 de Diciembre 2012 11:02:56
> >> Asunto: Problem compiling 1.0 on linux
> >>
> >> Hi.
> >>
> >> I have a legacy mod_perl project, and need to create a development
> >> environment.
> >>
> >> mod_perl-1.31 y apache_1.3.41 on Ubuntu Linux 12.04
> >>
> >> The makefile is created fine:
> >> hans@tierra:~/desarrollo/mod_perl-1.31$ perl Makefile.PL
> >> DO_HTTPD=1
> >> USE_APACI=1 EVERYTHING=1
> >>
> >> Then, when issuing make:
> >>
> >> cc -O2 -g -I/usr/lib/perl/5.14/CORE -D_REENTRANT  -DDEBIAN
> >> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
> >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> >> -DMOD_PERL_VERSION=\"1.31\"
> >> -DMOD_PERL_STRING_VERSION=\"mod_perl/1.31\" -I../..
> >> -I/usr/lib/perl/5.14/CORE -I../../os/unix -I../../include
> >>    -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_PERL -DUSE_PERL_SSI
> >> -D_REENTRANT  -DDEBIAN -fno-strict-aliasing -pipe
> >> -fstack-protector
> >> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> >> -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT  -DDEBIAN
> >> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
> >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `../../apaci` -c
> >> mod_perl.c
> >> mod_perl.c: En la función ‘mp_check_version’:
> >> mod_perl.c:538:2: aviso: se desconoce el carácter de tipo de
> >> conversión ‘_’ en el formato [-Wformat]
> >> mod_perl.c: En la función ‘perl_module_init’:
> >> mod_perl.c:564:2: aviso: se desconoce el carácter de tipo de
> >> conversión ‘v’ en el formato [-Wformat]
> >> mod_perl.c: En la función ‘perl_startup’:
> >> mod_perl.c:790:15: error: se requiere un l-valor como operando
> >> izquierdo de la asignación
> >> make[5]: *** [mod_perl.o] Error 1
> >> make[4]: *** [all] Error 1
> >> make[3]: *** [subdirs] Error 1
> >>
> >> Looking at the code, there are some formats en the form %_ until i
> >> can see it is complaining for the underscore.
> >>
> >> Thanks
> >> Hans
> >>
> 

Re: Problem compiling 1.0 on linux

Posted by Fred Moyer <fr...@redhotpenguin.com>.
On Mon, Dec 3, 2012 at 6:26 AM, Hans C. Poo <ha...@welinux.cl> wrote:
> I've continued looking with more atention, and the format messages were just warnings, the error appears with an lvalue assignement in mod_perl.c:

Are you able to implement mod_perl2? Apache 1.x in particular has
reached end of life status.

>
> mod_perl.c:790:15: error: lvalue required as left operand of assignment
>
> And the aforementioned line is:
>
>   GvCV(exitgp) = perl_get_cv("Apache::exit", TRUE);
>
>
> ¿ Not sure but it's a gcc thing ?
>
> Hans
>
> Hans Poo, Welinux S.A.
> Bombero Ossa #1010, oficina 800,
> +56-2-3729770, Movil: +56-9-3199305
> Santiago, Chile
>
>
> ----- Mensaje original -----
>> De: "Hans C. Poo" <ha...@welinux.cl>
>> Para: modperl@perl.apache.org
>> Enviados: Lunes, 3 de Diciembre 2012 11:02:56
>> Asunto: Problem compiling 1.0 on linux
>>
>> Hi.
>>
>> I have a legacy mod_perl project, and need to create a development
>> environment.
>>
>> mod_perl-1.31 y apache_1.3.41 on Ubuntu Linux 12.04
>>
>> The makefile is created fine:
>> hans@tierra:~/desarrollo/mod_perl-1.31$ perl Makefile.PL DO_HTTPD=1
>> USE_APACI=1 EVERYTHING=1
>>
>> Then, when issuing make:
>>
>> cc -O2 -g -I/usr/lib/perl/5.14/CORE -D_REENTRANT  -DDEBIAN
>> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
>> -DMOD_PERL_VERSION=\"1.31\"
>> -DMOD_PERL_STRING_VERSION=\"mod_perl/1.31\" -I../..
>> -I/usr/lib/perl/5.14/CORE -I../../os/unix -I../../include
>>    -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_PERL -DUSE_PERL_SSI
>> -D_REENTRANT  -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector
>> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
>> -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT  -DDEBIAN
>> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `../../apaci` -c
>> mod_perl.c
>> mod_perl.c: En la función ‘mp_check_version’:
>> mod_perl.c:538:2: aviso: se desconoce el carácter de tipo de
>> conversión ‘_’ en el formato [-Wformat]
>> mod_perl.c: En la función ‘perl_module_init’:
>> mod_perl.c:564:2: aviso: se desconoce el carácter de tipo de
>> conversión ‘v’ en el formato [-Wformat]
>> mod_perl.c: En la función ‘perl_startup’:
>> mod_perl.c:790:15: error: se requiere un l-valor como operando
>> izquierdo de la asignación
>> make[5]: *** [mod_perl.o] Error 1
>> make[4]: *** [all] Error 1
>> make[3]: *** [subdirs] Error 1
>>
>> Looking at the code, there are some formats en the form %_ until i
>> can see it is complaining for the underscore.
>>
>> Thanks
>> Hans
>>

Re: Problem compiling 1.0 on linux

Posted by "Hans C. Poo" <ha...@welinux.cl>.
Hi,

I've continued looking with more atention, and the format messages were just warnings, the error appears with an lvalue assignement in mod_perl.c:

mod_perl.c:790:15: error: lvalue required as left operand of assignment

And the aforementioned line is:

  GvCV(exitgp) = perl_get_cv("Apache::exit", TRUE);


¿ Not sure but it's a gcc thing ?

Hans

Hans Poo, Welinux S.A.
Bombero Ossa #1010, oficina 800, 
+56-2-3729770, Movil: +56-9-3199305
Santiago, Chile


----- Mensaje original -----
> De: "Hans C. Poo" <ha...@welinux.cl>
> Para: modperl@perl.apache.org
> Enviados: Lunes, 3 de Diciembre 2012 11:02:56
> Asunto: Problem compiling 1.0 on linux
> 
> Hi.
> 
> I have a legacy mod_perl project, and need to create a development
> environment.
> 
> mod_perl-1.31 y apache_1.3.41 on Ubuntu Linux 12.04
> 
> The makefile is created fine:
> hans@tierra:~/desarrollo/mod_perl-1.31$ perl Makefile.PL DO_HTTPD=1
> USE_APACI=1 EVERYTHING=1
> 
> Then, when issuing make:
> 
> cc -O2 -g -I/usr/lib/perl/5.14/CORE -D_REENTRANT  -DDEBIAN
> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -DMOD_PERL_VERSION=\"1.31\"
> -DMOD_PERL_STRING_VERSION=\"mod_perl/1.31\" -I../..
> -I/usr/lib/perl/5.14/CORE -I../../os/unix -I../../include
>    -DLINUX=22 -DHAVE_SET_DUMPABLE -DMOD_PERL -DUSE_PERL_SSI
> -D_REENTRANT  -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -DUSE_HSREGEX -DNO_DL_NEEDED -D_REENTRANT  -DDEBIAN
> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `../../apaci` -c
> mod_perl.c
> mod_perl.c: En la función ‘mp_check_version’:
> mod_perl.c:538:2: aviso: se desconoce el carácter de tipo de
> conversión ‘_’ en el formato [-Wformat]
> mod_perl.c: En la función ‘perl_module_init’:
> mod_perl.c:564:2: aviso: se desconoce el carácter de tipo de
> conversión ‘v’ en el formato [-Wformat]
> mod_perl.c: En la función ‘perl_startup’:
> mod_perl.c:790:15: error: se requiere un l-valor como operando
> izquierdo de la asignación
> make[5]: *** [mod_perl.o] Error 1
> make[4]: *** [all] Error 1
> make[3]: *** [subdirs] Error 1
> 
> Looking at the code, there are some formats en the form %_ until i
> can see it is complaining for the underscore.
> 
> Thanks
> Hans
>