Apache::MP3

2003-01-03 Thread paul . barker



Hi All

This may be off topic but since it's Friday I thought I'd have a quick play and
install Apache::MP3.

I've built the module and followed the Apache config instructions on the web
site, but every time I try to access the /music location I get a 500 error and
the following line in error_log :

[Fri Jan  3 13:24:49 2003] [error] Can't locate object method new via package
Apache (perhaps you forgot to load Apache?) at
/opt/perl/lib/site_perl/5.6.1/Apache/MP3.pm line 80.

Any ideas why it's not working. I'm using other modules without issue.

Perl 5.6.1
Mod Perl 1.27
HPUX 11i

startup.pl

#!/usr/local/bin/perl -w
# to load this file when the server starts, add this to httpd.conf:
# PerlRequire /path/to/startup.pl

BEGIN{
        use Apache ();
        use lib Apache-server_root_relative('lib/site_perl/5.6.1');
}

# make sure we are in a sane environment.
$ENV{GATEWAY_INTERFACE} =~ /^CGI-Perl/ or die GATEWAY_INTERFACE not Perl!;

use Apache::Registry ();
use Apache::Constants();
use DBI ();
use DBD::mysql ();
use CGI qw(-compile :all);
use CGI::Application;
use GD;
use MP3::Info;
use Apache::MP3;

1;

Cheers

Paul



***
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.

Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation.  Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.

Orange PCS Limited is a subsidiary of Orange SA and is registered in England No
2178917, with its address at St James Court, Great Park Road, Almondsbury Park,
Bradley Stoke, Bristol BS32 4QJ.
***




Re: Problems writing binary uploaded data...

2002-10-23 Thread paul . barker

Hmm, I've tried your code on my system and it does exactly what it's supposed
to. I get the same filesizes reported at the destination end and in the script
as the file is on my PC HDD.

Have you tried a different file ? Do you always loose the same amount ?

Cheers

Paul



***
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.

Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation.  Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.

Orange PCS Limited is a subsidiary of Orange SA and is registered in England No
2178917, with its address at St James Court, Great Park Road, Almondsbury Park,
Bradley Stoke, Bristol BS32 4QJ.
***




Does Apache::NavBar exist ?

2002-10-14 Thread paul . barker


Hi

I've just been perusing the docs on perl.apache.com and in the Cute Tricks
section there is mention of a module called Apache::NavBar being available from
CPAN. I may be blind but I can't find it. Does it exist ?

Regards

Paul



***
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.

Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation.  Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.

Orange PCS Limited is a subsidiary of Orange SA and is registered in England No
2178917, with its address at St James Court, Great Park Road, Almondsbury Park,
Bradley Stoke, Bristol BS32 4QJ.
***




[mp2] Build problems on HPUX11.00 with HP ANSI C (aCC)

2002-09-26 Thread paul . barker


Hi All

I've spent the last two days reading various docs and posts trying to resolve
this problem. If this is a known issue or has been answered previously please
accept my apologies and by all means point me in the direction of the correct
documentation / newsgroup / mailing list archive.

I am attempting to build mod_perl from the 1.99_05 source with Apache 2.0.40 and
perl 5.8.0 both of which were built from source with the HP ANSI C compiler :

B3901BA   B.11.01.07 HP C/ANSI C Developer's Bundle for
HP-UX 11.00 (S800)

(I'm using the HP compiler because a) we have it available and it's recommended
in the Perl hpux.readme and  b) I had problems trying to build perl with gcc 3.x
as supplied via the HPUX Porting and Archive site)

Perl and Apache built without problems and Apache runs fine without mod-perl. (I
have served some test html and cgi queries fine)

During the mod-perl build I get the same warning from each component build :

cpp: /usr/local/lib/perl5/5.8.0/PA-RISC1.1-thread-multi/CORE/config.h, line
41: warning 2002: Redefinition of param names for macro __attribute__.

I tried to run a 'make test' anyhow since I've had cases in the past where
warnings similar to the above haven't caused any issues. When the test routine
tries to start it's httpd to test against it eventually falls over with the
following message :

*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST
/usr/local/apache2/bin/httpd  -d /oracle/db/GSE/04/techweb/mod_perl-1.99_05/t -f
/oracle/db/GSE/04/techweb/mod_perl-1.99_05/t/conf/httpd.conf -DAPACHE2
-DPERL_USEITHREADS
using Apache/2.0.40 (prefork MPM)

waiting for server to start:
.
waiting for server to start: giving up after 61 secs
!!! server failed to start! (t/logs/error_log wasn't created, start the server
in the debug mode)
*** Error exit code 1

In actual fact a server is started but the httpd process just spins consuming 
90% of one CPU and the only way to stop it is to issue a kill -9 (_SIGKILL) to
the process.

Has any one out there successful build on HPUX 11 ?

I have attached the output of t/REPORT.

Many thanks in advance.

Paul

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


2. Used Components and their Configuration:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS= /usr/local/apache2/bin/apxs
  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.40
Server built:   Sep 26 2002 08:50:18
Server's Module Magic Number: 20020628:0
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/prefork
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -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/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
osname=hpux, osvers=11.00, archname=PA-RISC1.1-thread-multi
uname='hp-ux tutdarlb b.11.00 a 9000831 282814 two-user license '
config_args='-de'
hint=previous, 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='cc', ccflags ='-D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE
-Wl,+vnocompatwarnings -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 +Z',
optimize='+O2 +Onolimit',
cppflags='-Aa -D__STDC_EXT__ -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L
-D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -I/usr/local/include
-D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +Z
-D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +Z'
ccversion='A.11.01.00', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
  Linker and Libraries:
ld='/usr/bin/ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lnsl -lnm -lndbm -lmalloc -ldld -lm -lpthread -lc