From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Russ_Fish@idx.com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: apache 2.0.40 T64U 4.0F SO_ACCEPTFILTER error Date: Mon, 23 Sep 2002 17:11:58 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032815558 17985 127.0.0.1 (23 Sep 2002 21:12:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 21:12:38 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17taVR-0004fx-00 for ; Mon, 23 Sep 2002 23:12:37 +0200 Original-Received: (qmail 11041 invoked by uid 5); 23 Sep 2002 21:12:26 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11032 invoked by uid 49493); 23 Sep 2002 21:12:25 -0000 Original-Received: from Russ_Fish@idx.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. spamassassin: 2.50-cvs. Clear:SA:0(0.3/5.0):. Processed in 0.391193 secs); 23 Sep 2002 21:12:25 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 23 Sep 2002 21:12:25 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H2W003S9TKNXO@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 23 Sep 2002 17:12:25 -0400 (EDT) Original-Received: from CORVUS.IDX.COM ([198.186.133.125]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H2W006FKTKKWW@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 23 Sep 2002 17:12:21 -0400 (EDT) Original-Received: from bosmta1.idx.com (rampart-vrrp.idx.com) by CORVUS.IDX.COM (Content Technologies SMTPRS 4.2.10) with ESMTP id for ; Mon, 23 Sep 2002 17:11:31 -0400 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.10 March 22, 2002 X-MIMETrack: Serialize by Router on BOSMTA1/BOSTON/IDX1(Release 5.0.9 |November 16, 2001) at 09/23/2002 05:11:50 PM Xref: main.gmane.org gmane.os.tru64.managers:1821 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1821 I had not previously asked a question about this error, I'm just sending a summary in case anyone else runs into this issue. The problem is illustrated below (the Apache configure mistakenly configures in support for the SO_ACCEPTFILTER feature available in BSD): # cd /apache/build/root # ./configure ... # make ... e -I../../include/arch/unix -I../../include/arch/unix -c sockopt.c && touch sockopt.lo cc: Error: sockopt.c, line 356: In this declaration, "af" has no linkage and is of an incomplete type. (incompnolink) struct accept_filter_arg af; -----------------------------^ cc: Error: sockopt.c, line 360: In this statement, "SO_ACCEPTFILTER" is not declared. (undeclared) if ((setsockopt(sock->socketdes, SOL_SOCKET, SO_ACCEPTFILTER, -------------------------------------------------^ *** Exit 1 Stop. The solution was found on Google groups--thanks to Avi Shapiro, Nikola Multinovic, and 'capt': # cd srclib/apr/include # edit apr.h and change #define APR_HAS_SO_ACCEPTFILTER 1 to #define APR_HAS_SO_ACCEPTFILTER 0 # cd - # make (works fine now) FYI the Apache 2.0.40 build works fine on T64U 5.1A -- seems to be a 4.0x problem.