Can't compile latest 4.0.8 on Macos 10.9
Posted: Sat Aug 23, 2014 10:48 am
Hello
I try to compile nagios 4.0.8 on Mac (10.9.4) with macports and it fails like this
pointers to solve that?
Thanks
I try to compile nagios 4.0.8 on Mac (10.9.4) with macports and it fails like this
Code: Select all
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_Users_user_ports_net_nagios/nagios/work/nagios-4.0.8/lib'
:info:build /usr/bin/clang -Wall -pipe -Os -Os -arch x86_64 -arch x86_64 -I/opt/local/include -DHAVE_CONFIG_H -c runcmd.c -o runcmd.o
:info:build /usr/bin/clang -Wall -pipe -Os -Os -arch x86_64 -arch x86_64 -I/opt/local/include -DHAVE_CONFIG_H -c nsutils.c -o nsutils.o
:info:build runcmd.c:590:50: error: expression is not assignable
:info:build if (asprintf(&env_string, "%s=%s", name, value) = -1) return -1;
:info:build ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build runcmd.c:592:9: warning: equality comparison result unused [-Wunused-comparison]
:info:build errno == ENOMEM;
:info:build ~~~~~~^~~~~~~~~
:info:build runcmd.c:592:9: note: use '=' to turn this equality comparison into an assignment
:info:build errno == ENOMEM;
:info:build ^~
:info:build =
:info:build 1 warning and 1 error generated.
:info:build make[2]: *** [runcmd.o] Error 1
Thanks