In the last episode (Nov 08), Forrest Aldrich said: > I'm trying to compile hotwayd (an HTTPmail program) on FreeBSD-4.7; getting > this error, but it looks like a header requirement for the code. Anyone > fix this? > > Line 39 reads: > > struct sockaddr_in sock; > > # gmake > gcc -DHAVE_LIBXML2=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_SYSLOG_H=1 > -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_GETHOSTNAME=1 -DHAVE_STRDUP=1 > -DHAVE_STRSTR=1 -DHAVE_STRTOUL=1 -I. -I. -I/usr/include `xml2-config > --cflags` -g -O2 -c inet.c > In file included from inet.c:27: > /usr/include/arpa/inet.h:89: warning: parameter has incomplete type > /usr/include/arpa/inet.h:92: warning: parameter has incomplete type > /usr/include/arpa/inet.h:96: warning: parameter has incomplete type > inet.c: In function `inet_init': > inet.c:39: storage size of `sock' isn't known > inet.c:49: type of formal parameter 1 is incomplete > inet.c:68: type of formal parameter 1 is incomplete > gmake: *** [inet.o] Error 1
These are the headers that are required to use inet.h: #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> Make sure they are all there, in that order, in inet.c. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message