[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
Mon Aug 15 14:40:14 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 ballapete):

 With this additional line in `Portfile` building succeeds. There are some
 differences during `configure` or `build` phases:

 {{{
 before -include sys/time.h              after -include sys/time.h
 ==================================================================
 checking for nanosleep... no            -> yes
 checking for timegm... no               -> yes
 checking for clock_gettime... no        -> yes
 checking for setitimer... no            -> yes
                                         WARNING: timer_create/setitimer
 function not found; not building flock

                                         GCC -c lib/timeutils.c
                                         In file included from
 lib/timeutils.c:32:
                                         ./include/timeutils.h:89: warning:
 redundant redeclaration of 'timegm'
                                         /usr/include/time.h:154: warning:
 previous declaration of 'timegm' was here

                                         GCC -c misc-utils/hardlink.c
                                         In file included from misc-
 utils/hardlink.c:51:
                                         ./include/xalloc.h: In function
 'xasprintf':
                                         ./include/xalloc.h:104: warning:
 implicit declaration of function 'vasprintf'
                                         ./include/xalloc.h:104: warning:
 nested extern declaration of 'vasprintf'
                                         In file included from misc-
 utils/hardlink.c:52:
                                         ./include/strutils.h: In function
 'startswith_no_case':
                                         ./include/strutils.h:242: warning:
 implicit declaration of function 'strncasecmp'
                                         misc-utils/hardlink.c: In function
 'file_xattrs_equal':
                                         misc-utils/hardlink.c:580:
 warning: unused parameter 'a'
                                         misc-utils/hardlink.c:580:
 warning: unused parameter 'b'
                                         misc-utils/hardlink.c: In function
 'inserter':
                                         misc-utils/hardlink.c:816:
 warning: format '%ld' expects type 'long int', but argument 4 has type
 'dev_t'
                                         misc-utils/hardlink.c:816:
 warning: format '%ld' expects type 'long int', but argument 5 has type
 'ino_t'
 }}}

 Looks better than my patch!

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


More information about the macports-tickets mailing list