error: POSIX.1-2008 realpath(3) is required on macos
G <[email protected]> Fri, 19 Feb 2021 15:54:50 +0900
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <CACrLatUTROT=VPpn89zyrXc80u4u_GG6EjBaXxQWWF0LSK=zEg@mail.gmail.com> |
Hi,
I face one issue to build global on macox.
The error is as below when I run configure.
checking whether POSIX.1-2008 realpath is equipped... no
configure: error: POSIX.1-2008 realpath(3) is required.
I think #include <stdlib.h> is necessary to call realpath on macOS
environment.
I added
#include <stdlib.h>
in configure then configure is completed and build all tool completed.
I attach patch file.
Please take a look.
The below is detailed information.
What is your environment (OS)?
macOS 11.2.1
Which version of Global are you using?
6.6.5
What did you do? (command line)
After I extract source code then, run the below command.
./configure
What did you expect from it?
./configure finish without any error
realpath_configure_error.patch
(application/octet-stream, 287 B)
--- configure.bk 2021-02-19 15:48:10.766333301 +0900
+++ configure 2021-02-19 15:49:25.684116399 +0900
@@ -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; }