[MacPorts] #64376: lighttpd @1.4.63_2+ssl: build fails on MacOS 10.15.7, linker complains about for x86_64 undefined symbols

MacPorts noreply at macports.org
Thu Jan 6 18:39:40 UTC 2022


#64376: lighttpd @1.4.63_2+ssl: build fails on MacOS 10.15.7, linker complains
about for x86_64 undefined symbols
----------------------+----------------------
 Reporter:  Gandoon   |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.7.1
 Keywords:  Catalina  |       Port:  lighttpd
----------------------+----------------------
 lighttpd fails to build on Catalina (10.15.7) with the standard port file.
 One workaround seems to be to substitute the distributed configure.args-
 append with the following:
 {{{
 configure.args-append       CC_FOR_BUILD=/opt/local/bin/clang \
                             #"${configure.cc}" \
                             CFLAGS_FOR_BUILD="${configure.cflags}" \
                             --with-brotli \
                             --with-lua \
                             --with-pcre2 \
                             --with-xxhash \
                             --with-zlib \
                             --with-zstd \
                             ac_cv_prog_AWK=/usr/bin/awk
 }}}
 Curiously enough, I only had a successful build if I left the commented
 out #"${configure.cc}" in the precise position above.
 I do not know if this is an issue that has affected others, but this trick
 to try to force the use of the MacPorts built clang-13 in place of the
 system provided clang-12 seemed to solve the issue in this case.

 There may be an issue with linking against lua for the Apple provided
 compiler. However, I do not claim any expertise here, but I found a
 workaround for now. It would be great if someone could look into this. The
 error was reproducible by reverting to the original port file. A copy of
 the log of the failure is attached.

 Git is the port installed that depends on lighttpd, and it builds fine
 after the successful build of lighttpd using the aforementioned
 workaround.

-- 
Ticket URL: <https://trac.macports.org/ticket/64376>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list