[MacPorts] #61554: global @6.6.4: error: implicit declaration of function 'realpath' is invalid in C99

MacPorts noreply at macports.org
Sat Nov 21 18:38:12 UTC 2020


#61554: global @6.6.4: error: implicit declaration of function 'realpath' is
invalid in C99
-----------------------+-----------------------------
  Reporter:  andyturk  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  catalina bigsur
      Port:  global    |
-----------------------+-----------------------------

Comment (by xdxu):

 I manually applied the following patch and build passed.

 {{{
 --- configure.orig      2019-12-24 04:13:29.000000000 -0800
 +++ configure   2020-11-21 10:30:57.000000000 -0800
 @@ -14286,6 +14286,7 @@
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  /* end confdefs.h.  */
 +#include <stdlib.h>

  main(){ (void)realpath("/./tmp", (void *)0); return 0; }

 }}}

 Hope it helps.

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


More information about the macports-tickets mailing list