[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
Fri Jan 7 22:57:50 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:  ryandesign
      Type:  defect    |     Status:  accepted
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.7.1
Resolution:            |   Keywords:  catalina
      Port:  lighttpd  |
-----------------------+------------------------
Changes (by ryandesign):

 * status:  assigned => accepted
 * keywords:  Catalina => catalina


Comment:

 Your configure output says:
 {{{
 :info:configure checking if lua-support is requested... yes
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua5.4
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua-5.4
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua5.3
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua-5.3
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua5.2
 :info:configure checking for LUA... yes
 }}}
 and later it links with the lua 5.2 library using `-llua-5.2`.

 Mine says:
 {{{
 :info:configure checking if lua-support is requested... yes
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua5.4
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua-5.4
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua5.3
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua-5.3
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua5.2
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua-5.2
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua5.1
 :info:configure checking for LUA... no
 :info:configure configure: Couldn\'t find lua-5.1
 :info:configure checking for LUA... yes
 }}}
 and later it links with the unversioned lua library with `-llua`.

 If I install the lua52 port, then I can get lighttpd to fail to build as
 you did.

 So we need to tell the build system to use the unversioned lua library,
 since that's the one we're declaring a dependency on.

 The reason why the build "worked" when you made the modification you did
 is that you commented out all of the configure arguments, including the
 one that enables lua support. Portfiles are written in the Tcl language,
 and in Tcl a backslash at the end of a line continues that line to the
 next one—even comment lines.

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


More information about the macports-tickets mailing list