I don't believe your Makefiles work at all with Sun's compiler. I'd love to use this product but I will not be installing gcc simply to compile one application out of the many I have to maintain here. I've already had to remove -Wall from one Makefile as the option is not recognized by cc. Do you plan to have support for building with Sun Studio? Or am I missing something here?
Here's an example of the many errors I'm getting:
Making all in src/zabbix_agent
make[1]: Entering directory `/export/src/zabbix-1.1alpha10/src/zabbix_agent'
cc -o ../../bin/zabbix_agent -g -I../../include -I/usr/local/include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -lnsl -lkstat -lsocket -L/usr/local/lib -lldap
zabbix_agent.c:
sysinfo.c:
"sysinfo.c", line 289: warning: assignment type mismatch:
pointer to function() returning int "=" pointer to void
"sysinfo.c", line 290: warning: assignment type mismatch:
pointer to function() returning int "=" pointer to void
"sysinfo.c", line 342: warning: argument #2 is incompatible with prototype:
prototype: pointer to void : "sysinfo.c", line 270
argument : pointer to function() returning int
"sysinfo.c", line 342: warning: argument #3 is incompatible with prototype:
prototype: pointer to void : "sysinfo.c", line 270
argument : pointer to function() returning int
"sysinfo.c", line 588: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "/usr/include/iso/stdio_iso.h", line 183
argument : pointer to unsigned char
"sysinfo.c", line 590: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/string.h", line 79
argument : pointer to unsigned char
../../include/log.c:
../../include/cfg.c:
../../include/security.c:
../../include/snprintf.c:
"../../include/snprintf.c", line 182: warning: implicit function declaration: __va_copy
"../../include/snprintf.c", line 823: warning: implicit function declaration: vsnprintf
../../include/md5.c:
Undefined first referenced
symbol in file
__va_copy snprintf.o
ber_free sysinfo.o (symbol belongs to implicit dependency /usr/local/lib/liblber-2.2.so.7)
ld: fatal: Symbol referencing errors. No output written to ../../bin/zabbix_agent
make[1]: *** [all] Error 1
make[1]: Leaving directory `/export/src/zabbix-1.1alpha10/src/zabbix_agent'
make: *** [all] Error 1
Here's an example of the many errors I'm getting:
Making all in src/zabbix_agent
make[1]: Entering directory `/export/src/zabbix-1.1alpha10/src/zabbix_agent'
cc -o ../../bin/zabbix_agent -g -I../../include -I/usr/local/include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -lnsl -lkstat -lsocket -L/usr/local/lib -lldap
zabbix_agent.c:
sysinfo.c:
"sysinfo.c", line 289: warning: assignment type mismatch:
pointer to function() returning int "=" pointer to void
"sysinfo.c", line 290: warning: assignment type mismatch:
pointer to function() returning int "=" pointer to void
"sysinfo.c", line 342: warning: argument #2 is incompatible with prototype:
prototype: pointer to void : "sysinfo.c", line 270
argument : pointer to function() returning int
"sysinfo.c", line 342: warning: argument #3 is incompatible with prototype:
prototype: pointer to void : "sysinfo.c", line 270
argument : pointer to function() returning int
"sysinfo.c", line 588: warning: argument #1 is incompatible with prototype:
prototype: pointer to char : "/usr/include/iso/stdio_iso.h", line 183
argument : pointer to unsigned char
"sysinfo.c", line 590: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/string.h", line 79
argument : pointer to unsigned char
../../include/log.c:
../../include/cfg.c:
../../include/security.c:
../../include/snprintf.c:
"../../include/snprintf.c", line 182: warning: implicit function declaration: __va_copy
"../../include/snprintf.c", line 823: warning: implicit function declaration: vsnprintf
../../include/md5.c:
Undefined first referenced
symbol in file
__va_copy snprintf.o
ber_free sysinfo.o (symbol belongs to implicit dependency /usr/local/lib/liblber-2.2.so.7)
ld: fatal: Symbol referencing errors. No output written to ../../bin/zabbix_agent
make[1]: *** [all] Error 1
make[1]: Leaving directory `/export/src/zabbix-1.1alpha10/src/zabbix_agent'
make: *** [all] Error 1
Comment