Compiling Errors with apache 2.0.44

2003-01-27 Thread Jörg Kütemeier
Hi,

I have compiling errors with the new apache 2.0.44 and embperl
(regardless of the version - 2.0b8 till CVS)

Any suggestions?

cc -c -I/var/wsrv/www/include -I/var/wsrv/www/regex
-I/var/wsrv/www/os/unix -I/usr/local/include/libxml2
-I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2
-I/usr/local/src/apache2/Embperl-2.0b8/xs
-DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.1/BSDPAN" -fno-strict-aliasing
-I/usr/local/include -O -pipe -march=pentiumpro-DVERSION=\"2.0b8\"
-DXS_VERSION=\"2.0b8\" -DPIC -fPIC
-I/usr/local/lib/perl5/5.6.1/mach/CORE -DAPACHE -DEP2 -DLIBXSLT  -o
epmain.o epmain.c
epmain.c: In function `DoLogError':
epmain.c:248: warning: passing arg 4 of `ap_log_error' makes integer
from pointer without a cast
epmain.c:248: warning: passing arg 5 of `ap_log_error' from incompatible
pointer type
epmain.c:250: warning: passing arg 4 of `ap_log_error' makes integer
from pointer without a cast
epmain.c:250: warning: passing arg 5 of `ap_log_error' from incompatible
pointer type
epmain.c: In function `SendHttpHeader':
epmain.c:862: warning: assignment makes pointer from integer without a
cast
epmain.c:873: warning: passing arg 2 of `apr_table_add' makes pointer
from integer without a cast
epmain.c:873: warning: passing arg 3 of `apr_table_add' makes pointer
from integer without a cast
epmain.c:884: warning: passing arg 2 of `apr_table_set' makes pointer
from integer without a cast
epmain.c:884: warning: passing arg 3 of `apr_table_set' makes pointer
from integer without a cast
epmain.c:906: syntax error before `*'
epmain.c:907: `table_entry' undeclared (first use in this function)
epmain.c:907: (Each undeclared identifier is reported only once
epmain.c:907: for each function it appears in.)
epmain.c:907: `hdrs' undeclared (first use in this function)
epmain.c:909: `hdrs_arr' undeclared (first use in this function)
epmain.c:910: syntax error before `)'
*** Error code 1

Stop in /usr/local/src/apache2/Embperl-2.0b8.

-

wolf-systems IT-Services Inh. Jörg Kütemeier
http://www.wolf-systems.net




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




printing to a file

2003-01-27 Thread Carlos

Hi!


I am trying to create a config file from a template file and some data submited from a 
form.

When i try to write the values to the config file a get an error.

I am doing this:


open (tfile, "config_template.epl");
   @tfile = \;
close (tfile);

  foreach(@tfile){
 s/databaseparams/$dbparams/
  }

  foreach(@tfile){
 s/generalparams/$gparams/
  }

open (cfile, ">pckg.epl");

print OUT cfile @tfile;  # Here is the problem, i have tryed many combination of this 
but nothing works.

close (cfile);

What is the right way to write to a file?

Thank you in advance.

Carlos Kassab



___
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com 
target=_blank>http://www.myway.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: printing to a file

2003-01-27 Thread Jaak
Hi!

> print OUT cfile @tfile;  # Here is the problem, i have tryed many combination of 
>this but nothing works.
> 

OUT is internally used by Embperl (for STDOUT output).
Use something else.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: no strict 'defs'

2003-01-27 Thread Gerald Richter


> Oops, that should read "no strict 'refs'".
> Sorry for the multiple posts.
> 
> On Wed, 22 Jan 2003, Joshua Spoerri wrote:
> 
> > how do you set "no strict 'defs'" for the whole page
> > (if you're using [$ var $]) ?
> >

In 1.3.x you can't do this.

In 2.0 you can write

[* no stric refs ; *]

Gerald


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: When will 2.0b9 be out?

2003-01-27 Thread Gerald Richter


> "[=" changed from 2.0b8 to  2.0b9.
>
> In 2.0b8 [=Update Selected=] will give an error; 2.0b8 expects single
quotes:
> [='Update Selected'=] . Not so in 2.0b9 from CVS.
>
> Can I tell 2.b8 to do as in 2.0b9?
>
> Or how long time before an official 2.0b9 ?
>

I like to fix some issuses with RedHat 8 and Apache 2 and then release.
Should be during the next two weeks

Gerald


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: $fdat not working when using POST

2003-01-27 Thread Gerald Richter
> Then I ftp the page to my web host running Linux and Apache. All of a
> sudden, $fdat{enter} is always undefined even when the button is pressed.
> In fact, %fdat is always empty. So the same page reload as if it was
> accessed for the first time.
>
> I did find that if I change the method to GET, then the $fdat works again.
>

Which versions are installed on the system (mod_perl, Apache, Embperl) ?

There are some issuse in old versions with POST data

Gerald


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: How to execute an epl as if url parms were passed?

2003-01-27 Thread Gerald Richter
>  They need to arrive at the $ENV{QUERY_STRING} in order for
> them to be handled correctly by the receiving page, but I'm wondering if
>there's a Embperl way of doing this besides trying to set the environment
>variables manually before calling Execute.

In this case the only thing you can do is setting $ENV{QUERY_STRING}
manually

Gerald




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Apache httpd start error (fails on Embperl.so)

2003-01-27 Thread Gerald Richter

> Error: unresolvable symbol in
> /usr/common/perl5.6.0/lib/5.6.0/sgi6-irix/auto/Embperl/Embperl.so: PL_Sv
at
> /usr/common/perl5.6.0/lib/5.6.0/sgi6-irix/DynaLoader.pm line 200.
>  at (eval 4) line 3
>

Does make test of Embperl work for you?

If yes, maybe your mod_perl is compiled with another Perl version, than
Embperl

Gerald


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Compiling Errors with apache 2.0.44

2003-01-27 Thread Gerald Richter

>I have compiling errors with the new apache 2.0.44 and embperl
>(regardless of the version - 2.0b8 till CVS)

It looks like that it didn't realize that you have Apache 2 running.

Do you have installed mod_perl with MP_INST_APACHE2=1 ?

If yes, take the newest CVS version an retry. I have fixed the INST_APACHE2
issue there.

Gerald



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: compiling error

2003-01-27 Thread Gerald Richter
> 
> While compiling Embperl from CVS (2.0b9_dev-6) and mod_perl 1.99_08.
> 
> I got an error:
> 

It's fixed now in the CVS version

Gerald



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]