Re: sed error in perl Makefile.pl

2003-01-03 Thread dom
 I have to rebuild my perl and go through the Configure
 process to tell it to ignore `hostname`, unless you
 know a trick for that, too!

 Well, what about creating a custom shell script named hostname,
turn it executable, and put it somewhere in your PATH ?

#!/bin/sh
echo darkstar.frop.org

-- 
Dominique QUATRAVAUX   Ingénieur développeur senior
01 44 42 00 35 IDEALX




sed error in perl Makefile.pl

2003-01-02 Thread J Q Private
Hi mod_perlers from josh narins!

I'm following the simple instructions for the 1.x
series with APACI

I'm on a debian sarge system running linux kernel
2.4.20 on a powerpc

I've seen this same error with bleadperl (built today)
and the installed perl5.6.1 (the debian package)

Sadly, I also remember seeing this error on my i386
debian woody 2.4.18 machine, but at some point I
overcame it.

Since I can't remember what I did last time... :(

When I run

 perl Makefile.PL APACHE_SRC=../apache_1.3.xx/src \
 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 \
 APACHE_PREFIX=/home/user/httpd/apache

I see this (note the sed error)

(cd ../apache_1.3.27  CC=gcc CFLAGS= -D_REENTRANT
-DTHREADS_HAVE_PIDS -fno-
strict-aliasing -I/usr/local/include ./configure
--activate-module=src/modules/
perl/libperl.a --disable-rule=EXPAT
--prefix=/home/user/httpd/apache)
CC=gcc CFLAGS= -D_REENTRANT -DTHREADS_HAVE_PIDS
-fno-strict-aliasing
 -I/usr/local/include ./configure
--activate-module=src/modules/perl/libperl.a
--disable-rule=EXPAT --prefix=/home/user/httpd/apache
Configuring for Apache, Version 1.3.27
 + using installation path layout: Apache ,
(config.layout)
 + activated perl module (modules/perl/libperl.a)
Creating Makefile
sed: -e expression #44, char 46: Unknown option to 's'
Creating Configuration.apaci in src
  + id: mod_perl/1.27
  + id: Perl/v5.9.0 (linux) [/home/user/bin/perl]

This is my perl -V (NOTE: Happens with vanilla
perl5.6.1 debian package the same way)

Summary of my perl5 (revision 5.0 version 9 subversion
0 patch 18378) configurat
ion:
  Platform:
osname=linux, osvers=2.4.20-ben1,
archname=ppc-linux-thread-multi
uname='linux float1 2.4.20-ben1 #1 tue dec 31
18:50:09 est 2002 ppc 7455, al
tivec supported gnulinux '
config_args='-Dusedevel -Dcc=gcc
-Dprefix=/home/user -Uinstallusrbinperl -Uu
selargefiles -Dusethreads -des'
hint=recommended, useposix=true,
d_sigaction=define
usethreads=define useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=undef
usesocks=undef
use64bitint=undef use64bitall=undef
uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -fno-stri
ct-aliasing -I/usr/local/include',
optimize='-O3',
cppflags='-D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -fno-strict-aliasin
g -I/usr/local/include'
ccversion='', gccversion='2.95.4 20011002 (Debian
prerelease)', gccosandvers
=''
intsize=4, longsize=4, ptrsize=4, doublesize=8,
byteorder=4321
d_longlong=define, longlongsize=8,
d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double',
nvsize=8, Off_t='off_t', lseeksize
=4
alignbytes=8, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldbm -ldb -ldl -lm -lpthread
-lc -lcrypt -lutil -lrt
perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt
-lutil -lrt
libc=/lib/libc-2.2.5.so, so=so, useshrplib=false,
libperl=libperl.a
gnulibc_version='2.2.5'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-rdynamic'
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
  Locally applied patches:
DEVEL18374
  Built under linux
  Compiled at Jan  1 2003 17:28:16
  @INC:
/home/user/lib/perl5/5.9.0/ppc-linux-thread-multi
/home/user/lib/perl5/5.9.0
   
/home/user/lib/perl5/site_perl/5.9.0/ppc-linux-thread-multi
/home/user/lib/perl5/site_perl/5.9.0
/home/user/lib/perl5/site_perl
.

-



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



Re: sed error in perl Makefile.pl

2003-01-02 Thread Stas Bekman
[...]

When I run

 perl Makefile.PL APACHE_SRC=../apache_1.3.xx/src \
 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 \
 APACHE_PREFIX=/home/user/httpd/apache

I see this (note the sed error)

(cd ../apache_1.3.27  CC=gcc CFLAGS= -D_REENTRANT
-DTHREADS_HAVE_PIDS -fno-
strict-aliasing -I/usr/local/include ./configure
--activate-module=src/modules/
perl/libperl.a --disable-rule=EXPAT
--prefix=/home/user/httpd/apache)
CC=gcc CFLAGS= -D_REENTRANT -DTHREADS_HAVE_PIDS
-fno-strict-aliasing
 -I/usr/local/include ./configure
--activate-module=src/modules/perl/libperl.a
--disable-rule=EXPAT --prefix=/home/user/httpd/apache
Configuring for Apache, Version 1.3.27
 + using installation path layout: Apache ,
(config.layout)
 + activated perl module (modules/perl/libperl.a)
Creating Makefile
sed: -e expression #44, char 46: Unknown option to 's'
Creating Configuration.apaci in src


First, you need to figure out where this error is coming from, sed isn't 
very helpful here. Since we are talking about ./configure errors, you 
need to modify apache-1.3/configure to start with:

#!/bin/sh -x

(notice the -x)

now log the build process into a file a look what happens between two 
strings:
Creating Makefile
and
Creating Configuration.apaci in src

From what I see the error is in apache domain, but since I don't have 
this problem I could be wrong.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Re: sed error in perl Makefile.pl

2003-01-02 Thread J Q Private
It ended up being the bad character tacked returned by
my . It sometimes looks like 'nyc.rr.com\000' or the
like. Bad DHCP setup on my part.

Here's the a couple lines out of the offending sed.

-e s%@conf_serveradmin@[EMAIL PROTECTED]%d00%g
-e s%@conf_servername@%float1.nyc.rr.com%d00%g


Thanks for that #!/bin/sh -x trick, Stas!

I have to rebuild my perl and go through the Configure
process to tell it to ignore `hostname`, unless you
know a trick for that, too!

-ciao for now,
Josh

--- Stas Bekman [EMAIL PROTECTED] wrote:
 [..
  When I run
  
   perl Makefile.PL APACHE_SRC=../apache_1.3.xx/src
 \
   DO_HTTPD=1 USE_APACI=1
 EVERYTHING=1 \
  
 APACHE_PREFIX=/home/user/httpd/apache
  
  I see this (note the sed error)
  
  (cd ../apache_1.3.27  CC=gcc CFLAGS=
 -D_REENTRANT
  -DTHREADS_HAVE_PIDS -fno-
  strict-aliasing -I/usr/local/include ./configure
  --activate-module=src/modules/
  perl/libperl.a --disable-rule=EXPAT
  --prefix=/home/user/httpd/apache)
  CC=gcc CFLAGS= -D_REENTRANT -DTHREADS_HAVE_PIDS
  -fno-strict-aliasing
   -I/usr/local/include ./configure
  --activate-module=src/modules/perl/libperl.a
  --disable-rule=EXPAT
 --prefix=/home/user/httpd/apache
  Configuring for Apache, Version 1.3.27
   + using installation path layout: Apache ,
  (config.layout)
   + activated perl module (modules/perl/libperl.a)
  Creating Makefile
  sed: -e expression #44, char 46: Unknown option to
 's'
  Creating Configuration.apaci in src
 
 First, you need to figure out where this error is
 coming from, sed isn't 
 very helpful here. Since we are talking about
 ./configure errors, you 
 need to modify apache-1.3/configure to start with:
 
 #!/bin/sh -x
 
 (notice the -x)
 
 now log the build process into a file a look what
 happens between two 
 strings:
 Creating Makefile
 and
 Creating Configuration.apaci in src
 
  From what I see the error is in apache domain, but
 since I don't have 
 this problem I could be wrong.
 

__
 Stas BekmanJAm_pH -- Just Another
 mod_perl Hacker
 http://stason.org/ mod_perl Guide ---
 http://perl.apache.org
 mailto:[EMAIL PROTECTED] http://use.perl.org
 http://apacheweek.com
 http://modperlbook.org http://apache.org  
 http://ticketmaster.com
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com