Subject: mail/spamd and error: redefinition of 'struct syslog_data'
To: None <>
From: Jeremy C. Reed <>
List: pkgsrc-users
Date: 08/08/2007 09:05:20
I had same problem as here:

In file included from spamd.c:37:
/usr/include/syslog.h:172: error: redefinition of 'struct syslog_data'
In file included from spamd.c:37:
/usr/include/syslog.h:212: error: format string argument not a string type

spamd includes a compatibility header that defines it on NetBSD.

I bypassed that with -D_HAVE_SYSLOG_R_ but then it fails with:

spamd.c:(.text+0x1235): undefined reference to `syslog_r'
spamd.c:(.text+0x12d6): undefined reference to `syslog_r'
spamd.o:spamd.c:(.text+0x1786): more undefined references to `syslog_r' 
spamd.o: In function `main':
spamd.c:(.text+0x1a2f): undefined reference to `openlog_r'


This is on some NetBSD 3.99.24 (I need to upgrade).

But it is fine on NetBSD 3.1.

  Jeremy C. Reed