On Sun, 2003-08-24 at 19:46, Stas Bekman wrote: > Harold Martin wrote: > > On Sun, 2003-08-24 at 18:12, Stas Bekman wrote: > > > >>Harold Martin wrote: > >> > >>>On Sun, 2003-08-24 at 17:21, Stas Bekman wrote: > >>> > >>> > >>>>Harold Martin wrote: > >>>> > >>>> > >>>>>Hello, > >>>>>When I try to start up Apache, I get the error: > >>>>>[error] syntax error at /usr/lib/perl5/site_perl/5.8.0/ProMP3.pm > > > > line 8, > > > >>>>>near "compile qw(:common)" > >>>>>Compilation failed in require at > > > > /etc/httpd/promp3/promp3.handler.pl > > > >>>>>line 6. > >>>>>BEGIN failed--compilation aborted at > > > > /etc/httpd/promp3/promp3.handler.pl > > > >>>>>line 6. > >>>>>Compilation failed in require at (eval 1) line 1. > >>>>> > >>>>>ProMP3.pm's has: > >>>>>use Apache2 (); > >>>>>use Apache::compat; > >>>>>use Apache::ServerUtil (); > >>>>>use strict; > >>>>>use vars qw($VERSION); > >>>>>use DBI; > >>>>>use Apache::Const -compile qw(:common); > >>>> > >>>>where did you find an example of this? > >>>> > >>>>It should be: > >>>> > >>>>use Apache::Const -compile => qw(:common); > >>>> > >>>>or: > >>>> > >>>>use Apache::Const -compile, qw(:common); > >>> > >>> > >>>The form I used is from the Apache::Const page > >>>http://perl.apache.org/docs/2.0/api/Apache/Const.html#C__common_ > >> > >>Ah thank you, I've fixed that. > >> > >> > >>>Using either of the two other lines results in the error: > >>>[error] Can't locate # in @INC ... > >>> > >>>What's that all about? > >> > >>Please post a short test example and a full error message as a part of > > > > a > > > >>proper bug report as explained here: > >>http://perl.apache.org/bugs/ > > > > > > Is there any other way to figure what's wrong? The code isn't mine, but > > someone else's, so I'm really not a whole lot of use there. As for > > posting an example, it's the same as from > > http://sourceforge.net/project/showfiles.php?group_id=12829 but just > > modified slightly according to the porting guidelines. I've only changed > > and added a few use statements and changed the constants from the m_p 1 > > form to the m_p 2 from. I've attached the two pieces of code that I > > modified (the module and the handler) for you. > > Sorry Harold, it doesn't work this way. You ask for help, I ask you for the > additional details as described at http://perl.apache.org/bugs/, instead you > dump on us 80k of code. Sorry, I attached the code but my mail program must've converted it into inline text. > I understand that you may not be able to write a short > script since you aren't familiar with that code, but at least sending the > output of t/REPORT is the least you have to do. Output of mp2bug it *attached* to this message (if it includes it inline again I'll email the developers). > Nevertheless I did try the attached files and I can't reproduce this problem > with the latest cvs. Try upgrading your mod_perl to the latest cvs version, I > have no idea which version you have. I'll use that ASAP. > One thing that for sure is wrong with that code is that you either use > 'Apache::compat' and you don't replace Apache::Constants with Apache::Const, > or you don't use 'Apache::compat' and then in addition to what you have added > (i.e. use Apache::Const -compile => qw(:common);), you need to > s/Apache::Constants/Apache::Const/g in the code. Done and done. Still getting the same errors as before.
Thanks, Harold
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
[DESCRIBE THE PROBLEM HERE]
2. Used Components and their Configuration:
*** using
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_APXS => /usr/sbin/apxs
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /usr/sbin/httpd -V
Server version: Apache/2.0.46
Server built: Aug 6 2003 11:24:31
Server's Module Magic Number: 20020903:3
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 disabled)
-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="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/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.21-1.1931.2.291.entbigmem,
archname=i386-linux-thread-multi
uname='linux por'
config_args='-des -Doptimize=-O2 -g -pipe -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 -Dotherlibdirs=/usr/lib/perl5/5.8.0 -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=
useperlio= d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=un uselongdouble=
usemymalloc=, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm',
optimize='',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.2.3 20030422 (Red Hat Linux 3.2.3-8)', gccosandvers=''
gccversion='3.2.3 200304'
intsize=r, longsize=r, ptrsize=5, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long'
k', ivsize=4'
ivtype=', nvtype='double'
o_no', nvsize=, Off_t='', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc'
l', ldflags =' -L/usr/local/lib'
ldflags_u'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libper
gnulibc_version='2.3.2'
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'
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5', lddlflags='s Unicode/Normalize XS/A'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Locally applied patches:
MAINT18379
Built under linux
Compiled at Jul 3 2003 11:59:25
%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
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
.
3. This is the core dump trace: (if you get a core dump):
[CORE TRACE COMES HERE]
This report was generated by /usr/bin/mp2bug on Mon Aug 25 03:00:13 2003 GMT.
-------------8<---------- End Bug Report --------------8<----------
Note: Complete the rest of the details and post this bug report to
dev <at> perl.apache.org. To subscribe to the list send an empty
email to [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part
