Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2002 09:07:09 +0200 (CEST)
From:      Jan Stocker <Jan.Stocker@t-online.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   ports/39359: Downloader 2.01 does not compile on gcc 3.1
Message-ID:  <200206160707.g5G779qb018181@twoflower.liebende.de>

next in thread | raw e-mail | index | archive | help

>Number:         39359
>Category:       ports
>Synopsis:       Downloader 2.01 does not compile on gcc 3.1
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 16 00:10:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jan Stocker
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD twoflower 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Jun 10 22:21:57 CEST 2002 root@twoflower:/usr/src/sys/i386/compile/Twoflower50 i386

>Description:
Downloader has defined prototypes and implementation with default arguments in both files. 
e.g. tHttpDownload::init(tAddr*, tCfg*, tSocket* = 0) in httpd.cc and httpd.h
So compilation failed (unter -current with system cc (3.1))

>How-To-Repeat:
$ cd /usr/ports/ftp/downloader
$ make

>Fix:

diff -urN downloader.orig/files/patch-dqueue.cc downloader/files/patch-dqueue.cc
--- downloader.orig/files/patch-dqueue.cc	Thu Jan  1 01:00:00 1970
+++ downloader/files/patch-dqueue.cc	Sun Jun 16 08:48:12 2002
@@ -0,0 +1,11 @@
+--- main/dqueue.cc.orig	Tue May 28 02:55:12 2002
++++ main/dqueue.cc	Sun Jun 16 08:38:39 2002
+@@ -127,7 +127,7 @@
+ 	};
+ };
+ 
+-void d4xDownloadQueue::add(tDownload *what,int where=DL_WAIT){
++void d4xDownloadQueue::add(tDownload *what,int where){
+ 	if (where==DL_WAIT || where==DL_RUN)
+ 		RUN_OR_WAIT_DOWNLOADS+=1;
+ 	queues[where]->insert(what);
diff -urN downloader.orig/files/patch-hproxy.cc downloader/files/patch-hproxy.cc
--- downloader.orig/files/patch-hproxy.cc	Thu Jan  1 01:00:00 1970
+++ downloader/files/patch-hproxy.cc	Sun Jun 16 08:49:14 2002
@@ -0,0 +1,11 @@
+--- main/hproxy.cci.orig	Thu Apr  4 03:51:31 2002
++++ main/hproxy.cc	Sun Jun 16 08:35:12 2002
+@@ -95,7 +95,7 @@
+ tProxyDownload::tProxyDownload(tWriterLoger *log):tHttpDownload(log){
+ };
+ 
+-int tProxyDownload::init(tAddr *hostinfo,tCfg *cfg,tSocket *s=NULL) {
++int tProxyDownload::init(tAddr *hostinfo,tCfg *cfg,tSocket *s) {
+ 	DBC_RETVAL_IF_FAIL(hostinfo!=NULL,-1);
+ 	DBC_RETVAL_IF_FAIL(cfg!=NULL,-1);
+ 	HTTP=new tHProxyClient(cfg);
diff -urN downloader.orig/files/patch-httpd.cc downloader/files/patch-httpd.cc
--- downloader.orig/files/patch-httpd.cc	Thu Jan  1 01:00:00 1970
+++ downloader/files/patch-httpd.cc	Sun Jun 16 08:50:34 2002
@@ -0,0 +1,11 @@
+--- main/httpd.cc.orig	Thu Mar 28 10:34:34 2002
++++ main/httpd.cc	Sun Jun 16 08:37:50 2002
+@@ -179,7 +179,7 @@
+ 	};
+ };
+ 
+-int tHttpDownload::init(tAddr *hostinfo,tCfg *cfg,tSocket *s=NULL) {
++int tHttpDownload::init(tAddr *hostinfo,tCfg *cfg,tSocket *s) {
+ 	Persistent=0;
+ 	HTTP=new tHttpClient(cfg);
+ 	RetrNum=0;


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206160707.g5G779qb018181>