[MacPorts] #65700: thttpd fails to respect Macports arch settings

MacPorts noreply at macports.org
Sat Aug 20 16:03:33 UTC 2022


#65700: thttpd fails to respect Macports arch settings
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, rosetta, snowleopard
      Port:  thttpd        |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 Replying to [comment:1 kencu]:
 > yes, environment is set up properly, configure seems to use it, but the
 build does not.
 >
 > so have to dig in, fix the Makefile, or pass the flags in via confihure
 args, etc

 Tried this in portfile:
 {{{
 build.args-append   CC=${configure.cc} \
                     CFLAGS="${configure.cflags} [get_canonical_archflags]"
 }}}

 However, got another failure:
 {{{
 --->  Building thttpd
 Executing:  cd
 "/opt/local/var/macports/build/_opt_PPCRosettaPorts_net_thttpd/thttpd/work/thttpd-2.29"
 && /usr/bin/make -j1 -w all CC=/usr/bin/gcc-4.2 CFLAGS="-Os -arch ppc"
 make: Entering directory
 `/opt/local/var/macports/build/_opt_PPCRosettaPorts_net_thttpd/thttpd/work/thttpd-2.29'
 /usr/bin/gcc-4.2 -Os -arch ppc -c thttpd.c
 thttpd.c: In function ‘re_open_logfile’:
 thttpd.c:348: error: ‘F_SETFD’ undeclared (first use in this function)
 thttpd.c:348: error: (Each undeclared identifier is reported only once
 thttpd.c:348: error: for each function it appears in.)
 thttpd.c: In function ‘main’:
 thttpd.c:443: error: ‘F_SETFD’ undeclared (first use in this function)
 make: *** [thttpd.o] Error 1
 }}}

 So this needs more work than just fixing arch linking.

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


More information about the macports-tickets mailing list