Mailing List Archive

Cannot run on MacOS Sonoma with homebrew apache
Hello,

I'm trying to install 2.0.13 on MacOS 14.4.1, using perl and apache from
homebrew,  with:

perl Makefile.PL MP_APXS=/opt/homebrew/Cellar/httpd/2.4.59/bin/apxs

I first get these error messages:

Reading Makefile.PL args from @ARGV
   MP_APXS = /opt/homebrew/Cellar/httpd/2.4.59/bin/apxs
no conflicting prior mod_perl version found - good.
Using APXS => /opt/homebrew/Cellar/httpd/2.4.59/bin/apxs
Configuring Apache/2.4.59 mod_perl/2.0.13 Perl/v5.38.2
In file included from /opt/homebrew/opt/apr/include/apr-1/apr.h:165:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/types.h:187:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_fd_def.h:32:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/Availability.h:177:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h:38:30:
error: missing '(' after '__has_builtin'
    #if defined(__has_builtin) && __has_builtin(__is_target_os)

...

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h:62:32:
error: missing '(' after '__has_attribute'
    #if defined(__has_attribute) && defined(__has_feature)

...

Argument "Apple LLVM 15" isn't numeric in numeric comparison (<=>) at
lib/Apache2/Build.pm line 666.

...

If  I persist and compile, it goes through, but test fails:

.httpd: Syntax error on line 85 of
/Users/hg/tmp/mod_perl-2.0.13/t/conf/httpd.conf: Cannot load
/Users/hg/tmp/mod_perl-2.0.13/src/modules/perl/mod_perl.so into server:
dlopen(/Users/hg/tmp/mod_perl-2.0.13/src/modules/perl/mod_perl.so,
0x000A): symbol not found in flat namespace '_modperl_handler_anon_add'

and if I go on and install, I get same linking error in my production
environment.


Any idea how to fix this ?

My attempts to force usage of homebrew gcc instead of Apple LLVM didn't
help.

--

Hervé