DragonFly BSD
DragonFly commits List (threaded) for 2005-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/contrib/tcp_wrappers tcpd.h scaffold.c


From: "Jeremy C. Reed" <reed@xxxxxxxxxxxxx>
Date: Wed, 14 Sep 2005 20:37:15 -0700 (PDT)

This is reply to
http://leaf.dragonflybsd.org/mailarchive/commits/2005-09/msg00036.html

The NetBSD version also includes:

#include <stdio.h>

Without that configure script for net-snmp failed with:
. ..
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for TCP wrappers library -lwrap... no
checking for yp_get_default_domain... yes
checking for TCP wrappers library -lwrap linked with -lnsl... no
configure: error: Asked to use libwrap but I couldn't find it.


Looking closer (config.log) I saw:


/usr/include/tcpd.h:92: error: syntax error before "FILE"

Manually adding to the TCP Wrappers check
#include <stdio.h>
made this work.

I assume that a lot of programs already have FILE defined (such as using stdio.h), but many may not.

Should we add
#include <stdio.h>
to src/contrib/tcp_wrappers/tcpd.h
?

(This was not needed previous to this tcpd.h update.)

Thanks for updating anyways as it will help with other builds.

Jeremy C. Reed

 	  	 	 Media Relations and Publishing Services
	  	 	 http://www.reedmedia.net/



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]