Bug 102295 - New port: net-p2p/dclibc A Direct Connect peer-to-peer protocol C library
Summary: New port: net-p2p/dclibc A Direct Connect peer-to-peer protocol C library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ion-Mihai "IOnut" Tetcu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-19 22:50 UTC by Pankov Pavel
Modified: 2007-01-10 19:59 UTC (History)
0 users

See Also:


Attachments
file.shar (3.00 KB, text/plain)
2006-08-19 22:50 UTC, Pankov Pavel
no flags Details
dclibc.patch (1.76 KB, patch)
2006-09-11 17:01 UTC, Pankov Pavel
no flags Details | Diff
smime.p7s (4.38 KB, application/x-pkcs7-signature)
2006-09-14 10:20 UTC, Pankov Pavel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pankov Pavel 2006-08-19 22:50:15 UTC
DCLibC is a library for implementing the Direct Connect peer-to-peer
protocol. It offers support for the NMDC protocol (client-hub
commands and client-client operations) and an interface to the
most common filelists.

WWW: http://www.gtkdc.org/
Comment 1 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-08-20 13:14:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->itetcu

I'll take it.
Comment 2 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-08-20 13:29:42 UTC
State Changed
From-To: open->feedback

New, port added, thanks. Marked IGNORE on 4.c because it doesn't build. 
The error here is with GCC 3.3+, with 3.2+ is different: 
http://sce-tindy.tecnik93.com/tb/errors/4-STABLE-i386-myPT/dclibc-0.1.1.d1.log
Comment 3 Pankov Pavel 2006-09-02 21:15:58 UTC
>New, port added, thanks. Marked IGNORE on 4.c because it doesn't build. 
>The error here is with GCC 3.3+, with 3.2+ is different: 
>http://sce-tindy.tecnik93.com/tb/errors/4-STABLE-i386-myPT/dclibc-0.1.1.d1.
log 
Try this patch. It adds include statements for both <sys/types.h> and
<sys/socket.h> as socket(2) suggests and also fixes a typo in my email
address. Unfortunately, I cannot test if it fix building as I don't have any
4.X machine...
Here is the patch (in case formating is broken, patch can be fetched from
http://pankovpv.sovietservers.com/freebsd-ports/dclibc.patch ):

Index: ports/net-p2p/dclibc/Makefile
===================================================================
RCS file: /home/ncvs/ports/net-p2p/dclibc/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- ports/net-p2p/dclibc/Makefile	20 Aug 2006 12:28:42 -0000	1.1
+++ ports/net-p2p/dclibc/Makefile	2 Sep 2006 20:06:20 -0000
@@ -1,12 +1,13 @@
 # New ports collection makefile for:	dclibc
 # Date created:		2006-08-20
-# Whom:			Pankov Pavel <pankov_@mail.ru>
+# Whom:			Pankov Pavel <pankov_p@mail.ru>
 #
 # $FreeBSD: ports/net-p2p/dclibc/Makefile,v 1.1 2006/08/20 12:28:42 itetcu
Exp $
 #
 
 PORTNAME=	dclibc
 PORTVERSION=	0.1.1.d1
+PORTREVISION=	1
 CATEGORIES=	net-p2p
 MASTER_SITES=	http://www.gtkdc.org/gtkdc_files/dclibc/0.1/
 DISTNAME=	dclibc-0.1.1-debug1
Index: ports/net-p2p/dclibc/files/patch-socket
===================================================================
RCS file: ports/net-p2p/dclibc/files/patch-socket
diff -N ports/net-p2p/dclibc/files/patch-socket
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ports/net-p2p/dclibc/files/patch-socket	2 Sep 2006 20:06:20 -0000
@@ -0,0 +1,32 @@
+--- dclibc/hub.c-orig	Wed May 31 22:33:05 2006
++++ dclibc/hub.c	Sat Sep  2 23:15:47 2006
+@@ -20,6 +20,7 @@
+
****************************************************************************
***/
+ 
+ #include <string.h>
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <errno.h>
+ #include <unistd.h>
+--- dclibc/hubconn.c-orig	Wed May 31 22:42:57 2006
++++ dclibc/hubconn.c	Sat Sep  2 23:16:14 2006
+@@ -24,8 +24,8 @@
+ #include <unistd.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+-#include <sys/socket.h>
+ #include <sys/types.h>
++#include <sys/socket.h>
+ #include <signal.h>
+ #include <netdb.h>
+ #include <stdlib.h>
+--- dclibc/search.c-orig	Fri Jun  2 14:20:20 2006
++++ dclibc/search.c	Sat Sep  2 23:16:37 2006
+@@ -24,6 +24,7 @@
+ #include <unistd.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <errno.h>
+ #include "hub.h"
Comment 4 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-09-04 10:24:24 UTC
State Changed
From-To: feedback->open

new patch received
Comment 5 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-09-04 10:25:09 UTC
State Changed
From-To: open->feedback

Please either attached the patch is such way it doesn't get mangled by 
mail or upload it somewhere and pass me the link. Thanks.
Comment 6 Pankov Pavel 2006-09-11 17:01:39 UTC
Sorry for delay... Same patch attached and also fetchable from 
http://pankovpv.sovietservers.com/freebsd/ports/dclibc.patch

In case it fixes build on 4.X, IGNORE section of Makefile can be deleted.
Comment 7 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-09-11 20:41:25 UTC
State Changed
From-To: feedback->open

new patch received
Comment 8 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-09-12 10:18:21 UTC
On Mon, 11 Sep 2006 20:01:39 +0400
Pankov Pavel <pankov_p@mail.ru> wrote:

> Sorry for delay... Same patch attached and also fetchable from 
> http://pankovpv.sovietservers.com/freebsd/ports/dclibc.patch
> 
> In case it fixes build on 4.X, IGNORE section of Makefile can be
> deleted.


http://sce-tindy.tecnik93.com/tb/errors/4-STABLE-i386-myPT/dclibc-0.1.1.d1.log
===>  Building for dclibc-0.1.1.d1
make  all-recursive
Making all in dclibc
source='dclibc.c' object='dclibc.lo' libtool=yes  DEPDIR=.deps depmode=gcc /bin/sh ../depcomp  /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H  -I. -I. -I.. -I/usr/local/include  -DG_DISABLE_DEPRECATED  -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  -Wall -DG_LOG_DOMAIN=\"DCLibC\"     -O -pipe -c -o dclibc.lo dclibc.c
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -DG_DISABLE_DEPRECATED -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -Wall -DG_LOG_DOMAIN=\"DCLibC\" -O -pipe -c dclibc.c -Wp,-MD,.deps/dclibc.TPlo  -fPIC -DPIC -o .libs/dclibc.o
dclibc.c: In function `dclibc_trash_flush':
dclibc.c:94: syntax error before `data'
dclibc.c:95: `data' undeclared (first use in this function)
dclibc.c:95: (Each undeclared identifier is reported only once
dclibc.c:95: for each function it appears in.)
*** Error code 1

Stop in /work/a/ports/net-p2p/dclibc/work/dclibc-0.1.1-debug1/dclibc.
*** Error code 1

Stop in /work/a/ports/net-p2p/dclibc/work/dclibc-0.1.1-debug1.
*** Error code 1

Stop in /work/a/ports/net-p2p/dclibc/work/dclibc-0.1.1-debug1.
*** Error code 1

-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"

BOFH excuse #265:
The mouse escaped

Comment 9 Pankov Pavel 2006-09-14 10:20:13 UTC
Here is [I hope] final patch for 4.X building. At least, for 4.11 it
works...
http://pankovpv.sovietservers.com/freebsd/ports/dclibc-new.patch
Comment 10 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2007-01-10 19:59:18 UTC
State Changed
From-To: open->closed

New port added. Thanks!