[MacPorts] #61502: macutil @2.0b3 (sysutils): port build failure

MacPorts noreply at macports.org
Mon Dec 14 03:28:53 UTC 2020


#61502: macutil @2.0b3 (sysutils): port build failure
-----------------------+--------------------
  Reporter:  hpauluss  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.4
Resolution:            |   Keywords:
      Port:  macutil   |
-----------------------+--------------------

Comment (by cooljeanius):

 Replying to [comment:2 ryandesign]:
 > Checking on my system, I see it's the usual implicit declaration of
 function problem with Xcode 12.

 Confirming this:
 {{{
 /usr/bin/clang -O -Os -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -arch x86_64
 -c -o backtrans.o backtrans.c
 util.c:101:12: error: implicit declaration of function 'read' is invalid
 in C99 [-Werror,-Wimplicit-function-declaration]
     (void) read(2, temp, sizeof(temp));
            ^
 util.c:101:12: note: did you mean 'fread'?
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:158:9:
 note: 'fread' declared here
 size_t   fread(void * __restrict __ptr, size_t __size, size_t __nitems,
 FILE * __restrict __stream);
          ^
 1 error generated.
 make[1]: *** [util.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_macutil/macutil/work/macutil/util'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_macutil/macutil/work/macutil'
 }}}

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


More information about the macports-tickets mailing list