Date: Fri, 8 Nov 2002 21:19:49 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Forrest Aldrich <forrie@forrie.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: hotwayd compile on FreeBSD Message-ID: <20021109031949.GB87992@dan.emsphone.com> In-Reply-To: <5.1.1.6.2.20021108214242.020c1898@192.168.1.1> References: <5.1.1.6.2.20021108214242.020c1898@192.168.1.1>
next in thread | previous in thread | raw e-mail | index | archive | help
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 dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021109031949.GB87992>