The patch has a missing )
$ gpatch -p0 < resn.patch
$ autoheader
$ autoconf
$ ./configure --prefix=/usr/local --enable-dnsrbl
...
checking for ns_initparse in -lresolv... no
configure: WARNING: ns_initparse not found
checking for res_ninit... yes
checking for res_ndestroy... yes
checking for res_nclose... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir
settingconfig.status: creating milter-greylist.spec
config.status: creating config.h
$ gmake
gcc -O -Wall -DUSE_DNSRBL -D_BSD_SOURCE -I. -I. -c -o
milter-greylist.o milter-greylist.c
gcc -O -Wall -DUSE_DNSRBL -D_BSD_SOURCE -I. -I. -c -o pending.o
pending.c
gcc -O -Wall -DUSE_DNSRBL -D_BSD_SOURCE -I. -I. -c -o sync.o sync.c
gcc -O -Wall -DUSE_DNSRBL -D_BSD_SOURCE -I. -I. -c -o dnsrbl.o
dnsrbl.c
dnsrbl.c:70:61: missing ')' in expression
gmake: *** [dnsrbl.o] Error 1
#if (defined(HAVE_RES_NINIT) || defined(res_ninit) || (__RES >=
19991006) )
#define HAVE_RESN 1
#if (!defined(res_ndestroy) && (!defined(HAVE_RES_NDESTROY))
#define res_ndestroy(res) res_nclose(res)
#endif
#else
#define res_ninit(res) \
((_res.options & RES_INIT) == 0 && res_init())
#define res_nquery(res, req, class, type, ans, anslen) \
res_query(req, class, type, ans, anslen)
#define res_ndestroy(res)
#endif
#if (!defined(res_ndestroy)) && (!defined(HAVE_RES_NDESTROY))
^^^missing )
Le ven. 19/02/2010 à 23:03, manu@... a écrit :
>
>
> Dietmar Rieder <adrieder@...> wrote:
>
> > is this patch against milter-greylist-4.2.3?
> > Here it doesn't apply cleanly:
> >
> > # gpatch -p0 < resn.patch
>
> The important part applied. Just run autoheader; autoconf and rerun
> configure
>
> --
> Emmanuel Dreyfus
> http://hcpnet.free.fr/pubz
> manu@...
>
>
>
>
--
Christian Pélissier
Office National d'Études et de Recherches Aérospatiales
BP 72 92322 Chatillon
Tel: 33 1 46 73 44 19, Fax: 33 1 46 73 41 50Message
Re: We need you for autoconf hacking (was: Re: [milter-greylist] memory consumption)
2010-02-22 by Christian Pélissier
Attachments
- No local attachments were found for this message.