You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Kristian Elof Sørensen <el...@image.dk> on 2004/10/06 18:30:39 UTC

compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Hi

Compiling mod_perl-1.99_16 on OpenBSD 3.4 on x86 hardware with apache 2.0.52

# perl Makefile.PL MP_APXS=/var/www2/bin/bin/apxs MP_INST_APACHE2=1

completes

# make

fails after several minutes of compilation, the last lines being:

cc -c  -I/tmp/mod_perl-1.99_16/src/modules/perl 
-I/tmp/mod_perl-1.99_16/xs -I/var/www2/include -I/var/www2/include  
-fno-strict-aliasing -I/usr/local/include -DMOD_PERL -DMP_COMPAT_1X 
-D_POSIX_THREADS -O2    -DVERSION=\"0.01\"  -DXS_VERSION=\"0.01\" -DPIC 
-fPIC "-I/usr/libdata/perl5/i386-openbsd/5.8.0/CORE"  -DMP_HAVE_APR_LIBS 
Const.c
Running Mkbootstrap for APR::Const ()
chmod 644 Const.bs
rm -f ../../../blib/arch/Apache2/auto/APR/Const/Const.so
LD_RUN_PATH="" cc  -shared -fPIC Const.o -Wl,-E -o 
../../../blib/arch/Apache2/auto/APR/Const/Const.so
chmod 755 ../../../blib/arch/Apache2/auto/APR/Const/Const.so
cp Const.bs ../../../blib/arch/Apache2/auto/APR/Const/Const.bs
chmod 644 ../../../blib/arch/Apache2/auto/APR/Const/Const.bs
cp PerlIO.pm ../../../blib/lib/Apache2/APR/PerlIO.pm
/usr/bin/perl /usr/libdata/perl5/ExtUtils/xsubpp  -typemap 
/usr/libdata/perl5/ExtUtils/typemap -typemap 
/tmp/mod_perl-1.99_16/xs/typemap  PerlIO.xs > PerlIO.xsc && mv 
PerlIO.xsc PerlIO.c
cc -c  -I/tmp/mod_perl-1.99_16/src/modules/perl 
-I/tmp/mod_perl-1.99_16/xs -I/var/www2/include -I/var/www2/include  
-fno-strict-aliasing -I/usr/local/include 
-I/usr/libdata/perl5/i386-openbsd/5.8.0/CORE -DMOD_PERL -DMP_COMPAT_1X 
-D_POSIX_THREADS -O2    -DVERSION=\"0.01\"  -DXS_VERSION=\"0.01\" -DPIC 
-fPIC "-I/usr/libdata/perl5/i386-openbsd/5.8.0/CORE"  -DMP_HAVE_APR_LIBS 
PerlIO.c
cc -c  -I/tmp/mod_perl-1.99_16/src/modules/perl 
-I/tmp/mod_perl-1.99_16/xs -I/var/www2/include -I/var/www2/include  
-fno-strict-aliasing -I/usr/local/include 
-I/usr/libdata/perl5/i386-openbsd/5.8.0/CORE -DMOD_PERL -DMP_COMPAT_1X 
-D_POSIX_THREADS -O2    -DVERSION=\"0.01\"  -DXS_VERSION=\"0.01\" -DPIC 
-fPIC "-I/usr/libdata/perl5/i386-openbsd/5.8.0/CORE"  -DMP_HAVE_APR_LIBS 
modperl_apr_perlio.c
Running Mkbootstrap for APR::PerlIO ()
chmod 644 PerlIO.bs
rm -f ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.so
LD_RUN_PATH="" cc  -shared -fPIC PerlIO.o modperl_apr_perlio.o -Wl,-E -o 
../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.so
chmod 755 ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.so
cp PerlIO.bs ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.bs
chmod 644 ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.bs
make: don't know how to make dynamic. Stop in 
/tmp/mod_perl-1.99_16/xs/APR/aprext.
*** Error code 2

Stop in /tmp/mod_perl-1.99_16/xs/APR (line 413 of Makefile).
*** Error code 1

Stop in /tmp/mod_perl-1.99_16/xs (line 406 of Makefile).
*** Error code 1

Stop in /tmp/mod_perl-1.99_16 (line 677 of Makefile).


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Posted by Kristian Elof Sørensen <el...@image.dk>.
Stas Bekman wrote:

> Kristian Elof Sørensen wrote:
>
>>
>>>
>>> Kristian, please try the current cvs:
>>> http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution 
>>>
>>>
>> Thanks for the tip. However the compilation fails with the same error 
>> message at nearly the same line numbers as with the 1.99_16 version :-(
>
>
> http://perl.apache.org/docs/2.0/user/troubleshooting/troubleshooting.html#make__don_t_know_how_to_make_dynamic__Stop 
>


This one fixed the problem.

Thanks!

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Posted by Stas Bekman <st...@stason.org>.
Kristian Elof Sørensen wrote:
> 
>>
>> Kristian, please try the current cvs:
>> http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution 
>>
>>
> Thanks for the tip. However the compilation fails with the same error 
> message at nearly the same line numbers as with the 1.99_16 version :-(

http://perl.apache.org/docs/2.0/user/troubleshooting/troubleshooting.html#make__don_t_know_how_to_make_dynamic__Stop
-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Posted by Kristian Elof Sørensen <el...@image.dk>.
>
> Kristian, please try the current cvs:
> http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution 
>
>
Thanks for the tip. However the compilation fails with the same error 
message at nearly the same line numbers as with the 1.99_16 version :-(






-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.

Stas Bekman wrote:
> Philippe M. Chiasson wrote:
> 
>>Kristian Elof Sørensen wrote:
>>
>>
>>>>Also worth a shot is to try 'gmake' instead of 'make'
>>>
>>>
>>>
>>>
>>>Thanks for the suggestion, however there is no gmake on OpenBSD since 
>>>gnu make is the standard make on OpenBSD.
>>>
> [...]
>>
>>And it's from /usr/ports/devel/gmake
> 
> 
> In either case it's probably the best to try to install some dummy 
> 'dynamic:' target or have some other workaround for this MakeMaker bug. 
> Otherwise we will have to deal with this questions a way to often...
>    >> todo/release?

I've successfully tested this on OpenBSD's make. Seems having a target in .PHONY
isn't enough, an explicit rule must be present as well. I've patched Makefile.PL
to always at least generate an empty 'dynamic' target, and now mod_perl builds
perfectly fine with either GNU make, or BDS make.

-- 
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Posted by Stas Bekman <st...@stason.org>.
Philippe M. Chiasson wrote:
> Kristian Elof Sørensen wrote:
> 
>>
>>>>
>>> Also worth a shot is to try 'gmake' instead of 'make'
>>
>>
>>
>>
>> Thanks for the suggestion, however there is no gmake on OpenBSD since 
>> gnu make is the standard make on OpenBSD.
>>
> On my OpenBSD 3.5 box, I seem to have both:
> 
> [root@openbsd root]# make --version
> make: unknown option -- -
> usage: make [-Beiknqrst] [-D variable] [-d flags] [-f makefile ]
>            [-I directory] [-j max_jobs] [-m directory] [-V variable]
>            [variable=value] [target ...]
> [root@openbsd root]# gmake --version
> GNU Make 3.80
> Copyright (C) 2002  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> 
> And it's from /usr/ports/devel/gmake

In either case it's probably the best to try to install some dummy 
'dynamic:' target or have some other workaround for this MakeMaker bug. 
Otherwise we will have to deal with this questions a way to often...
   >> todo/release?

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
Kristian Elof Sørensen wrote:

>
>>>
>> Also worth a shot is to try 'gmake' instead of 'make'
>
>
>
> Thanks for the suggestion, however there is no gmake on OpenBSD since 
> gnu make is the standard make on OpenBSD.
>
On my OpenBSD 3.5 box, I seem to have both:

[root@openbsd root]# make --version
make: unknown option -- -
usage: make [-Beiknqrst] [-D variable] [-d flags] [-f makefile ]
            [-I directory] [-j max_jobs] [-m directory] [-V variable]
            [variable=value] [target ...]
[root@openbsd root]# gmake --version
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

And it's from /usr/ports/devel/gmake

Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Posted by Kristian Elof Sørensen <el...@image.dk>.
>>
> Also worth a shot is to try 'gmake' instead of 'make'


Thanks for the suggestion, however there is no gmake on OpenBSD since 
gnu make is the standard make on OpenBSD.

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
Stas Bekman wrote:

> Kristian Elof Sørensen wrote:
>
>> Hi
>>
>> Compiling mod_perl-1.99_16 on OpenBSD 3.4 on x86 hardware with apache 
>> 2.0.52
>>
>> # perl Makefile.PL MP_APXS=/var/www2/bin/bin/apxs MP_INST_APACHE2=1
>>
>> completes
>>
>> # make
>>
>> fails after several minutes of compilation, the last lines being:
>
> [...]
>
>> make: don't know how to make dynamic. Stop in 
>> /tmp/mod_perl-1.99_16/xs/APR/aprext.
>
>
> Kristian, please try the current cvs:
> http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution 
>
>
Also worth a shot is to try 'gmake' instead of 'make'

Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

Posted by Stas Bekman <st...@stason.org>.
Kristian Elof Sørensen wrote:
> Hi
> 
> Compiling mod_perl-1.99_16 on OpenBSD 3.4 on x86 hardware with apache 
> 2.0.52
> 
> # perl Makefile.PL MP_APXS=/var/www2/bin/bin/apxs MP_INST_APACHE2=1
> 
> completes
> 
> # make
> 
> fails after several minutes of compilation, the last lines being:
[...]
> make: don't know how to make dynamic. Stop in 
> /tmp/mod_perl-1.99_16/xs/APR/aprext.

Kristian, please try the current cvs:
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html