From trasz@pin.if.uz.zgora.pl  Thu Dec 14 23:46:42 2006
Return-Path: <trasz@pin.if.uz.zgora.pl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 48EED16A47C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Dec 2006 23:46:42 +0000 (UTC)
	(envelope-from trasz@pin.if.uz.zgora.pl)
Received: from pin.if.uz.zgora.pl (pin.if.uz.zgora.pl [212.109.128.251])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 08DBB43CAC
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Dec 2006 23:44:54 +0000 (GMT)
	(envelope-from trasz@pin.if.uz.zgora.pl)
Received: by pin.if.uz.zgora.pl (Postfix, from userid 1001)
	id B7C3D39DBA; Fri, 15 Dec 2006 00:49:26 +0100 (CET)
Message-Id: <20061214234926.B7C3D39DBA@pin.if.uz.zgora.pl>
Date: Fri, 15 Dec 2006 00:49:26 +0100 (CET)
From: trasz <trasz@pin.if.uz.zgora.pl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] www/fhttpd: fix build with gcc41
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         106737
>Category:       ports
>Synopsis:       [PATCH] www/fhttpd: fix build with gcc41
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 14 23:50:05 GMT 2006
>Closed-Date:    Fri Dec 15 08:39:05 GMT 2006
>Last-Modified:  Fri Dec 15 08:40:12 GMT 2006
>Originator:     trasz
>Release:        FreeBSD 6.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Wed Nov 15 19:16:30 CET 2006
>Description:
Fix build with gcc41.

http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.7.2006121307/fhttpd-0.4.2.log

Added file(s):
- files/patch-fhttpd.h

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- fhttpd-0.4.2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/fhttpd/files/patch-ae /home/trasz/fhttpd/files/patch-ae
--- /usr/ports/www/fhttpd/files/patch-ae	Fri Jul 14 01:00:46 2000
+++ /home/trasz/fhttpd/files/patch-ae	Fri Dec 15 00:48:37 2006
@@ -1,5 +1,5 @@
---- sockobj.cc.orig	Sat May 15 07:13:54 1999
-+++ sockobj.cc	Thu Jul 13 18:50:19 2000
+--- sockobj.cc.orig	Sat May 15 13:13:54 1999
++++ sockobj.cc	Fri Dec 15 00:37:45 2006
 @@ -53,6 +53,7 @@
  #include <stdarg.h>
  #include <errno.h>
@@ -8,7 +8,16 @@
  #include <sys/socket.h>
  #include <sys/un.h>
  #include <netinet/in.h>
-@@ -645,7 +646,7 @@
+@@ -93,6 +94,8 @@
+ extern int errno;
+ #endif
+ 
++void cleanupserverdriver(SIGARGS);
++
+ /****************************************
+ *** common daemon global variables
+ ****************************************/
+@@ -645,7 +648,7 @@
  global_nconnections++;
  if(xsocket->status==0){
   hisaddresslength=128;
@@ -17,7 +26,7 @@
   if(h<0) return;
   hisaddress=(struct sockaddr*)malloc(hisaddresslength);
   if(hisaddress) memcpy(hisaddress,s,hisaddresslength); else{
-@@ -1861,7 +1862,7 @@
+@@ -1861,7 +1864,7 @@
      if(fdarray[sockets[i]->handleindexforwheel].revents&POLLIN){
       fdarray[sockets[i]->handleindexforwheel].revents&=~POLLIN;
       hisaddresslength=128;
diff -ruN --exclude=CVS /usr/ports/www/fhttpd/files/patch-fhttpd.h /home/trasz/fhttpd/files/patch-fhttpd.h
--- /usr/ports/www/fhttpd/files/patch-fhttpd.h	Thu Jan  1 01:00:00 1970
+++ /home/trasz/fhttpd/files/patch-fhttpd.h	Fri Dec 15 00:48:37 2006
@@ -0,0 +1,13 @@
+--- fhttpd.h.orig	Fri Dec 15 00:34:52 2006
++++ fhttpd.h	Fri Dec 15 00:35:10 2006
+@@ -249,8 +249,8 @@
+ void response(ServerConnection *client,char *fmt,...);
+ void hugeresponse(ServerConnection *client,char *buffer,unsigned long size);
+ void setexitafterresponse(ServerConnection *client,int closeonexit);
+-int ControlFTPServer::getexitafterresponse(ServerConnection *client);
+-void ControlFTPServer::emptyresponse(ServerConnection *client);
++int getexitafterresponse(ServerConnection *client);
++void emptyresponse(ServerConnection *client);
+ void suspendpollforresponse(ServerConnection *client,int startpollonexit);
+ 
+ void answer_to_list(char *buffer,int i,int *syncexpected,
diff -ruN --exclude=CVS /usr/ports/www/fhttpd/pkg-plist /home/trasz/fhttpd/pkg-plist
--- /usr/ports/www/fhttpd/pkg-plist	Fri Jul 14 03:53:32 2000
+++ /home/trasz/fhttpd/pkg-plist	Fri Dec 15 00:48:38 2006
@@ -4,44 +4,44 @@
 sbin/fhttpd
 sbin/fhttpd-file
 sbin/fhttpd-log
-share/fhttpd/bin/finger-nohtml
-share/fhttpd/cgi-bin/.index.html
-share/fhttpd/cgi-bin/finger
-share/fhttpd/cgi-bin/fortune
-share/fhttpd/icons/at_work.gif
-share/fhttpd/icons/audio.gif
-share/fhttpd/icons/audio.xbm
-share/fhttpd/icons/binary.gif
-share/fhttpd/icons/binary.xbm
-share/fhttpd/icons/c_text.gif
-share/fhttpd/icons/c_text.xbm
-share/fhttpd/icons/cdromicon.gif
-share/fhttpd/icons/exec.gif
-share/fhttpd/icons/folder.gif
-share/fhttpd/icons/folder.xbm
-share/fhttpd/icons/ftp.gif
-share/fhttpd/icons/html.gif
-share/fhttpd/icons/html.xbm
-share/fhttpd/icons/image.gif
-share/fhttpd/icons/image.xbm
-share/fhttpd/icons/movie.gif
-share/fhttpd/icons/text.gif
-share/fhttpd/icons/text.xbm
-share/fhttpd/index.html
-share/fhttpd/noaccess.html
-share/fhttpd/private/.footer.html
-share/fhttpd/private/.header.html
-share/fhttpd/private/.index.html
-share/fhttpd/private/dummy_file
-share/fhttpd/private/dummy_file.html
-share/fhttpd/pub/.footer.html
-share/fhttpd/pub/.header.html
-share/fhttpd/pub/.index.html
-share/fhttpd/pub/dummy_file.html
-@dirrm share/fhttpd/bin
-@dirrm share/fhttpd/cgi-bin
-@dirrm share/fhttpd/icons
-@dirrm share/fhttpd/incoming
-@dirrm share/fhttpd/private
-@dirrm share/fhttpd/pub
-@dirrm share/fhttpd
+%%DATADIR%%/bin/finger-nohtml
+%%DATADIR%%/cgi-bin/.index.html
+%%DATADIR%%/cgi-bin/finger
+%%DATADIR%%/cgi-bin/fortune
+%%DATADIR%%/icons/at_work.gif
+%%DATADIR%%/icons/audio.gif
+%%DATADIR%%/icons/audio.xbm
+%%DATADIR%%/icons/binary.gif
+%%DATADIR%%/icons/binary.xbm
+%%DATADIR%%/icons/c_text.gif
+%%DATADIR%%/icons/c_text.xbm
+%%DATADIR%%/icons/cdromicon.gif
+%%DATADIR%%/icons/exec.gif
+%%DATADIR%%/icons/folder.gif
+%%DATADIR%%/icons/folder.xbm
+%%DATADIR%%/icons/ftp.gif
+%%DATADIR%%/icons/html.gif
+%%DATADIR%%/icons/html.xbm
+%%DATADIR%%/icons/image.gif
+%%DATADIR%%/icons/image.xbm
+%%DATADIR%%/icons/movie.gif
+%%DATADIR%%/icons/text.gif
+%%DATADIR%%/icons/text.xbm
+%%DATADIR%%/index.html
+%%DATADIR%%/noaccess.html
+%%DATADIR%%/private/.footer.html
+%%DATADIR%%/private/.header.html
+%%DATADIR%%/private/.index.html
+%%DATADIR%%/private/dummy_file
+%%DATADIR%%/private/dummy_file.html
+%%DATADIR%%/pub/.footer.html
+%%DATADIR%%/pub/.header.html
+%%DATADIR%%/pub/.index.html
+%%DATADIR%%/pub/dummy_file.html
+@dirrm %%DATADIR%%/bin
+@dirrm %%DATADIR%%/cgi-bin
+@dirrm %%DATADIR%%/icons
+@dirrm %%DATADIR%%/incoming
+@dirrm %%DATADIR%%/private
+@dirrm %%DATADIR%%/pub
+@dirrm %%DATADIR%%
--- fhttpd-0.4.2.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Dec 14 23:50:53 UTC 2006 
Responsible-Changed-Why:  
miwi@ wants this PRs 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106737 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Fri Dec 15 08:39:01 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106737 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/106737: commit references a PR
Date: Fri, 15 Dec 2006 08:39:15 +0000 (UTC)

 miwi        2006-12-15 08:38:17 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www/fhttpd           pkg-plist 
     www/fhttpd/files     patch-ae 
   Added files:
     www/fhttpd/files     patch-fhttpd.h 
   Log:
   - Fix gcc 4.X build
   
   PR:             ports/106737
   Submitted by:   trasz
   
   Revision  Changes    Path
   1.4       +13 -4     ports/www/fhttpd/files/patch-ae
   1.1       +13 -0     ports/www/fhttpd/files/patch-fhttpd.h (new)
   1.4       +41 -41    ports/www/fhttpd/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
