I have the same problem under Solaris 10 x86
$ make
...
cc -O -DUSE_FD_POOL -DUSE_DNSRBL -D_BSD_SOURCE -I. -I. -c conf_yacc.c
"conf_yacc.y", line 468: undefined symbol: LOG_AUTHPRIV
"conf_yacc.y", line 469: undefined symbol: LOG_FTP
cc: acomp failed for conf_yacc.c
*** Error code 2
make: Fatal error: Command failed for target `conf_yacc.o'
If I remove the two lines 468-469
| LOGFAC LOGFAC_AUTHPRIV { conf.c_logfac = LOG_AUTHPRIV; }
| LOGFAC LOGFAC_FTP { conf.c_logfac = LOG_FTP; }
It's OK for compilation (no test done).
Solaris Syslog.h only know the following syslog facilities.
/*
* Facility codes
*/
#define LOG_KERN (0<<3) /* kernel messages */
#define LOG_USER (1<<3) /* random user-level messages */
#define LOG_MAIL (2<<3) /* mail system */
#define LOG_DAEMON (3<<3) /* system daemons */
#define LOG_AUTH (4<<3) /* security/authorization messages */
#define LOG_SYSLOG (5<<3) /* messages generated internally by
syslogd */
#define LOG_LPR (6<<3) /* line printer subsystem */
#define LOG_NEWS (7<<3) /* netnews subsystem */
#define LOG_UUCP (8<<3) /* uucp subsystem */
#define LOG_AUDIT (13<<3) /* audit subsystem */
#define LOG_CRON (15<<3) /* cron/at subsystem */
/* other codes through 15 reserved for system use */
#define LOG_LOCAL0 (16<<3) /* reserved for local use */
#define LOG_LOCAL1 (17<<3) /* reserved for local use */
#define LOG_LOCAL2 (18<<3) /* reserved for local use */
#define LOG_LOCAL3 (19<<3) /* reserved for local use */
#define LOG_LOCAL4 (20<<3) /* reserved for local use */
#define LOG_LOCAL5 (21<<3) /* reserved for local use */
#define LOG_LOCAL6 (22<<3) /* reserved for local use */
#define LOG_LOCAL7 (23<<3) /* reserved for local use */
Le mar. 10/02/2009 \ufffd 12:20, attila.bruncsak@... a \ufffdcrit :
> >
> > Here is milter-greylist 4.2 beta1, a beta for our next stable
> release:
> >
> > http://ftp.espci.fr/pub/milter-greylist/milter-greylist-4.2b1.tgz
> > MD5 (milter-greylist-4.2b1.tgz) = 2e76e2643469ec393a15dfce9f8ff695
> >
>
> Hello,
>
> I have a compilation problem:
>
> cc -I/usr/local/src/sendmail/libmilter/include -pthread
> -D_XOPEN_SOURCE=500 -D_OSF_SOURCE -D_BSD_SOURCE -I. -I. -c conf_yacc.c
> cc: Error: conf_yacc.y, line 468: In this statement, "LOG_AUTHPRIV" is
> not declared. (undeclared)
> { conf.c_logfac = LOG_AUTHPRIV; } /*NOTREACHED*/ break;
> ------------------^
> cc: Error: conf_yacc.y, line 469: In this statement, "LOG_FTP" is not
> declared. (undeclared)
> { conf.c_logfac = LOG_FTP; } /*NOTREACHED*/ break;
> ------------------^
> *** Exit 1
> Stop.
>
> Actually my system does not have AUTHPRIV and FTP syslog facility in
> <syslog.h>.
>
> The fix would be easy, if the conf_yacc.c would not be a
> generated file (#ifdef the small part of the code).
> Since the source is in yacc I do not know what to do.
> May someone help to modify the code to properly deal with this case?
>
> Bests,
> Attila
>
>
>
>
>
--
Christian P\ufffdlissier
Office National d'\ufffdtudes et de Recherches A\ufffdrospatiales
BP 72 92322 Chatillon
Tel: 33 1 46 73 44 19, Fax: 33 1 46 73 41 50Message
RE: [milter-greylist] syslog facility missing compilation error, was: milter-greylist 4.2beta1 is out
2009-02-10 by Christian PELISSIER
Attachments
- No local attachments were found for this message.