[syslog-ng] 'make fails' @ conflicting types for 'affile_dd_set_file_perm'

OpenMacNews OpenMacNews at speakeasy.net
Sat Aug 6 04:37:12 CEST 2005


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


More information about the syslog-ng mailing list