Mailing List Archive

can not nmake
Hi I have try to 'nmake' and just get error (in Embperl.c)
try to make the change like it is see on the web page undir INSTALLATION

--------------------------------for the installation web
page-----------------------
if you get an error about compiling Embperl.c. Edit Embperl.c and change
-#line ``Embperl.xs''
to
+#line 1 ``Embperl.xs''
----------------------------------------
end --------------------------------------
can anyone sand me a copy of the Embperl.c the will work plz
Gunni
Gunnar@vortex.is
RE: can not nmake [ In reply to ]
>
> Hi I have try to 'nmake' and just get error (in Embperl.c)
> try to make the change like it is see on the web page undir INSTALLATION
>...
> can anyone sand me a copy of the Embperl.c the will work plz
> Gunni

The Embperl.c is generated specially for your Perl by the XS-precompiler, so
another Embperl.c may or may not work with your perl. Which error message do
you exactly see?

Gerald


-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
RE: eval [ In reply to ]
oops never mind my last post. it was my problem.

nothing wrong with Embperl. Keep up the good work everybody! :)
RE: can not nmake [ In reply to ]
>
> look at for all the error's Logmake.txt

Edit the Makefile, search for a line starting with DEFINE and change it to

DEFINE = -DAPACHE -D_WINSOCK2API_ $(DEFS)

now rebuild Embperl. Does this change anything?

Gerald

P.S. WHich version of Perl, Apache, mod_perl and Embperl you are using?

> ----- Original Message -----
> From: "Gerald Richter" <richter@ecos.de>
> To: "Gunnar Kristjansson" <gunnar@vortex.is>; <embperl@perl.apache.org>
> Sent: Tuesday, March 21, 2000 12:09 PM
> Subject: RE: can not nmake
>
>
> > >
> > > Hi I have try to 'nmake' and just get error (in Embperl.c)
> > > try to make the change like it is see on the web page undir
> INSTALLATION
> > >...
> > > can anyone sand me a copy of the Embperl.c the will work plz
> > > Gunni
> >
> > The Embperl.c is generated specially for your Perl by the
> XS-precompiler,
> so
> > another Embperl.c may or may not work with your perl. Which
> error message
> do
> > you exactly see?
> >
> > Gerald
> >
> >
> > -------------------------------------------------------------
> > Gerald Richter ecos electronic communication services gmbh
> > Internetconnect * Webserver/-design/-datenbanken * Consulting
> >
> > Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
> > E-Mail: richter@ecos.de Voice: +49 6133 925151
> > WWW: http://www.ecos.de Fax: +49 6133 925152
> > -------------------------------------------------------------
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > For additional commands, e-mail: embperl-help@perl.apache.org
> >
> >
>
RE: can not nmake [ In reply to ]
cl -c -I. -IC:/Apache/src/include -IC:/Apache/src/regex -IC:/Apache/src/os/w
in32 -MD -DWIN32 -O -DVERSION=\"1.2.1\" -DXS_VERSION=\"1.2.1\" -IC:\pe
rl\lib\CORE -DAPACHE -D_WINSOCK2API_ Embperl.c
Embperl.c
c:\program files\devstudio\vc\include\mswsock.h(75) : error C2011:
'_TRANSMIT_FILE_BUFFERS' : 'struct' type redefinition
C:/Apache/src/include\../os/win32/os.h(109) : warning C4142: benign
redefinition of type
C:/Apache/src/include\../os/win32/os.h(110) : warning C4142: benign
redefinition of type
C:/Apache/src/include\../os/win32/os.h(165) : warning C4005: 'stat' : macro
redefinition
Embperl.c(1169) : error C2005: #line expected a line number, found 'string'

ok, now do what you initial posted, go to Embperl.c line 1169 and insert a 1
as line number, so it looks like

#line 1 "Embperl.xs"

Gerald

P.S. All further discussion should go to the new embperl mailling list (see
http://perl.apache.org/embperl/Embperl.pod.15.html)

-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
RE: can not nmake [ In reply to ]
On Thu, 23 Mar 2000, Gerald Richter wrote:

>
> cl -c -I. -IC:/Apache/src/include -IC:/Apache/src/regex
> -IC:/Apache/src/os/win32 -MD -DWIN32 -O -DVERSION=\"1.2.1\"
> -DXS_VERSION=\"1.2.1\" -IC:\perl\lib\CORE -DAPACHE -D_WINSOCK2API_
> Embperl.c
> Embperl.c
> c:\program files\devstudio\vc\include\mswsock.h(75) : error C2011:
> '_TRANSMIT_FILE_BUFFERS' : 'struct' type redefinition
> C:/Apache/src/include\../os/win32/os.h(109) : warning C4142: benign
> redefinition of type
> C:/Apache/src/include\../os/win32/os.h(110) : warning C4142: benign
> redefinition of type
> C:/Apache/src/include\../os/win32/os.h(165) : warning C4005: 'stat' : macro
> redefinition
> Embperl.c(1169) : error C2005: #line expected a line number, found 'string'
>
> ok, now do what you initial posted, go to Embperl.c line 1169 and insert a 1
> as line number, so it looks like
>
> #line 1 "Embperl.xs"
>
> Gerald

Hi,
For apache 1.3.12, in compiling mod_perl, I found that I had
to add /D "_MSWSOCK_" to the compile flags - this is related to the
'_TRANSMIT_FILE_BUFFERS' : 'struct' type redefinition
error above. This might help with the error here.

best regards,
randy kobes