[MacPorts] #65582: util-linux @2.38_1 does not build on PPC Tiger, Mac OS X 10.4.11, because of "Undefined symbols: "_timersub", referenced from: _print_stats in hardlink-hardlink.o"

MacPorts noreply at macports.org
Tue Aug 2 11:40:51 UTC 2022


#65582: util-linux @2.38_1 does not build on PPC Tiger, Mac OS X 10.4.11, because
of "Undefined symbols:   "_timersub", referenced from:   _print_stats in
hardlink-hardlink.o"
-------------------------+--------------------
  Reporter:  ballapete   |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.2
Resolution:              |   Keywords:  tiger
      Port:  util-linux  |
-------------------------+--------------------

Comment (by markmentovai):

 {{{
 :info:build misc-utils/hardlink.c: In function 'print_stats':
 :info:build misc-utils/hardlink.c:343: warning: implicit declaration of
 function 'timersub'
 :info:build misc-utils/hardlink.c:343: warning: nested extern declaration
 of 'timersub'
 }}}

 That’s a problem because `timersub` is a macro, not a function. It seems
 like someone’s missing an #include of `<sys/time.h>`.

 There are other `-Wimplicit-function-declaration` violations in this file
 too: `vasprintf`, `strncasecmp`. But those are functions, not macros, so
 no linker error.

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


More information about the macports-tickets mailing list