Re: Use of Apache::Directive in BEGIN block

2003-09-19 Thread Matisse Enzer
Title: Re: Use of Apache::Directive in BEGIN
block


Thank you very much.
I had looked at
http://perl.apache.org/docs/2.0/user/help/help.html, but did
not see the instructions about running t/REPORT

I will certainly use t/REPORT in the future until mp2bug is part
of the distro.

Perhaps that instruction could be more, um, blatant?

At 3:03 PM -0700 9/18/03, Stas Bekman wrote:
Matisse, your bug report is incomplete,
you have missed the report about your environment as explained at the
guidelines (http://perl.apache.org/bugs/). In the future please
include it, it's probably unimportant for this case.

To address this issue upgrade to 1.99_09 or may be you even need the
current cvs, I don't remember when Philippe has fixed that, check the
Changes file.
t/response/TestApache/conftree.pm does
the testing of this feature and works just fine in the current
cvs.

-- 

--
Matisse Enzer
Hamilton Partners
707-431-4300 ext. 212 (office)
415-225-6703 (mobile)



Re: Use of Apache::Directive in BEGIN block

2003-09-19 Thread Matisse Enzer
At 11:19 AM -0700 9/19/03, Stas Bekman wrote:
Matisse Enzer wrote:
Thank you very much.
So does it work now?


 I wasn't able to get 1.99_09 to install.



-8-- Start Bug Report 8--
1. Problem Description:
   make install

for 1.99_09 failed with:

cp xs/modperl_xs_sv_convert.h xs/modperl_xs_typedefs.h xs/modperl_xs_util.h
cp: copying multiple files, but last argument `xs/modperl_xs_util.h' 
is not a directory
Try `cp --help' for more information.
make: *** [modperl_xs_h_install] Error 1



2. Used Components and their Configuration:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_COMPAT_1X   = 1
  MP_GENERATE_XS = 1
  MP_LIBNAME = mod_perl
  MP_USE_DSO = 1
  MP_USE_STATIC  = 1
*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.45
Server built:   May  6 2003 14:05:29
Server's Module Magic Number: 20020903:0
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/prefork
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=/usr/local/apache2
 -D SUEXEC_BIN=/usr/local/apache2/bin/suexec
 -D DEFAULT_PIDLOG=logs/httpd.pid
 -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
 -D DEFAULT_LOCKFILE=logs/accept.lock
 -D DEFAULT_ERRORLOG=logs/error_log
 -D AP_TYPES_CONFIG_FILE=conf/mime.types
 -D SERVER_CONFIG_FILE=conf/httpd.conf
*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi
uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 
06:41:59 edt 2002 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 
-Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc 
-Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr 
-Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr 
-Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid 
-Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog 
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 
-Uversiononly -Dpager=/usr/bin/less -isr'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE 
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm',
optimize='-O2 -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing 
-I/usr/include/gdbm'
ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 
3.2-5)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, 
Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.2.92'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, 
ccdlflags='-rdynamic 
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Sep  1 2002 23:56:49
  %ENV:
PERL_LWP_USE_HTTP_10=1
  @INC:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.

3. This is the core dump trace: (if you get a core dump):

  [CORE TRACE COMES HERE]

This report was generated by t/REPORT on Fri Sep 19 19:40:52 2003 GMT.

-8-- End Bug Report --8--



--
--
Matisse Enzer
Hamilton Partners
707-431-4300 ext. 212 (office)
415-225-6703 (mobile)


Use of Apache::Directive in BEGIN block

2003-09-18 Thread Matisse Enzer
I get the following error:

  Can't locate object method lookup via package Apache::Directive at
  /webcontent/dev.mycardmaker.com/lib/perl/Doodlelab/Apache/Test.pm line 4.
when I try to start Apache.

Here is the entire contents of Test.pm



BEGIN {
use Apache::Directive;
my $tree = Apache::Directive-conftree();
foreach my $node ( $tree-lookup('PerlSetVar') ) {
# I want to do something here.
}
}
1;

--
--
Matisse Enzer
Hamilton Partners
707-431-4300 ext. 212 (office)
415-225-6703 (mobile)


Use of Apache::Directive in BEGIN block

2003-09-18 Thread Matisse Enzer
Title: Use of Apache::Directive in BEGIN
block


Using
Apache/2.0.45 (Unix) mod_perl/1.99_08 Perl/v5.8.0
on a Redhat 87.0 system

I get the following error:

 Can't locate object method lookup via package
Apache::Directive at

/webcontent/dev.mycardmaker.com/lib/perl/Doodlelab/Apache/Test.pm line
4.


when I try to start Apache.

Here is the entire contents of Test.pm



BEGIN {
 use Apache::Directive;
 my $tree =
Apache::Directive-conftree();
 foreach my $node (
$tree-lookup('PerlSetVar') ) {
 # I want to do something here.
 }
}

1;


-- 

--
Matisse Enzer
Hamilton Partners
707-431-4300 ext. 212 (office)
415-225-6703 (mobile)



Re: Error reporting mod_perl 1.25 + apache 1.3.17

2001-02-05 Thread Matisse Enzer

I compiled perl 5.6 and Apache 1.3.17 using gcc egcs-2.91.66
on a RH Linux 6.1 system.

If I compile Apache without modperl it run OK. If i compile it with 
mod_perl 1.25 I also get the segmentation fault on startup.

I looked in ../mod_perl/SUPPORT  and didn't see anything obvious 
about this problem.

-Matisse


At 4:46 PM + 2/2/01, G.W. Haywood wrote:
Hi there,

On Fri, 2 Feb 2001, Vasily Petrushin wrote:

  Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
  osname=solaris, osvers=2.8, archname=sun4-solaris-thread-multi

  Options given to mod_perl's Makefile.PL USE_DSO=1 EVERYTHING=1

Have you tried building static?

Did you search the mod_perl Mailing List archives for "Solaris"?

73,
Ged.

-- 
-------
Matisse Enzer
TechTv Web Engineering
[EMAIL PROTECTED]
415-355-4364 (desk)
415-225-6703 (cellphone)



Re: mod_perl 1.25 + perl 5.6

2001-02-01 Thread Matisse Enzer

You know I am also seeing this exact result.

I compiled perl 5.6 and Apache 1.3.17 using gcc egcs-2.91.66
on a RH Linux 6.1 system.

If I compile Apache without modperl it run OK. If i compile it with 
mod_perl 1.25 I also get the segmentation fault on startup.

I looked in ../mod_perl/SUPPORT  and didn't see anything obvious abot 
this problem.

-Matisse

Hi there,

On Wed, 31 Jan 2001, Vasily Petrushin wrote:

  I have a problem with perl 5.6 + mod_perl 1.25 + apache 1.3.17
  Operating System is Sun Solaris 8 for SPARC, 64bit.
  [Tue Jan 30 17:58:51 2001] [notice] child pid 17005 exit signal
  Segmentation Fault (11)

Have you looked at the information in .../mod_perl/SUPPORT


and did you compile your Perl?

?

73,
Ged.

-- 
---
Matisse Enzer
TechTv Web Engineering
[EMAIL PROTECTED]
415-355-4364 (desk)
415-225-6703 (cellphone)



Re: Compiling mod_perl 1.24 with the Sun Solaris C Compiler

2001-01-24 Thread Matisse Enzer

Thanks, I'll try compiling perl with the Solaris compiler, and then 
Apache + mod_perl .


At 2:44 PM +0100 1/24/01, Jens-Uwe Mager wrote:
On Tue, Jan 23, 2001 at 02:02:57PM -0800, Matisse Enzer wrote:

  This is a re-posting with a  bit more information:

  I'm having trouble getting mod_perl 1.24 to compile using the 
Solaris compiler.


  Compiler Version is: Sun WorkShop 6 2000/04/07 C 5.1)
  OS is:   Solaris 2.7


  Details:
  
  For various reasons I'm using the Apache 1.3.12 source tree, and I 
can compile
  fine using gcc, but the Solaris compiler complains:


  /opt/SUNWspro/WS6/bin/cc -c  -I../../os/unix -I../../include
  -DSOLARIS2=270 -DUSE_EXPAT -I../../lib/expat-lite
  `/export/home/matisse/devel/apache/apache_1.3.12/src/apaci`
  -I/usr/local/include
  -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE  -I. -I../..
  -DUSE_PERL_SSI -DMOD_PERL -KPIC -DSHARED_MODULE mod_include.c  mv
  mod_include.o mod_include.lo
  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
  319: formal parameter lacks name: param #1
  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
  319: formal parameter lacks name: param #2
  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
  319: formal parameter lacks name: param #3
  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
  319: syntax error before or at: __attribute__
  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
  319: warning: syntax error:  empty declaration
  "/usr/include/ctype.h", line 48: cannot recover from previous errors
  cc: acomp failed for mod_include.c

  Line 319 of 
/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h   is:

   __attribute__((format 
(printf, 3, 4)));

  

This probably means that perl is configured using the gcc compiler. As
with most plug-in systems it is recommended to compile all parts that
are loaded into one address space using the exactly same compiler, that
means in the modperl case all of Apache, Apache plug-ins, perl and perl
plug-ins should be compiled using the Sun Workshop C compiler. Mixing
compilers arbitrarily is asking for trouble.

--
Jens-Uwe Mager

HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany

Phone: +49 5131 709320
FAX:   +49 5131 709325
Internet:  [EMAIL PROTECTED]

-- 
-------
Matisse Enzer
TechTv Web Engineering
[EMAIL PROTECTED]
415-355-4364 (desk)
415-225-6703 (cellphone)



Compiling mod_perl 1.24 with the Sun Solaris C Compiler

2001-01-23 Thread Matisse Enzer


This is a re-posting with a  bit more information:

I'm having trouble getting mod_perl 1.24 to compile using the Solaris compiler.


Compiler Version is: Sun WorkShop 6 2000/04/07 C 5.1)
OS is:   Solaris 2.7


Details:

For various reasons I'm using the Apache 1.3.12 source tree, and I can compile
fine using gcc, but the Solaris compiler complains:


/opt/SUNWspro/WS6/bin/cc -c  -I../../os/unix -I../../include 
-DSOLARIS2=270 -DUSE_EXPAT -I../../lib/expat-lite 
`/export/home/matisse/devel/apache/apache_1.3.12/src/apaci` 
-I/usr/local/include 
-I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE  -I. -I../.. 
-DUSE_PERL_SSI -DMOD_PERL -KPIC -DSHARED_MODULE mod_include.c  mv 
mod_include.o mod_include.lo
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #1
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #2
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #3
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: syntax error before or at: __attribute__
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: warning: syntax error:  empty declaration
"/usr/include/ctype.h", line 48: cannot recover from previous errors
cc: acomp failed for mod_include.c

Line 319 of   /usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h   is:

 __attribute__((format (printf, 3, 4)));


which is part of:



#ifndef PerlIO_sprintf
extern int  PerlIO_sprintf  _((char *, int, const char *,...))
 __attribute__((format (printf, 3, 4)));
#endif


Steven Lembark [EMAIL PROTECTED] suggested:

yup, a macro expansion.  thou art getting bit by the way in which
the compiler on Solaris is hacking up the token replacement in
this C macro.


Any ideas on how I can get this to compile with the Solaris compiler??

PS: I need to use this compiler because i want to compile in another 
module, mod_curl.c (StoryServer)
which requires the Solaris compiler.
-- 
-------
Matisse Enzer
TechTv Web Engineering
[EMAIL PROTECTED]
415-355-4364 (desk)
415-225-6703 (cellphone)



Compiling mod_perl 1.24 with the Sun Solaris C Compiler

2001-01-19 Thread Matisse Enzer

I'm having trouble getting mod_perl 1.24 to compile using the Solaris compiler
(Version is: Sun WorkShop 6 2000/04/07 C 5.1)

Any ideas?

For various reasons I'm using the Apache 1.3.12 source tree, and I can compile
fine using gcc, but the Solaris compiler complains:


/opt/SUNWspro/WS6/bin/cc -c  -I../../os/unix -I../../include 
-DSOLARIS2=270 -DUSE_EXPAT -I../../lib/expat-lite 
`/export/home/matisse/devel/apache/apache_1.3.12/src/apaci` 
-I/usr/local/include 
-I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE  -I. -I../.. 
-DUSE_PERL_SSI -DMOD_PERL -KPIC -DSHARED_MODULE mod_include.c  mv 
mod_include.o mod_include.lo
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #1
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #2
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #3
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: syntax error before or at: __attribute__
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: warning: syntax error:  empty declaration
"/usr/include/ctype.h", line 48: cannot recover from previous errors
cc: acomp failed for mod_include.c



PS: I need to use this compiler becaue i want to compile in another 
module, mod_curl.c (StoryServer)
which require the Solaris compiler.


-- 
-------
Matisse Enzer
TechTv Web Engineering
[EMAIL PROTECTED]
415-355-4364 (desk)
415-225-6703 (cellphone)