From owner-freebsd-questions Fri Nov 8 19:19:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2C9637B401 for ; Fri, 8 Nov 2002 19:19:51 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A12943E4A for ; Fri, 8 Nov 2002 19:19:51 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id gA93Jnv3052052; Fri, 8 Nov 2002 21:19:49 -0600 (CST) (envelope-from dan) Date: Fri, 8 Nov 2002 21:19:49 -0600 From: Dan Nelson To: Forrest Aldrich Cc: freebsd-questions@FreeBSD.ORG Subject: Re: hotwayd compile on FreeBSD Message-ID: <20021109031949.GB87992@dan.emsphone.com> References: <5.1.1.6.2.20021108214242.020c1898@192.168.1.1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.1.6.2.20021108214242.020c1898@192.168.1.1> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 #include #include #include 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