Re: Are there windows binaries for 5.20?

André Warnier <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Hi.

I am a bit confused now.
I have downloaded 
http://people.apache.org/~stevehay/mod_perl-2.0.8-strawberryperl-5.18.4.1-32bit-no64.zip
(for which many thanks anyway, no matter what follows).
I tried to use that first on my old and venerable Windows XP 32-bit SP3 laptop.
When trying to compile a small test module (see below), I got a compilation error :

C:\develop\06_SVN\AP2lib\trunk\modlib\AM>perl -cw Basket.pm
panic: no address for 'Apache2::Const::compile' in 'Const.xs' at C:/strawberry/p
erl/lib/XSLoader.pm line 92.
Compilation failed in require at Basket.pm line 9.
BEGIN failed--compilation aborted at Basket.pm line 9.

Line 9 is :
use Apache2::Const -compile => qw(REDIRECT);
or just
use Apache2::Const;

But this (old and venerable) laptop is also quite messy, so I didn't trust it all that 
much.  I thus tried this all again on a much more recent and clean 64-bit Windows 7 Pro 
workstation, on which there is installed :
- StrawberryPerl 5.18 32-bit , in c:\strawberry.
- Apache 2.2.29 32-bit (ApacheLounge : 
https://www.apachelounge.com/download/win32/binaries/httpd-2.2.29-win32.zip), in c:\apache2

The full versions of both can be found in the attached file "test_mp2_compile.txt".

Following the instructions in the mod_perl zip file above, I copied
- the zip-file's "Apache2" directory over C:\Apache2
- the zip-file's "Strawberry" directory over C:\strawberry

Then I tried to compile the small partial module again (source shown also in the attached 
text file). And I first got the errors successively shown in the attachments screenshots.
The first (error_01) popup seems to tell me that the file "libaprutil-1.dll" isn't found, 
after which I get some strange perl compiler error.
The file is there however, as shown in error_03.jpg.

That is apparently solved by adding "C:\apache2\bin" to the system PATH variable (which 
the ApacheLounge installation doesn't do).

But then, trying to compile the test module again, the popup doesn't occur anymore, but I 
get another compile error as shown in "error_04.jpg", which is the same error as on my old 
and venerable and messy laptop (which seems thus to be not so totally messy after all, at 
least not in that respect).

What am I missing (on both systems) ?

TIA
André




Steve Hay wrote:
> On 15 Feb 2015 16:37, "Michael Lackhoff" <[email protected]> wrote:
>> Am 15.02.2015 um 17:15 schrieb Steve Hay:
>>
>>> I will put some new ones up at http://people.apache.org/~stevehay/
>>> soon, by they'll be 64-bit only for now.
>> Thanks! Though it might be difficult to get everything else I need in
>> 64bit, too.
>>
>>> If you want 32-bit then the easiest way is to build it yourself using
>>> a perl that you built yourself with the same compiler.
>> Is there a recommended compiler? I use Strawberry perl, do you know
>> which compiler is used for that perl? As you say, it would be better to
>> use the same. And I would like to stick to it because there are so many
>> binaries of difficult modules already included.
>>
> 
> Unfortunately you'll need to use VC++ for now because mod_perl doesn't
> currently support gcc/dmake (which is what both StrawberryPerl and
> ActivePerl now use). I hope to fix that soon, though...
> 
>>> You just need to get APXS from
>>> https://svn.apache.org/repos/asf/perl/apxs/trunk and run something
>>> like
>>>
>>> perl Configure.pl --with-apache2=C:\apache --with-apache-prog=httpd.exe
>> do I also have to compile apache myself? Or just put the src under
>> c:\apache?
>>
> 
> A prebuilt one, say from Apache Lounge, using the same VC++ should be ok,
> but I build Apache from source too just to rule out any possible
> compatibility problems.
> It's the binary installation, not the source tree, that you need in
> C:\apache in my example.
>
test_mp2_compile.txt (text/plain, 5.5 KB)
C:\Apache2>bin\httpd -Vv
Server version: Apache/2.2.29 (Win32)
Server built:   Feb  3 2015 10:54:00
Server's Module Magic Number: 20051115:36
Server loaded:  APR 1.5.1, APR-Util 1.5.3
Compiled using: APR 1.5.1, APR-Util 1.5.3
Architecture:   32-bit
Server MPM:     WinNT
  threaded:     yes (fixed thread count)
    forked:     no
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/winnt"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/apache"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error.log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

C:\Apache2>

C:\strawberry>perl\bin\perl -V
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:

  Platform:
    osname=MSWin32, osvers=6.2, archname=MSWin32-x86-multi-thread-64int
    uname='Win32 strawberry-perl 5.18.2.2 #1 Tue Apr 15 18:02:21 2014 i386'
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags =' -s -O2 -DWIN32  -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT
_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitfields',
    optimize='-s -O2',
    cppflags='-DWIN32'
    ccversion='', gccversion='4.7.3', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='long long',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\li
b"'
    libpth=C:\strawberry\c\lib C:\strawberry\c\i686-w64-mingw32\lib C:\strawberr
y\c\lib\gcc\i686-w64-mingw32\4.7.3
    libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion
 -lodbc32 -lodbccp32 -lcomctl32
    perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladva
pi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lver
sion -lodbc32 -lodbccp32 -lcomctl32
    libc=, so=dll, useshrplib=true, libperl=libperl518.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\st
rawberry\c\lib"'


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
                        PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
                        PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
                        PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_SAWAMPERSAND
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
  Built under MSWin32
  Compiled at Apr 15 2014 18:11:20
  @INC:
    C:/strawberry/perl/site/lib
    C:/strawberry/perl/vendor/lib
    C:/strawberry/perl/lib
    .


C:\strawberry>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\mira\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=ERIC
ComSpec=C:\Windows\system32\cmd.exe
EFSDIR=C:\Mira\EFS
FONTCONFIG_FILE=E:\efs\bin\poppler\etc\fonts\fonts.conf
FP_NO_HOST_CHECK=NO
FREPath=C:\Mira\Finereader105
HOMEDRIVE=C:
HOMEPATH=\Users\mira
LOCALAPPDATA=C:\Users\mira\AppData\Local
LOGONSERVER=\\ERIC
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\Program Files (x86)\ActiveState Komodo IDE 6\;C:\ProgramData\Oracle\Java
\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Sys
tem32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Bi
nn\;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 44 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2c02
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\mira\AppData\Local\Temp
TMP=C:\Users\mira\AppData\Local\Temp
USERDOMAIN=eric
USERNAME=mira
USERPROFILE=C:\Users\mira
VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools
\
windir=C:\Windows
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log

C:\strawberry>

-- Program source start --

package AM::Basket;
# File : AM/Basket.pm
# CVS version : $Id$

use Apache2::RequestRec ();
use APR::Table ();
use Apache2::Const -compile => qw(REDIRECT);

use strict;

use CGI::Cookie ();

-- program source end --
error_03.jpg (image/jpeg, 93.6 KB) - not displayed
Error_01.jpg (image/jpeg, 12.4 KB) - not displayed
Error_02.jpg (image/jpeg, 65.2 KB) - not displayed
error_04.jpg (image/jpeg, 29.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.