Opened 23 months ago

Closed 22 months ago

Last modified 22 months ago

#66641 closed defect (fixed)

apache2: build not respecting configure.compiler

Reported by: typonaut Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Schamschula (Marius Schamschula), danielluke (Daniel J. Luke)
Port: apache2

Description

This port does successfully install on Snow Leopard (10.6.x86_64). The variation from previous attempts may be that:

  1. php56-apache2handler was previously installed
  2. prior to attempting php74-apache2handler installation, the php74 port was installed.

Change History (10)

comment:1 Changed 23 months ago by reneeotten (Renee Otten)

perhaps I am mot understanding something, but what’s the purpose of this ticket?

comment:2 Changed 23 months ago by jmroot (Joshua Root)

Owner: set to ryandesign
Status: newassigned
Type: updatedefect

I can only guess this might be about the failure status shown at https://ports.macports.org/port/php74-apache2handler/details/ ?

If so, that's showing as "failed install-dependencies", and the dependency that failed is apache2. And that appears to be failing because of apr baking the compiler path into one of its files:

/opt/local/share/apr-1/build/libtool: line 10533: /opt/local/bin/clang-mp-9.0: No such file or directory

It would work iff you have the compiler that apr was built with installed. I'm not sure if this is a result of apache2 not specifying a compiler when using apr, or if apr always insists on using the baked-in value.

comment:3 Changed 22 months ago by typonaut

I checked the clang versions on the machine in question, it has:

  • clang-mp-3.4
  • clang-mp-3.7
  • clang-mp-9.0
  • clang-mp-10
  • clang-mp-11

You can see from the install stats that installing the php74 port does not raise the same issues, plenty of 10.6 sucessful installs. The php74-apache2handler on the other hand has no successful installations for 10.6 after February 2022. There seem to be approximately 55 failed attempts for 10.6, so speaks to some level of support for that MacOS version (my successful installation does not show).

Perhaps a fix could be found?

Also, not sure how relevant this is, but the requirements for the php74-apache2handler say "clang-14" - that version does not appear to be on this machine (port health indicates it is installing on 10.6).

Thanks for making this stuff available for our "obsolete" old Macs!

comment:4 Changed 22 months ago by typonaut

Sorry to follow this up… I checked the port health on apache2, it is also showing installation failures for 10.6. However I have checked my 10.6 machine, and it indicates apache 2.4.54, which is the current version stated on the port page.

This port is also indicating clang-14. However the "apr" listed as a dependency for the apache2 port lists clang-9.0 as a dependency.

Perhaps the apr could be updated, or clang-9.0 added as a dependency for apache2.

Last edited 22 months ago by typonaut (previous) (diff)

comment:5 Changed 22 months ago by jmroot (Joshua Root)

Cc: Schamschula added
Port: apache2 added; php74-apache2handler removed
Summary: php74-apache2handler *does* install on Snow Leopardapache2: build not respecting configure.compiler

comment:6 Changed 22 months ago by Schamschula (Marius Schamschula)

Cc: danielluke added

Here's the full dependency tree for apache2:

marius@Mira ~ % port rdeps apache2       
The following ports are dependencies of apache2 @2.4.54_0+preforkmpm:
  apr
  apr-util
    expat
    libiconv
      gperf
    db48
    sqlite3
      libedit
        ncurses
      zlib
        xz
          gettext
            libtextstyle
            gettext-runtime
            gettext-tools-libs
  openssl
    openssl3
  pcre
    bzip2
  perl5
    perl5.34
      gdbm
        readline

I don't see clang anywhere.

comment:7 Changed 22 months ago by typonaut

comment:8 Changed 22 months ago by Schamschula (Marius Schamschula)

The only compiler mentioned by the apr Portfile is gcc-4.0 (compiler.blacklist)

See: https://github.com/macports/macports-ports/blob/3359ecd5c414420ff70b700409aee912d4bf980e/devel/apr/Portfile

I have no idea how the ports.macports.org comes up with clang-9.0.

comment:9 Changed 22 months ago by jmroot (Joshua Root)

All that means is that it depended on clang-9.0 on the machine hosting the web app at the time its index was built. That doesn't necessarily have any relevance to your machine at the present time.

Last edited 22 months ago by jmroot (Joshua Root) (previous) (diff)

comment:10 Changed 22 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.