You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Phil Lobbes <ph...@perkpartners.com> on 2002/08/27 23:31:55 UTC

[mp-1.99_05] HPUX 11 w/gcc 3.2(b) -Ae "missing ... predicate" error

Hi,

I noticed in 'lib/Apache/Build.pm' that the -Ae option was being added
even if the compiler was gcc.  This options causes an error something
like the following:

	... missing '(' after predicate ... error

In the code below (lib/Apache/Build.pm) I removed the '#' comment from
in front of:

   return if $Config{cc} eq 'gcc'; #XXX?"

to work around this problem and things compiled just fine.

  sub ccopts_hpux {
      my $cflags = shift;
      return if $Config{cc} eq 'gcc'; #XXX?
      return if $$cflags =~ /(-Ae|\+e)/;
      $$cflags .= " -Ae ";
  } 

Details...

  Versions: perl-5.6.1       (non-threaded)
	    apache-2.0.40    (mpm-prefork)
	    mod_perl-1.99_05
  OS:       HPUX 11
  Compiler: gcc version 3.2 20020708 (experimental)

Phil

Re: [mp-1.99_05] HPUX 11 w/gcc 3.2(b) -Ae "missing ... predicate" error

Posted by Doug MacEachern <do...@covalent.net>.
On Tue, 27 Aug 2002, Phil Lobbes wrote:

> Hi,
> 
> I noticed in 'lib/Apache/Build.pm' that the -Ae option was being added
> even if the compiler was gcc.  This options causes an error something
> like the following:
> 
> 	... missing '(' after predicate ... error
> 
> In the code below (lib/Apache/Build.pm) I removed the '#' comment from
> in front of:
> 
>    return if $Config{cc} eq 'gcc'; #XXX?"
> 
> to work around this problem and things compiled just fine.

thanks.  i've made the change in cvs.