gtk-gnutella-devel Digest, Vol 28, Issue 3

View: New views
1 Messages — Rating Filter:   Alert me  

gtk-gnutella-devel Digest, Vol 28, Issue 3

by gtk-gnutella-devel-request :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Send gtk-gnutella-devel mailing list submissions to
        gtk-gnutella-devel@...

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
or, via email, send a message with subject or body 'help' to
        gtk-gnutella-devel-request@...

You can reach the person managing the list at
        gtk-gnutella-devel-owner@...

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-gnutella-devel digest..."


Today's Topics:

   1.  creating a reputation aware gnutella client (Moutupsi Paul)
   2. Re:  creating a reputation aware gnutella client (Christian Biere)
   3.  No bitzify in src/contrib/bitzify/ (Larry Nieves)
   4. Re:  GTKG SVN ebuild for Gentoo Users (gionnico)
   5. Re:  GTKG SVN ebuild for Gentoo Users
      (revision-overwrite-disable.patch) (gionnico)
   6. Re:  No bitzify in src/contrib/bitzify/ (Christian Biere)
   7.  FATAL: Assertion failure in atoms.c:928: "size > 0" in
      0.96.6 (Jochen Kemnade)
   8. Re:  FATAL: Assertion failure in atoms.c:928: "size > 0" in
      0.96.6 (Christian Biere)


----------------------------------------------------------------------

Message: 1
Date: Fri, 27 Mar 2009 11:39:02 +0530
From: Moutupsi Paul <sehar.scorpion@...>
Subject: [gtk-gnutella-devel] creating a reputation aware gnutella
        client
To: gtk-gnutella-devel@...
Message-ID:
        <b286c30903262309i35b7fd63me4b51eeba170b959@...>
Content-Type: text/plain; charset="iso-8859-1"

Hie.

I am trying to introduce reputation awareness in gtk-gnutella..I am new to
network programming and dont have a very detailed idea where to start...
Any help in this regard will be appreciated.

Thanking in advance

Sehar
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Fri, 3 Apr 2009 14:46:12 +0200
From: Christian Biere <christianbiere@...>
Subject: Re: [gtk-gnutella-devel] creating a reputation aware gnutella
        client
To: gtk-gnutella-devel@...
Message-ID: <20090403124612.GA17733@...>
Content-Type: text/plain; charset=utf-8

Hi,

Moutupsi Paul wrote:
> I am trying to introduce reputation awareness in gtk-gnutella..I am new to
> network programming and dont have a very detailed idea where to start...

do you have a concept?

--
Christian



------------------------------

Message: 3
Date: Tue, 7 Apr 2009 08:10:55 +0200
From: Larry Nieves <lanieves@...>
Subject: [gtk-gnutella-devel] No bitzify in src/contrib/bitzify/
To: gtk-gnutella-devel@...
Message-ID: <20090407061055.GH29327@...>
Content-Type: text/plain; charset="utf-8"

$ cd gtk-gnutella/contrib/bitzify
$ make && sudo make install
cc -W -Wall -Wformat=2 -Wshadow -O2 -g  `pkg-config taglib --cflags --libs` -ltag_c -o audiotags audiotags.c
audiotags.c: In function ?main?:
audiotags.c:227: warning: ignoring return value of ?freopen?, declared with attribute warn_unused_result
cc -W -Wall -Wformat=2 -Wshadow -O2 -g     first20.c   -o first20
cc -W -Wall -Wformat=2 -Wshadow -O2 -g     urlencode.c   -o urlencode
cc -W -Wall -Wformat=2 -Wshadow -O2 -g     htmlencode.c   -o htmlencode
/bin/sh run_checks.sh
cp -i -- first20 urlencode htmlencode bitzify "/usr/local/bin/"
cp: cannot stat `bitzify': No such file or directory
make: *** [install] Error 1

There's no bitzify in bitzify! Unless I missed something really obvious.
Is Bitzify a shell script or what? Where do I get it?

This is after updating to r16432.
--
Larry Alex?nder Nieves Colmen?rez               <lanieves@...>
El Liberal Venezolano            http://liberal-venezolano.net/blog/
GPG Public Key: 0x1525843C                                      
Key Fingerprint = 76D0 2DA1 ADA8 11EF 661B  FEE2 923C 050F 1525 843C
gpg  --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 0x1525843C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature

------------------------------

Message: 4
Date: Mon, 06 Apr 2009 15:29:06 +0200
From: gionnico <gionnico@...>
Subject: Re: [gtk-gnutella-devel] GTKG SVN ebuild for Gentoo Users
To: gtk-gnutella-devel@...
Message-ID: <49DA03A2.1010308@...>
Content-Type: text/plain; charset=ISO-8859-15

Mitch Harder wrote a simple live ebuild, based on the 0.96.5 ebuild.
Now there was a problem with revision number in the binary so I'm attaching a modified ebuild (based on 0.96.6) that changes:
- FIXED: make was executed twice. build.sh already runs it
- FIXED: GTA_BUILD was wrong/empty (see the comment in the ebuild to know more)

Enjoy!


# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils subversion

#TODO: headless mode (but not very well tested yet, may still be too
#hardcore)
IUSE="nls dbus gnutls"

DESCRIPTION="A GTK+ Gnutella client"
ESVN_REPO_URI="https://gtk-gnutella.svn.sourceforge.net/svnroot/gtk-gnutella/trunk/gtk-gnutella"
ESVN_PROJECT="gtk-gnutella"
HOMEPAGE="http://gtk-gnutella.sourceforge.net/"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS=""

RDEPEND=">=dev-libs/libxml2-2.6.0
        >=x11-libs/gtk+-2.2.1
        dbus? ( >=sys-apps/dbus-0.35.2 )
        gnutls? ( >=net-libs/gnutls-1.0.16 )
        nls? ( >=sys-devel/gettext-0.11.5 )"
DEPEND="${RDEPEND}
        dev-util/pkgconfig"

src_compile() {
        # gtk-gnutella now uses a custom build script which in turn drives
        # the Configure script. The options for the build script are less
        # arcane, so use that for clarity. The drawback is that the build
        # script uses a bit of magic on its own and also runs make.

        # The original svn revision update script relies on .svn/ and svn info that
        # are not present in the temporary workdir. So disable the script and update
        # the revision using the eclass variable.
        subversion_wc_info
        epatch "${FILESDIR}"/${PN}-revision-overwrite-disable.patch
        sed -i -e "s/Revision: [[:digit:]]*/Revision: ${ESVN_WC_REVISION}/" src/revision.h || die "sed failed"

        local myconf

        if ! use nls; then
                myconf="${myconf} --disable-nls"
        fi

        if ! use dbus; then
                myconf="${myconf} --disable-dbus"
        fi

        if ! use gnutls; then
                myconf="${myconf} --disable-gnutls"
        fi

        ./build.sh --prefix="/usr" --gtk2 ${myconf}
}

src_install() {
        dodir /usr/bin
        make INSTALL_PREFIX="${D}" install || die "Install failed"
        dodoc AUTHORS ChangeLog README TODO
}
 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 In cerca dell'anima gemella? Prova con Meetic, puoi conoscere centinaia di single e chattare anche con la webcam
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8289&d=6-4



------------------------------

Message: 5
Date: Mon, 06 Apr 2009 15:34:07 +0200
From: gionnico <gionnico@...>
Subject: Re: [gtk-gnutella-devel] GTKG SVN ebuild for Gentoo Users
        (revision-overwrite-disable.patch)
To: gtk-gnutella-devel@...
Message-ID: <49DA04CF.6080508@...>
Content-Type: text/plain; charset=ISO-8859-15

And here's the patch you need to disable the non-working revision_h.SH script.
It's to be executed at ./Configure time but relies on svn info that is not available
under the temporary working directory. revision.h was already patched using sed.



$ cat gtk-gnutella-revision-overwrite-disable.patch
--- src/revision_h.SH 2009-04-03 13:09:43.975022903 +0200
+++ src/revision_h.SH 2009-04-03 13:11:02.502390353 +0200
@@ -3,14 +3,4 @@
 case "$0" in
 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
 esac
-echo "Extracting src/revision.h"
-: In the following dollars and backticks do not need the extra backslash.
-cat >revision.h <<!GROK!THIS!
-/*
- * THIS FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
- *
- * Extracted on `date`
- */
-
-/* Initial skeleton */
-!GROK!THIS!
+echo "Extracting src/revision.h (disabled in portage, sed already applied)"
 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 Gioca con Poker Club! Scegli il torneo che fa per te, ogni settimana puoi vincere oltre 240.000 euro!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8876&d=6-4



------------------------------

Message: 6
Date: Tue, 7 Apr 2009 17:26:40 +0200
From: Christian Biere <christianbiere@...>
Subject: Re: [gtk-gnutella-devel] No bitzify in src/contrib/bitzify/
To: gtk-gnutella-devel@...
Message-ID: <20090407152639.GA24483@...>
Content-Type: text/plain; charset=utf-8

Larry Nieves wrote:

> $ cd gtk-gnutella/contrib/bitzify
> $ make && sudo make install
> cc -W -Wall -Wformat=2 -Wshadow -O2 -g  `pkg-config taglib --cflags --libs` -ltag_c -o audiotags audiotags.c
> audiotags.c: In function ?main?:
> audiotags.c:227: warning: ignoring return value of ?freopen?, declared with attribute warn_unused_result
> cc -W -Wall -Wformat=2 -Wshadow -O2 -g     first20.c   -o first20
> cc -W -Wall -Wformat=2 -Wshadow -O2 -g     urlencode.c   -o urlencode
> cc -W -Wall -Wformat=2 -Wshadow -O2 -g     htmlencode.c   -o htmlencode
> /bin/sh run_checks.sh
> cp -i -- first20 urlencode htmlencode bitzify "/usr/local/bin/"
> cp: cannot stat `bitzify': No such file or directory
> make: *** [install] Error 1
>
> There's no bitzify in bitzify! Unless I missed something really obvious.
> Is Bitzify a shell script or what? Where do I get it?

The file was missing for no apparent reason. Yes, it's a shell script.

--
Christian



------------------------------

Message: 7
Date: Sat, 11 Apr 2009 12:37:58 +0200
From: Jochen Kemnade <jochenkemnade@...>
Subject: [gtk-gnutella-devel] FATAL: Assertion failure in atoms.c:928:
        "size > 0" in 0.96.6
To: gtk-gnutella-devel@...
Message-ID: <49E07306.6090908@...>
Content-Type: text/plain; charset=UTF-8

Hello,

I encounter this error every time gtk-gnutella has run for some time
(about half an hour, roughly). Unfortunately I cannot tell how to
reproduce it, but it seems to happen without user interaction. Maybe,
the following backtrace provides more details:

FATAL: Assertion failure in atoms.c:928: "size > 0"

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f37a4625780 (LWP 13490)]
0x00007f37a0de5fb5 in raise () from /lib/libc.so.6
(gdb) bt full
#0  0x00007f37a0de5fb5 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00007f37a0de7bc3 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00000000005b08e3 in assertion_failure (data=<value optimized out>)
at fast_assert.c:96
No locals.
#3  0x00000000005a86f9 in atom_free (type=ATOM_STRING,
key=0x7f37983c88f0) at atoms.c:928
        size = <value optimized out>
        a = <value optimized out>
        assertion_data_ = {file = 0x65cce7 "atoms.c", expr = 0x65ccfd "key !=
NULL", line = 924}
        assertion_data_ = {file = 0x65cce7 "atoms.c",
  expr = 0x65cac8 "(int) type >= 0 && (guint) type <
G_N_ELEMENTS(atoms)", line = 925}
        assertion_data_ = {file = 0x65cce7 "atoms.c", expr = 0x670182 "size >
0", line = 928}
        assertion_data_ = {file = 0x65cce7 "atoms.c", expr = 0x65ccef
"a->refcnt > 0", line = 931}
#4  0x0000000000516765 in rpc_cb_free (rcb=0x7f37985d8480,
can_remove=<value optimized out>,
    in_shutdown=0) at ../lib/atoms.h:119
No locals.
#5  0x00000000005aca18 in cq_expire (cq=0x15d2730, ev=0x0) at cq.c:446
        fn = (cq_service_t) 0x516850 <rpc_timed_out>
        arg = (gpointer) 0x7f37985d8480
        assertion_data_ = {file = 0x65e8d8 "cq.c", expr = 0x63073f "fn", line =
436}
#6  0x00000000005acb48 in cq_clock (cq=0x15d2730, elapsed=<value
optimized out>) at cq.c:523
        bucket = 1056
        last_bucket = 1058
        ch = (struct chash *) 0x15d6960
        ev = (cevent_t *) 0x34b2
        assertion_data_ = {file = 0x65e8d8 "cq.c", expr = 0x65e8f4 "elapsed >=
0", line = 469}
        assertion_data_ = {file = 0x65e8d8 "cq.c", expr = 0x65e8dd
"cq->cq_current == NULL",
  line = 470}
#7  0x00000000005acc35 in callout_timer (unused_p=<value optimized out>)
at cq.c:567
        tv = {tv_sec = 1239444042, tv_usec = 750524}
        last_period = {tv_sec = 1239444042, tv_usec = 750524}
#8  0x00007f37a1bbe97b in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#9  0x00007f37a1bbe20a in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0x00007f37a1bc18e0 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0x00007f37a1bc1dad in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0x00007f37a3f7e9f7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#13 0x000000000052511d in main_gui_run (geometry_spec=0x0) at main.c:693
        now = 1239440020
#14 0x00000000004138e2 in main (argc=1, argv=0x7fffac661a28) at main.c:1458
No locals.

I don't know if it is relevant, but I run a 64-bit Ubuntu 9.04 system.
If I can provide any more info, feel free to ask.

Regards,
Jochen



------------------------------

Message: 8
Date: Sat, 11 Apr 2009 23:30:46 +0200
From: Christian Biere <christianbiere@...>
Subject: Re: [gtk-gnutella-devel] FATAL: Assertion failure in
        atoms.c:928: "size > 0" in 0.96.6
To: gtk-gnutella-devel@...
Message-ID: <20090411213046.GA8477@...>
Content-Type: text/plain; charset=utf-8

Jochen Kemnade wrote:
> I encounter this error every time gtk-gnutella has run for some time
> (about half an hour, roughly). Unfortunately I cannot tell how to
> reproduce it, but it seems to happen without user interaction.

You've enabled the DHT in your settings, right?

--
Christian



------------------------------

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com

------------------------------

_______________________________________________
gtk-gnutella-devel mailing list
gtk-gnutella-devel@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel


End of gtk-gnutella-devel Digest, Vol 28, Issue 3
*************************************************