The new POSIX standard is now official (IEEE Std 1003.1-2001), and it has removed support for some obsolete utility options that modperl uses. Basically, the new POSIX has removed digit-string options (e.g., "tail -1") and options beginning with "+" (e.g., "sort +1"). I'm using an experimental environment that insists on the new standard, so I tend to run into these problems before other people do.
Here is a proposed patch to mod_perl. 2002-02-22 Paul Eggert <[EMAIL PROTECTED]> Port to POSIX 1003.1-2001 hosts, where "tail -1" doesn't work. * apaci/libperl.module, apaci/mod_perl.config.sh: tail -1 -> sed -n '$p' =================================================================== RCS file: apaci/libperl.module,v retrieving revision 1.26 retrieving revision 1.26.0.1 diff -pu -r1.26 -r1.26.0.1 --- apaci/libperl.module 1999/08/04 01:00:11 1.26 +++ apaci/libperl.module 2002/02/23 07:55:07 1.26.0.1 @@ -47,7 +47,7 @@ ConfigStart echo "$my_prefix adjusting Apache build environment" CFLAGS="$CFLAGS -DMOD_PERL" if [ ".$my_buildtype" = .OBJ ]; then - my_perl_libs="`egrep '^PERL_LIBS=' $my_outfile | tail -1 | cut -d= -f2-`" + my_perl_libs="`egrep '^PERL_LIBS=' $my_outfile | sed -n '$p' | cut -d= -f2-`" LIBS="$LIBS $my_perl_libs" fi @@ -61,9 +61,9 @@ ConfigStart echo "" else echo "$my_prefix enabling Perl support for SSI (mod_include)" - my_perl_ccflags="`egrep '^PERL_CCFLAGS=' $my_outfile | tail -1 | cut -d= -f2-`" + my_perl_ccflags="`egrep '^PERL_CCFLAGS=' $my_outfile | sed -n '$p' | cut +-d= -f2-`" CFLAGS="$CFLAGS -DUSE_PERL_SSI $my_perl_ccflags" - my_perl_inc="`egrep '^PERL_INC=' $my_outfile | tail -1 | cut -d= -f2-`" + my_perl_inc="`egrep '^PERL_INC=' $my_outfile | sed -n '$p' | cut -d= +-f2-`" INCLUDES="$INCLUDES -I\$(SRCDIR) -I$my_perl_inc" if [ ".`egrep '^PERL_THREADS[ ]*=[ ]*yes' $my_config`" != . ]; then echo "$my_prefix enabling Perl Thread support" =================================================================== RCS file: apaci/mod_perl.config.sh,v retrieving revision 1.26 retrieving revision 1.26.0.1 diff -pu -r1.26 -r1.26.0.1 --- apaci/mod_perl.config.sh 2001/07/06 19:41:03 1.26 +++ apaci/mod_perl.config.sh 2002/02/23 07:55:07 1.26.0.1 @@ -52,7 +52,7 @@ fi vars="`egrep '^[A-Z0-9_]*[ ]*=' $tmpfile1 | sed -e 's:^\([A-Z0-9_]*\).*:\1:'`" OIFS="$IFS" IFS="$DIFS" for var in $vars; do - egrep "^${var}[ ]*=" $tmpfile1 | tail -1 >$tmpfile2 + egrep "^${var}[ ]*=" $tmpfile1 | sed -n '$p' >$tmpfile2 val="`sed -e 's:^[A-Z0-9_]*[ ]*=[ ]*::' <$tmpfile2`" eval "param_${var}=\"${val}\"" done