[syslog-ng] 1.9.11 compile failure on Solaris 2.6/7

Albert Chin syslog-ng at mlists.thewrittenword.com
Thu Jun 1 18:08:07 CEST 2006


Seems AF_INET6 is used unconditionally in src/cfg-grammar.y:
source_afsocket
        : KW_UNIX_DGRAM '(' source_afunix_dgram_params ')'      { $$ = $3; }
        | KW_UNIX_STREAM '(' source_afunix_stream_params ')'    { $$ = $3; }
        | KW_UDP { last_addr_family = AF_INET; } '(' source_afinet_udp_params ')
'               { $$ = $4; } 
        | KW_TCP { last_addr_family = AF_INET; } '(' source_afinet_tcp_params ')
'               { $$ = $4; } 
        | KW_UDP6 { last_addr_family = AF_INET6; } '(' source_afinet_udp_params 
')'             { $$ = $4; } 
        | KW_TCP6 { last_addr_family = AF_INET6; } '(' source_afinet_tcp_params 
')'             { $$ = $4; } 
        ;

A build on solaris 2.6/7 fails with:
  cc -DHAVE_CONFIG_H -I. -I. -I..
  -DPATH_SYSCONFDIR=\"/etc/opt/TWWfsw/syslogng1911\"
  -DPATH_LOCALSTATEDIR=\"/var/opt/TWWfsw/syslogng1911\"
  -I/opt/TWWfsw/libglib26/include -I/opt/TWWfsw/libglib26/lib/include
  -I/opt/TWWfsw/gettext014/include
  -I/opt/TWWfsw/syslogng1911/include/eventlog   -D_GNU_SOURCE  -mr -Qn
  -xstrconst -xO2 -xtarget=ultra2 -xarch=v8plusa -c cfg-grammar.c
  "/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y", line 303: undefined symbol: AF_INET6
  "/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y", line 304: undefined symbol: AF_INET6
  "/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y", line 539: undefined symbol: AF_INET6
  "/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y", line 540: undefined symbol: AF_INET6
  cc: acomp failed for cfg-grammar.c

-- 
albert chin (china at thewrittenword.com)


More information about the syslog-ng mailing list