'make fails' @ conflicting types for 'affile_dd_set_file_perm'
hi, moving (finally) to bldg syslog-ng 1.9-snapshot on OSX 10.4.2 prereqs of glib 2.7.7 & eventlog-snapshot are built/installed. syslog-ng-1.9-snapshot fails on 'make' @: ... if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/bind9/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/eventlog -D_GNU_SOURCE -g -O2 -Wall -g -MT affile.o -MD -MP -MF ".deps/affile.Tpo" -c -o affile.o affile.c; \ then mv -f ".deps/affile.Tpo" ".deps/affile.Po"; else rm -f ".deps/affile.Tpo"; exit 1; fi affile.c:305: error: conflicting types for 'affile_dd_set_file_perm' affile.c:305: note: an argument type that has a default promotion can't match an empty parameter name list declaration affile.h:75: error: previous declaration of 'affile_dd_set_file_perm' was here affile.c:329: error: conflicting types for 'affile_dd_set_dir_perm' affile.c:329: note: an argument type that has a default promotion can't match an empty parameter name list declaration affile.h:78: error: previous declaration of 'affile_dd_set_dir_perm' was here affile.c: In function 'affile_dd_init': affile.c:422: warning: comparison is always false due to limited range of data type affile.c:428: warning: comparison is always false due to limited range of data type make[2]: *** [affile.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 % checking the declarations for 'affile_dd_set_file_perm' ... % grep affile_dd_set_file_perm `grep -rln affile_dd_set_file_perm .` ./src/affile.c:affile_dd_set_file_perm(LogPipe *s, mode_t file_perm) ./src/affile.h:void affile_dd_set_file_perm(); ./src/cfg-grammar.c: { affile_dd_set_file_perm(last_driver, yyvsp[-1].num); } ./src/cfg-grammar.c: { affile_dd_set_file_perm(last_driver, yyvsp[-1].num); } ./src/cfg-grammar.y: | KW_PERM '(' NUMBER ')' { affile_dd_set_file_perm(last_driver, $3); } ./src/cfg-grammar.y: | KW_PERM '(' NUMBER ')' { affile_dd_set_file_perm(last_driver, $3); } it's not immediately clear which is the conflict. ideas? richard
On Fri, 2005-08-05 at 19:37 -0700, OpenMacNews wrote:
hi,
moving (finally) to bldg syslog-ng 1.9-snapshot on OSX 10.4.2
prereqs of glib 2.7.7 & eventlog-snapshot are built/installed.
syslog-ng-1.9-snapshot fails on 'make' @:
... if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/bind9/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/eventlog -D_GNU_SOURCE -g -O2 -Wall -g -MT affile.o -MD -MP -MF ".deps/affile.Tpo" -c -o affile.o affile.c; \ then mv -f ".deps/affile.Tpo" ".deps/affile.Po"; else rm -f ".deps/affile.Tpo"; exit 1; fi affile.c:305: error: conflicting types for 'affile_dd_set_file_perm' affile.c:305: note: an argument type that has a default promotion can't match an empty parameter name list declaration affile.h:75: error: previous declaration of 'affile_dd_set_file_perm' was here affile.c:329: error: conflicting types for 'affile_dd_set_dir_perm' affile.c:329: note: an argument type that has a default promotion can't match an empty parameter name list declaration affile.h:78: error: previous declaration of 'affile_dd_set_dir_perm' was here affile.c: In function 'affile_dd_init': affile.c:422: warning: comparison is always false due to limited range of data type affile.c:428: warning: comparison is always false due to limited range of data type make[2]: *** [affile.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I've fixed this one, and I've also found a problem in uid/gid setting for file destinations. The fixes should be incorporated in tonight's snapshot. -- Bazsi
hi,
I've fixed this one, and I've also found a problem in uid/gid setting for file destinations. The fixes should be incorporated in tonight's snapshot.
building on OSX 10.4.2: eventlog-0.2.3+20050808 syslog-ng-1.9.5+20050808 the problem is, indeed, gone. =) the resulting binary looks ok: % rehash % which syslog-ng /usr/local/sbin/syslog-ng % syslog-ng --version syslog-ng 1.9.5 % otool -L /usr/local/sbin/syslog-ng /usr/local/bind9/lib/liblwres.1.dylib (compatibility version 4.0.0, current version 4.2.0) /usr/local/bind9/lib/libbind9.0.dylib (compatibility version 1.0.0, current version 1.5.0) /usr/local/lib/libglib-2.0.0.dylib (compatibility version 702.0.0, current version 702.6.0) /usr/local/lib/libintl.3.dylib (compatibility version 8.0.0, current version 8.3.0) /usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/local/lib/libevtlog.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.0.0) and seems to launch ok: % /Library/StartupItems/SyslogNG/SyslogNG start % ps -ax | grep syslog-ng 14456 ?? Rs 0:28.95 /usr/local/sbin/syslog-ng -f /usr/local/etc/syslog-ng/syslog-ng.conf -p /var/run/syslog-ng.pid BUT, % make check fails with: Making check in src make[1]: Nothing to be done for `check'. Making check in doc make[1]: Nothing to be done for `check'. Making check in tests Making check in unit make test_msgparse test_template if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/bind9/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/eventlog -D_GNU_SOURCE -I../../src -g -O2 -Wall -g -MT test_msgparse.o -MD -MP -MF ".deps/test_msgparse.Tpo" -c -o test_msgparse.o test_msgparse.c; \ then mv -f ".deps/test_msgparse.Tpo" ".deps/test_msgparse.Po"; else rm -f ".deps/test_msgparse.Tpo"; exit 1; fi test_msgparse.c: In function `main': test_msgparse.c:78: error: invalid lvalue in assignment make[3]: *** [test_msgparse.o] Error 1 make[2]: *** [check-am] Error 2 make[1]: *** [check-recursive] Error 1 make: *** [check-recursive] Error 1 cheers, richard
On Sun, 2005-08-07 at 20:07 -0700, OpenMacNews wrote:
hi,
I've fixed this one, and I've also found a problem in uid/gid setting for file destinations. The fixes should be incorporated in tonight's snapshot.
the problem is, indeed, gone. =)
Making check in src make[1]: Nothing to be done for `check'. Making check in doc make[1]: Nothing to be done for `check'. Making check in tests Making check in unit make test_msgparse test_template if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/bind9/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/eventlog -D_GNU_SOURCE -I../../src -g -O2 -Wall -g -MT test_msgparse.o -MD -MP -MF ".deps/test_msgparse.Tpo" -c -o test_msgparse.o test_msgparse.c; \ then mv -f ".deps/test_msgparse.Tpo" ".deps/test_msgparse.Po"; else rm -f ".deps/test_msgparse.Tpo"; exit 1; fi test_msgparse.c: In function `main': test_msgparse.c:78: error: invalid lvalue in assignment make[3]: *** [test_msgparse.o] Error 1 make[2]: *** [check-am] Error 2 make[1]: *** [check-recursive] Error 1 make: *** [check-recursive] Error 1
Your platform has a timezone() function instead of a timezone variable, fixed that as well. Here's the diff: --- orig/tests/unit/test_msgparse.c +++ mod/tests/unit/test_msgparse.c @@ -75,7 +75,7 @@ int main(int argc G_GNUC_UNUSED, char *argv[] G_GNUC_UNUSED) { putenv("TZ=UTC"); - timezone = 0; + tzset(); testcase("<7>Sep 7 10:43:21 bzorp openvpn[2499]: PTHREAD support initialized", 0, 7, // pri 1094553801, 0, 0, // timestamp (sec/usec/zone) -- Bazsi
participants (2)
-
Balazs Scheidler
-
OpenMacNews