You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Dmitri Dmitrienko <dd...@cron.ru> on 2003/02/17 23:42:44 UTC
problem with mod_perl1.27 & perl5.8/apa1.3.27
Hello,
I got following problem when compiled mod_perl 1.27 for Apache 1.3.27 and perl 5.8 for Win32 platform:
Constants.xs(158) : error C2065: 'errno' : undeclared identifier
after few hours of jumping around compiler I realized that #include <errno.h> should be commented out in perl.h.
Then everything became good.
Please tell me is anybody experienced anything like I did ?
Is there any "official" workaround ?
BTW, everything was ok with perl 5.6.0...
TIA
Re: problem with mod_perl1.27 & perl5.8/apa1.3.27
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 18 Feb 2003, Dmitri Dmitrienko wrote:
> It's a big fuzz :)) To get errno defined it was necessary to
> comment out include <errno.h>. Stupid thing...
I believe this is fixed in the cvs mod_perl sources, in
particular a change to src/modules/perl/apache_inc.h. Try those
to see if that helps.
--
best regards,
randy
Re: problem with mod_perl1.27 & perl5.8/apa1.3.27
Posted by Dmitri Dmitrienko <dd...@cron.ru>.
> > Summary of my perl5 (revision 5 version 8 subversion 0) configuration:
> > Platform:
> > osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
> [ .. ]
> > Characteristics of this binary (from libperl):
> > Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT
> > PERL_IMPLICIT_SYS
>
> Thanks for sending that ... That's strange - Win32 ActivePerl 8xx
> doesn't compile with mod_perl-1.27 because USE_LARGE_FILES is
> defined at compile-time, but you don't have that. Some time ago I
> tried a Win32 Perl-5.8 without USE_LARGE_FILES (just as you have)
> with mod_perl-1.27, and didn't see the problem you had with
> errno. Although it shouldn't make a difference here, did you use
> the stock CPAN sources or the ActiveState sources in compiling
> Perl? Also, do you find the same problem using the CVS mod_perl
> sources (http://perl.apache.org/download/source.html)?
Sure, I got the source package from CPAN.
md5sum:
d9bdb180620306023fd35901a2878b62 *perl-5.8.0.tar.gz
Also, my compiler is MS Visual Studio 6, service pack 5 installed (the
latest one).
It's a big fuzz :)) To get errno defined it was necessary to comment out
include <errno.h>. Stupid thing...
TIA,
-dmitri.
Re: problem with mod_perl1.27 & perl5.8/apa1.3.27
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 18 Feb 2003, Dmitri Dmitrienko wrote:
> Summary of my perl5 (revision 5 version 8 subversion 0) configuration:
> Platform:
> osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
[ .. ]
> Characteristics of this binary (from libperl):
> Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT
> PERL_IMPLICIT_SYS
Thanks for sending that ... That's strange - Win32 ActivePerl 8xx
doesn't compile with mod_perl-1.27 because USE_LARGE_FILES is
defined at compile-time, but you don't have that. Some time ago I
tried a Win32 Perl-5.8 without USE_LARGE_FILES (just as you have)
with mod_perl-1.27, and didn't see the problem you had with
errno. Although it shouldn't make a difference here, did you use
the stock CPAN sources or the ActiveState sources in compiling
Perl? Also, do you find the same problem using the CVS mod_perl
sources (http://perl.apache.org/download/source.html)?
--
best regards,
randy
Re: problem with mod_perl1.27 & perl5.8/apa1.3.27
Posted by Dmitri Dmitrienko <dd...@cron.ru>.
Summary of my perl5 (revision 5 version 8 subversion 0) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags
='-nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_I
MPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX',
optimize='-MD -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags
'-nologo -nodefaultlib -release -libpath:"C:\install.static\Win32\perl\Win3
2-Binary\lib\CORE" -machine:x86'
libpth=\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib
uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib
msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib
uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib
msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ',
ddlflags='-dll -nologo -nodefaultlib -release -libpath:"C:\install.static\W
in32\perl\Win32-Binary\lib\CORE" -machine:x86'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT
PERL_IMPLICIT_SYS
Built under MSWin32
Compiled at Feb 17 2003 10:30:15
@INC:
C:/install.static/Win32/perl/Win32-Binary/lib
C:/install.static/Win32/perl/Win32-Binary/site/lib
.
Options given to mod_perl's Makefile.PL:
C:/install.static/Win32/perl/Win32-Binary/lib/perl.exe Makefile.PL
APACHE_SRC=/tmp/apache-1.3.27 INSTALL_DLL=/tmp/apache-1.3.27/src/modules
EAPI=1
-dmitri.
> Dmitri Dmitrienko wrote:
> >>>Hello,
> >>>
> >>>I got following problem when compiled mod_perl 1.27 for Apache
> >>>1.3.27 and perl 5.8 for Win32 platform:
> >>>
> >>>Constants.xs(158) : error C2065: 'errno' : undeclared identifier
> >>>
> >>>after few hours of jumping around compiler I realized that
> >>>#include <errno.h> should be commented out in perl.h. Then
> >>>everything became good.
> >>>
> >>>Please tell me is anybody experienced anything like I did ?
> >>>Is there any "official" workaround ?
> >>>
> >>>BTW, everything was ok with perl 5.6.0...
> >>>
> >>
> >>What's 'perl -V' for you?
> >
> >
> >
> > 5.8.0 (as shown in the topic)
>
> not 'perl -v', but 'perl -V'.
>
> Posters can save a lot of their and our time by following these guidelines
> when asking for help:
>
> 1.0 - related:
> http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
> 2.0 - related:
> http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
>
> Both linked from the 'shortcuts' menu!
>
>
> __________________________________________________________________
> 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
>
Re: problem with mod_perl1.27 & perl5.8/apa1.3.27
Posted by Stas Bekman <st...@stason.org>.
Dmitri Dmitrienko wrote:
>>>Hello,
>>>
>>>I got following problem when compiled mod_perl 1.27 for Apache
>>>1.3.27 and perl 5.8 for Win32 platform:
>>>
>>>Constants.xs(158) : error C2065: 'errno' : undeclared identifier
>>>
>>>after few hours of jumping around compiler I realized that
>>>#include <errno.h> should be commented out in perl.h. Then
>>>everything became good.
>>>
>>>Please tell me is anybody experienced anything like I did ?
>>>Is there any "official" workaround ?
>>>
>>>BTW, everything was ok with perl 5.6.0...
>>>
>>
>>What's 'perl -V' for you?
>
>
>
> 5.8.0 (as shown in the topic)
not 'perl -v', but 'perl -V'.
Posters can save a lot of their and our time by following these guidelines
when asking for help:
1.0 - related:
http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
2.0 - related:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
Both linked from the 'shortcuts' menu!
__________________________________________________________________
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
Re: problem with mod_perl1.27 & perl5.8/apa1.3.27
Posted by Dmitri Dmitrienko <dd...@cron.ru>.
> > Hello,
> >
> > I got following problem when compiled mod_perl 1.27 for Apache
> > 1.3.27 and perl 5.8 for Win32 platform:
> >
> > Constants.xs(158) : error C2065: 'errno' : undeclared identifier
> >
> > after few hours of jumping around compiler I realized that
> > #include <errno.h> should be commented out in perl.h. Then
> > everything became good.
> >
> > Please tell me is anybody experienced anything like I did ?
> > Is there any "official" workaround ?
> >
> > BTW, everything was ok with perl 5.6.0...
> >
>
> What's 'perl -V' for you?
5.8.0 (as shown in the topic)
Re: problem with mod_perl1.27 & perl5.8/apa1.3.27
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 18 Feb 2003, Dmitri Dmitrienko wrote:
> Hello,
>
> I got following problem when compiled mod_perl 1.27 for Apache
> 1.3.27 and perl 5.8 for Win32 platform:
>
> Constants.xs(158) : error C2065: 'errno' : undeclared identifier
>
> after few hours of jumping around compiler I realized that
> #include <errno.h> should be commented out in perl.h. Then
> everything became good.
>
> Please tell me is anybody experienced anything like I did ?
> Is there any "official" workaround ?
>
> BTW, everything was ok with perl 5.6.0...
>
What's 'perl -V' for you?
--
best regards,
randy kobes