----- Original Message -----
From: Gerald Richter <[EMAIL PROTECTED]>
To: Rolf Ohnmacht <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, December 11, 1999 5:08 PM
Subject: RE: EmbPerl use HTML::Embperl failed

Gerald,

"nmake test" did (and does) not work correct !!! When I installed EmbPerl I
remarked that
but I tried to "nmake install" and no problem furthermore ... everything
works online fine!
Maybe the "perl makefile.pl", "nmake" and "nmake test" - output can be more
help to figure
the problem: (path to apachemoduleperl.dll  for "perl makefile" is
"c:/apache/modules")

--------------------------------

"perl makefile" produces:

Running on Win 32
Build with support for Apache mod_perl?(y/n) [y]Use
c:\apache\apache_1.3.9\src as Apache source(y/n) [y]Will use
c:/apache/apache_1.3.9/src for Apache Headers
Apache Version Server version: Apache/1.3.9 (Win32)
Library for mod_perl.c not found, please enter path to apachemoduleperl.dll
Please enter full path including the drive letter!!  [] + Load dynamic
module mod_perl.c
Test start c:/apache/apache_1.3.9/src/ApacheR/Apache.exe
Test httpd will listen on port 8529
Found mod_perl  Version 1.21
Found LWP::UserAgent  Version 1.68
Found HTML::HeadParser  Version 2.10
Found Apache::Session  Version 1.03
Found CGI  Version 2.53
Usage: xsubpp [-v] [-C++] [-except] [-prototypes] [-noversioncheck]
[-nolinenumbers] [-s pattern] [-typemap typemap]... file.xs
Writing Makefile for HTML::Embperl

--------------------------------

"nmake" produces:

Microsoft (R) Program Maintenance-Dienstprogramm: Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. Alle Rechte vorbehalten.

Skip blib\lib\HTML\embpexec.test.pl (unchanged)
Skip blib\lib\HTML\Embperl.pod (unchanged)
Skip blib\lib\Apache\Session\epDBI.pm (unchanged)
Skip blib\lib\HTML\Changes.pod (unchanged)
Skip blib\lib\HTML\Faq.pod (unchanged)
Skip blib\lib\HTML\FeaturesD.pod (unchanged)
Skip blib\lib\HTML\Embperl.pm (unchanged)
Skip blib\lib\HTML\Embperl\Module.pm (unchanged)
Skip blib\lib\HTML\Intro.pod (unchanged)
Skip blib\lib\HTML\INSTALL.pod (unchanged)
Skip blib\lib\HTML\embpexec.pl (unchanged)
Skip blib\lib\HTML\IntroD.pod (unchanged)
Skip blib\lib\HTML\EmbperlD.pod (unchanged)
Skip blib\lib\HTML\Features.pod (unchanged)

cl.exe -c -I. -Ic:/apache/apache_1.3.9/src/include -Ic:/apache/apache_1.3.9/
src/regex -Ic:/apache/apache_1.3.9/src/os/win32 -Od -MD -DNDEBUG -DWIN32 -D_
CONSOLE -DNO_STRICT -Od -MD -DNDEBUG      -DVERSION=\"1.2b9\"  -DXS_VERSION=
\"1.2b9\"  -IC:\perl5\5.00561\lib\MSWin32-x86\CORE -DAPACHE -D_WINSOCK2API_
Embperl.c
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 für 80x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

Embperl.c
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(79) : warning C4005:
'sleep' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(272) : Siehe
vorherige Definition von 'sleep'
C:\MVS\VC98\INCLUDE\stddef.h(78) : warning C4005: 'errno' :
Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(184) : Siehe
vorherige Definition von 'errno'
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(98) : warning C4005:
'stat' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(219) : Siehe
vorherige Definition von 'stat'

cl.exe -c -I. -Ic:/apache/apache_1.3.9/src/include -Ic:/apache/apache_1.3.9/
src/regex -Ic:/apache/apache_1.3.9/src/os/win32 -Od -MD -DNDEBUG -DWIN32 -D_
CONSOLE -DNO_STRICT -Od -MD -DNDEBUG      -DVERSION=\"1.2b9\"  -DXS_VERSION=
\"1.2b9\"  -IC:\perl5\5.00561\lib\MSWin32-x86\CORE -DAPACHE -D_WINSOCK2API_
epmain.c
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 für 80x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

epmain.c
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(79) : warning C4005:
'sleep' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(272) : Siehe
vorherige Definition von 'sleep'
C:\MVS\VC98\INCLUDE\stddef.h(78) : warning C4005: 'errno' :
Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(184) : Siehe
vorherige Definition von 'errno'
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(98) : warning C4005:
'stat' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(219) : Siehe
vorherige Definition von 'stat'
epmain.c(2190) : Warnung C4700: Lokale Variable 'pOut' wurde ohne
Initialisierung verwendet

cl.exe -c -I. -Ic:/apache/apache_1.3.9/src/include -Ic:/apache/apache_1.3.9/
src/regex -Ic:/apache/apache_1.3.9/src/os/win32 -Od -MD -DNDEBUG -DWIN32 -D_
CONSOLE -DNO_STRICT -Od -MD -DNDEBUG      -DVERSION=\"1.2b9\"  -DXS_VERSION=
\"1.2b9\"  -IC:\perl5\5.00561\lib\MSWin32-x86\CORE -DAPACHE -D_WINSOCK2API_
epio.c
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 für 80x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

epio.c
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(79) : warning C4005:
'sleep' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(272) : Siehe
vorherige Definition von 'sleep'
C:\MVS\VC98\INCLUDE\stddef.h(78) : warning C4005: 'errno' :
Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(184) : Siehe
vorherige Definition von 'errno'
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(98) : warning C4005:
'stat' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(219) : Siehe
vorherige Definition von 'stat'

cl.exe -c -I. -Ic:/apache/apache_1.3.9/src/include -Ic:/apache/apache_1.3.9/
src/regex -Ic:/apache/apache_1.3.9/src/os/win32 -Od -MD -DNDEBUG -DWIN32 -D_
CONSOLE -DNO_STRICT -Od -MD -DNDEBUG      -DVERSION=\"1.2b9\"  -DXS_VERSION=
\"1.2b9\"  -IC:\perl5\5.00561\lib\MSWin32-x86\CORE -DAPACHE -D_WINSOCK2API_
epchar.c
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 für 80x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

epchar.c
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(79) : warning C4005:
'sleep' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(272) : Siehe
vorherige Definition von 'sleep'
C:\MVS\VC98\INCLUDE\stddef.h(78) : warning C4005: 'errno' :
Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(184) : Siehe
vorherige Definition von 'errno'
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(98) : warning C4005:
'stat' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(219) : Siehe
vorherige Definition von 'stat'

cl.exe -c -I. -Ic:/apache/apache_1.3.9/src/include -Ic:/apache/apache_1.3.9/
src/regex -Ic:/apache/apache_1.3.9/src/os/win32 -Od -MD -DNDEBUG -DWIN32 -D_
CONSOLE -DNO_STRICT -Od -MD -DNDEBUG      -DVERSION=\"1.2b9\"  -DXS_VERSION=
\"1.2b9\"  -IC:\perl5\5.00561\lib\MSWin32-x86\CORE -DAPACHE -D_WINSOCK2API_
epcmd.c
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 für 80x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

epcmd.c
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(79) : warning C4005:
'sleep' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(272) : Siehe
vorherige Definition von 'sleep'
C:\MVS\VC98\INCLUDE\stddef.h(78) : warning C4005: 'errno' :
Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(184) : Siehe
vorherige Definition von 'errno'
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(98) : warning C4005:
'stat' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(219) : Siehe
vorherige Definition von 'stat'

cl.exe -c -I. -Ic:/apache/apache_1.3.9/src/include -Ic:/apache/apache_1.3.9/
src/regex -Ic:/apache/apache_1.3.9/src/os/win32 -Od -MD -DNDEBUG -DWIN32 -D_
CONSOLE -DNO_STRICT -Od -MD -DNDEBUG      -DVERSION=\"1.2b9\"  -DXS_VERSION=
\"1.2b9\"  -IC:\perl5\5.00561\lib\MSWin32-x86\CORE -DAPACHE -D_WINSOCK2API_
eputil.c
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 für 80x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

eputil.c
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(79) : warning C4005:
'sleep' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(272) : Siehe
vorherige Definition von 'sleep'
C:\MVS\VC98\INCLUDE\stddef.h(78) : warning C4005: 'errno' :
Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(184) : Siehe
vorherige Definition von 'errno'
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(98) : warning C4005:
'stat' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(219) : Siehe
vorherige Definition von 'stat'

cl.exe -c -I. -Ic:/apache/apache_1.3.9/src/include -Ic:/apache/apache_1.3.9/
src/regex -Ic:/apache/apache_1.3.9/src/os/win32 -Od -MD -DNDEBUG -DWIN32 -D_
CONSOLE -DNO_STRICT -Od -MD -DNDEBUG      -DVERSION=\"1.2b9\"  -DXS_VERSION=
\"1.2b9\"  -IC:\perl5\5.00561\lib\MSWin32-x86\CORE -DAPACHE -D_WINSOCK2API_
epeval.c
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 für 80x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

epeval.c
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(79) : warning C4005:
'sleep' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(272) : Siehe
vorherige Definition von 'sleep'
C:\MVS\VC98\INCLUDE\stddef.h(78) : warning C4005: 'errno' :
Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(184) : Siehe
vorherige Definition von 'errno'
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(98) : warning C4005:
'stat' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(219) : Siehe
vorherige Definition von 'stat'

cl.exe -c -I. -Ic:/apache/apache_1.3.9/src/include -Ic:/apache/apache_1.3.9/
src/regex -Ic:/apache/apache_1.3.9/src/os/win32 -Od -MD -DNDEBUG -DWIN32 -D_
CONSOLE -DNO_STRICT -Od -MD -DNDEBUG      -DVERSION=\"1.2b9\"  -DXS_VERSION=
\"1.2b9\"  -IC:\perl5\5.00561\lib\MSWin32-x86\CORE -DAPACHE -D_WINSOCK2API_
epdbg.c
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 für 80x86
Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.

epdbg.c
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(79) : warning C4005:
'sleep' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(272) : Siehe
vorherige Definition von 'sleep'
C:\MVS\VC98\INCLUDE\stddef.h(78) : warning C4005: 'errno' :
Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(184) : Siehe
vorherige Definition von 'errno'
c:/apache/apache_1.3.9/src/include\../os/win32/os.h(98) : warning C4005:
'stat' : Makro-Neudefinition
        C:\perl5\5.00561\lib\MSWin32-x86\CORE\win32iop.h(219) : Siehe
vorherige Definition von 'stat'
"Running Mkbootstrap for HTML::Embperl ()"

C:\perl5\5.00561\bin\MSWin32-x86\perl.exe -Ic:\perl5\5.00561\lib\MSWin32-x86
 -Ic:\perl5\5.00561\lib -MExtUtils::Command -e chmod 644 Embperl.bs

link -out:blib\arch\auto\HTML\Embperl\Embperl.dll -dll -nologo -nodefaultlib
 -release -machine:x86 Embperl.obj epmain.obj epio.obj epchar.obj epcmd.obj
eputil.obj epeval.obj epdbg.obj
c:/apache/apache_1.3.9/src/CoreR/ApacheCore.lib
C:\perl5\5.00561\lib\MSWin32-x86\CORE\perl.lib 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 PerlCRT.lib -def:Embperl.def
   Bibliothek blib\arch\auto\HTML\Embperl\Embperl.lib und Objekt
blib\arch\auto\HTML\Embperl\Embperl.exp wird erstellt

C:\perl5\5.00561\bin\MSWin32-x86\perl.exe -Ic:\perl5\5.00561\lib\MSWin32-x86
 -Ic:\perl5\5.00561\lib -MExtUtils::Command -e chmod 755
blib\arch\auto\HTML\Embperl\Embperl.dll

C:\perl5\5.00561\bin\MSWin32-x86\perl.exe -Ic:\perl5\5.00561\lib\MSWin32-x86
 -Ic:\perl5\5.00561\lib -MExtUtils::Command -e cp Embperl.bs
blib\arch\auto\HTML\Embperl\Embperl.bs

C:\perl5\5.00561\bin\MSWin32-x86\perl.exe -Ic:\perl5\5.00561\lib\MSWin32-x86
 -Ic:\perl5\5.00561\lib -MExtUtils::Command -e chmod 644
blib\arch\auto\HTML\Embperl\Embperl.bs

--------------------------------

"nmake test" produces:

Microsoft (R) Program Maintenance-Dienstprogramm: Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. Alle Rechte vorbehalten.

 SET
PATH=C:\MVS\COMMON\msdev98\BIN;C:\MVS\VC98\BIN;C:\MVS\COMMON\TOOLS\WIN95;C:\
MVS\COMMON\TOOLS;C:\WINDOWS\SYSTEM;C:\PATH;C:\APACHE\;C:\PERL5\5.00561\BIN\M
SWIN32-X86;C:\PERL5\5.00561\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\4NT;C:\IBMV
JAVA\EAB\BIN;C:\JDK1.1\BIN;C:\PROGRA~1\ULTRAEDT;C:\PROGRAMME\MTS;C:\IFOR\WIN
\BIN;C:\IFOR\WIN\BIN\DE_DE;C:\IFOR\WIN\BIN;C:\IFOR\WIN\BIN\DE_DE;C:\IMNNQ_95
;c:/apache/apache_1.3.9/src/CoreR

C:\perl5\5.00561\bin\MSWin32-x86\perl.exe -Iblib\arch -Iblib\lib -Ic:\perl5\
5.00561\lib\MSWin32-x86 -Ic:\perl5\5.00561\lib test.pl

loading...                    Can't load
'blib\arch/auto/HTML/Embperl/Embperl.dll' for module HTML::Embperl:
load_file:Eine DLL-Initialisierungsroutine ist fehlgeschlagen at
c:\perl5\5.00561\lib\MSWin32-x86/DynaLoader.pm line 178.
 at test.pl line 550
BEGIN failed--compilation aborted at test.pl line 550.

Test terminated with fatal error
Use of uninitialized value at test.pl line 138.
Callback called exit at test.pl line 550.
END failed--cleanup aborted at test.pl line 550.
NMAKE : fatal error U1077: 'C:\perl5\5.00561\bin\MSWin32-x86\perl.exe' :
Rueckgabe-Code '0xff'
Stop.

--------------------------------

As you see in "nmake test", inside the PATH there is "c:\apache\" where
ApacheCore.dll resides so what's wrong?
Anything in my Perl-Configuration? Here it is:

--------------------------------

"perl -V" produces:

Summary of my perl5 (revision 5.0 version 5 subversion 61) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
  Compiler:
    cc='cl.exe', optimize='-Od -MD -DNDEBUG', gccversion=
    cppflags='-DWIN32'
    ccflags ='-Od -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT  '
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release -machine:x86'
    libpth=C:\MVS\VC98\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
PerlCRT.lib
    libc=PerlCRT.lib, so=dll, useshrplib=yes, libperl=perl.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ',
lddlflags='-dll -nologo -nodefaultlib -release -machine:x86'


Characteristics of this binary (from libperl):
  Built under MSWin32
  Compiled at Oct 10 1999 21:32:53
  %ENV:
    PERL5LIB="c:\perl_modules"
    PERLSHELL="4NT.EXE /C"
  @INC:
    c:\perl_modules
    C:/perl5/5.00561/lib/MSWin32-x86
    C:/perl5/5.00561/lib
    C:/perl5/site/5.00561/lib/MSWin32-x86
    C:/perl5/site/5.00561/lib
    .

Do you have any idea or want more information?
Thanks for your help - modperl and EmbPerl are great !!!

Rolf

---------------------------------------------------------
---------------------------------------------------------

>
> >Can't load
> 'C:/perl5/site/5.00561/lib/MSWin32-x86/auto/HTML/Embperl/Embperl.dll'
> >
> >In the PATH-Environment I included the library containing ApacheCore.dll
as
> I
> > found in a previous mail in the mailing list
> >but it didn't work.
> >
> >Why does my Modperl/EmbPerl work but my EmbPerl (standalone) not ???
> >
>
> If you have linked Embperl for usage with mod_perl, it does calls the
> several functions of the Apache API, so it need ApacheCore.dll (on Unix
the
> library is only loaded when the function actually called, on NT it's
loaded
> on programm startup). Make sure you really have the the correct path in
your
> PATH to the correct ApacheCore.dll.
>
> Does the "nmake test" works correct? If yes, it must work this way,
because
> the Embperl test do nothingelse to get offline mode working.
>
> Gerald
>
>
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
>
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
>

Reply via email to