« Return to Thread: gtk-gnutella-devel Digest, Vol 28, Issue 4

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

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

Reply to Author | View in Thread

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. Re:  FATAL: Assertion failure in atoms.c:928: "size > 0" in
      0.96.6 (Jochen Kemnade)
   2. Re:  FATAL: Assertion failure in atoms.c:928: "size > 0" in
      0.96.6 (Christian Biere)
   3.  Build failure on r16498 (Hauke Hachmann)
   4.  compilation problem: undefined undefined reference to
      `pointer_to_string' (Meelis Roos)
   5. Re:  compilation problem: undefined undefined reference to
      `pointer_to_string' (Christian Biere)
   6.  Massive warnings "ISO C forbids braced-groups within
      expressions" (Lloyd Bryant)
   7. Re:  Massive warnings "ISO C forbids braced-groups within
      expressions" (Christian Biere)


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

Message: 1
Date: Sun, 12 Apr 2009 09:26:13 +0200
From: Jochen Kemnade <jochenkemnade@...>
Subject: Re: [gtk-gnutella-devel] FATAL: Assertion failure in
        atoms.c:928: "size > 0" in 0.96.6
To: gtk-gnutella-devel@...
Message-ID: <49E19795.2070400@...>
Content-Type: text/plain; charset=UTF-8

Hello,

Christian Biere schrieb:
> You've enabled the DHT in your settings, right?

You're right, I just disabled it again. Sorry for the fuss.

Regards and happy easter,
Jochen



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

Message: 2
Date: Sun, 12 Apr 2009 15:20:13 +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: <20090412132013.GA13081@...>
Content-Type: text/plain; charset=utf-8

Jochen Kemnade wrote:
> Christian Biere schrieb:
> > You've enabled the DHT in your settings, right?
>
> You're right, I just disabled it again. Sorry for the fuss.

I just wanted to be sure. I didn't mean enabling the DHT was a mistake.
However, I would have suggested to disable the DHT as a quick fix
if you just wanted to get rid of the crashes. Your bug report is
certainly welcome.

What irritated me is that your backtrace shows ATOM_STRING instead of
ATOM_GUID but I think that can be ignored.

The source of the crash is atom_guid_free() in rpc_cb_free(). I've
added some consistency checks in current SVN to catch incorrect
handling sooner. I strongly suspect rpc_cb_free() is called more
than once for the same item.

I haven't experienced any crash like that myself. It could help
if you tried gtk-gnutella from current SVN. Also compiling with
maximum gdb debug information and disabled optimization like this

./build --cflags='-g3 -O0'

might yield an even more informative backtrace.

--
Christian



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

Message: 3
Date: Mon, 13 Apr 2009 16:26:55 +0200
From: Hauke Hachmann <haxe@...>
Subject: [gtk-gnutella-devel] Build failure on r16498
To: gtk-gnutella-devel@...
Message-ID: <200904131626.55857.haxe@...>
Content-Type: text/plain;  charset="us-ascii"

Hi,

trying to build today's latest svn revision (r16498), I get the
following linker error:

cc -o gtk-gnutella  main.o if/bridge/ui2c.o if/bridge/c2ui.o
if/gnet_property.o
if/gui_property.o -Lshell -lshell -Lcore -lcore -Ldht -ldht -Lui/gtk -lgtk-common
-lgtkx -lgtk-common -ldht -lcore -Llib -lshared -Lsdbm -lsdbm -lshared -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0
-lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
-lgobject-2.0 -lglib-2.0   -lxml2    -lgnutls    -O2 -g  -lz -lresolv -lm
shell/libshell.a(memory.o): In function `shell_exec_memory_dump':
[...]/gtk-gnutella/src/shell/memory.c:114: undefined reference to
`pointer_to_string'
collect2: ld returned 1 exit status

bye,

Hauke



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

Message: 4
Date: Mon, 13 Apr 2009 19:13:20 +0300 (EEST)
From: Meelis Roos <mroos@...>
Subject: [gtk-gnutella-devel] compilation problem: undefined undefined
        reference to `pointer_to_string'
To: gtk-gnutella-devel@...
Message-ID: <Pine.SOC.4.64.0904131911240.9282@...>
Content-Type: TEXT/PLAIN; charset=US-ASCII

While trying to compile todays SVN (without remote interface), I get
this:

cc -o gtk-gnutella  main.o
if/bridge/ui2c.o if/bridge/c2ui.o
if/gnet_property.o if/gui_property.o -Lshell -lshell -Lcore -lcore -Ldht
-ldht -Lui/gtk -lgtk-common -lgtkx -lgtk-common -ldht -lcore -Llib
-lshared -Lsdbm -lsdbm -lshared -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
-lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lgobject-2.0 -lglib-2.0  
-lxml2    -lgnutls  -O2 -g -march=pentium4 -L/usr/local/lib -lz -lresolv
shell/libshell.a(memory.o): In function `shell_exec_memory_dump':
/home/mroos/compile/gtk-gnutella/src/shell/memory.c:114: undefined
reference to `pointer_to_string'

--
Meelis Roos (mroos@...)



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

Message: 5
Date: Mon, 13 Apr 2009 20:49:50 +0200
From: Christian Biere <christianbiere@...>
Subject: Re: [gtk-gnutella-devel] compilation problem: undefined
        undefined reference to `pointer_to_string'
To: gtk-gnutella-devel@...
Message-ID: <20090413184950.GA11954@...>
Content-Type: text/plain; charset=utf-8

Meelis Roos wrote:

> While trying to compile todays SVN (without remote interface), I get
> this:
>
> cc -o gtk-gnutella  main.o
> if/bridge/ui2c.o if/bridge/c2ui.o
> if/gnet_property.o if/gui_property.o -Lshell -lshell -Lcore -lcore -Ldht
> -ldht -Lui/gtk -lgtk-common -lgtkx -lgtk-common -ldht -lcore -Llib
> -lshared -Lsdbm -lsdbm -lshared -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
> -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
> -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11
> -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lgobject-2.0 -lglib-2.0  
> -lxml2    -lgnutls  -O2 -g -march=pentium4 -L/usr/local/lib -lz -lresolv
> shell/libshell.a(memory.o): In function `shell_exec_memory_dump':
> /home/mroos/compile/gtk-gnutella/src/shell/memory.c:114: undefined
> reference to `pointer_to_string'

Thanks. I had missed to commit the change to misc.[ch].

--
Christian



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

Message: 6
Date: Tue, 14 Apr 2009 19:10:25 -0700
From: Lloyd Bryant <lloydbaz@...>
Subject: [gtk-gnutella-devel] Massive warnings "ISO C forbids
        braced-groups within expressions"
To: devlist <gtk-gnutella-devel@...>
Message-ID: <BAY121-W5549BC3CED8BA2C8BB8606CE7D0@...>
Content-Type: text/plain; charset="windows-1252"


Just upgraded to Ubuntu Jaunty (9.04), and when recompiling GtkG (svn 16499), I am seeing tons of the warning message "ISO C forbids braced-groups within expressions".  Here's a sampling:

In file included from parq.h:43,
                 from uploads.c:59:
uploads.h: In function ?upload_check?:
uploads.h:141: warning: ISO C forbids braced-groups within expressions
uploads.h:142: warning: ISO C forbids braced-groups within expressions
uploads.c: In function ?upload_add_upload_added_listener?:
uploads.c:200: warning: ISO C forbids braced-groups within expressions
uploads.c:200: warning: ISO C forbids braced-groups within expressions
uploads.c: In function ?upload_remove_upload_added_listener?:
uploads.c:206: warning: ISO C forbids braced-groups within expressions
uploads.c:206: warning: ISO C forbids braced-groups within expressions
uploads.c: In function ?upload_add_upload_removed_listener?:
uploads.c:212: warning: ISO C forbids braced-groups within expressions
uploads.c:212: warning: ISO C forbids braced-groups within expressions
uploads.c: In function ?upload_remove_upload_removed_listener?:
uploads.c:218: warning: ISO C forbids braced-groups within expressions
uploads.c:218: warning: ISO C forbids braced-groups within expressions

In file included from ../lib/prop.h:31,
                 from ../if/gnet_property.h:32,
                 from verify.c:43:
../lib/host_addr.h: In function ?net_type_to_pf?:
../lib/host_addr.h:72: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ?net_type_to_af?:
../lib/host_addr.h:90: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ?host_addr_initialized?:
../lib/host_addr.h:194: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ?net_type_to_string?:
../lib/host_addr.h:207: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ?host_addr_equal?:
../lib/host_addr.h:276: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ?host_addr_cmp?:
../lib/host_addr.h:317: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ?host_addr_matches?:
../lib/host_addr.h:358: warning: ISO C forbids braced-groups within expressions
../lib/host_addr.h: In function ?is_host_addr?:
../lib/host_addr.h:376: warning: ISO C forbids braced-groups within expressions

It seems that every assert throughout GtkG is triggering this warning (and there are a LOT of them :)).

I suspect this is a result of picking up a new gcc version with the upgrade.  Here's the version I'm using:

lloyd@dell:/usr/local/src/gtk-gnutella$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)

Any clues?

Lloyd B.

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

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

Message: 7
Date: Fri, 17 Apr 2009 00:34:29 +0200
From: Christian Biere <christianbiere@...>
Subject: Re: [gtk-gnutella-devel] Massive warnings "ISO C forbids
        braced-groups within expressions"
To: gtk-gnutella-devel@...
Message-ID: <20090416223429.GC18437@...>
Content-Type: text/plain; charset=utf-8

Lloyd Bryant wrote:
> Just upgraded to Ubuntu Jaunty (9.04), and when recompiling GtkG (svn 16499),
> I am seeing tons of the warning message "ISO C forbids braced-groups within
> expressions".  Here's a sampling:
 
> In file included from parq.h:43,
>                  from uploads.c:59:
> uploads.h: In function ?upload_check?:
> uploads.h:141: warning: ISO C forbids braced-groups within expressions
> uploads.h:142: warning: ISO C forbids braced-groups within expressions
> It seems that every assert throughout GtkG is triggering this warning (and
> there are a LOT of them :)).

Do you compile with GLib 1.2?

> I suspect this is a result of picking up a new gcc version with the upgrade.

No, it's caused by -pedantic in the C compiler flags.
 
> Any clues?

GCC is right. This particular warning is quite useless here and GLib 2.x manages
to avoid or at least suppress it. Unfortunately, there doesn't seem to be a
compiler switch to supress it. It doesn't even seem to be possible to override
-pedantic unlike other switches. At least, I have no glue.

Overall though, use of -pedantic makes it easier to keep the code portable and
ISO-compliant, as far as reasonable and possible.

--
Christian



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

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p

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

_______________________________________________
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 4
*************************************************

 « Return to Thread: gtk-gnutella-devel Digest, Vol 28, Issue 4