Re: [gnet] gnet library 1.1.7 doesn't compile under RH 8.0



upack the sources
find files with -Werror string in it
(grep -r -H "Werror" * )
remove it
run configure && make.. u know..

Dne ponedeljek 11. november 2002 17:42 je Richard Freeman napisal(a):
> Hi folks,
>
> I don't subscribe to the list, so please copy me on any replies.
>
> I'm trying to compile gnet library 1.1.7 from tar.gz file. I run
> configure with no options set at all and run make and I get this error:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GNet\"
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -g -O2
> -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
> -Werror -D_REENTRANT -DGNET_EXPERIMENTAL -c inetaddr.c  -fPIC -DPIC -o
> .libs/inetaddr.lo
> cc1: warnings being treated as errors
> inetaddr.c: In function `gnet_inetaddr_new':
> inetaddr.c:463: warning: const qualifier ignored on asm
> inetaddr.c:480: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_new_async':
> inetaddr.c:661: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_new_nonblock':
> inetaddr.c:1049: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_get_port':
> inetaddr.c:1761: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_set_port':
> inetaddr.c:1778: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_is_private':
> inetaddr.c:1868: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_is_reserved':
> inetaddr.c:1906: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_is_loopback':
> inetaddr.c:1938: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_is_multicast':
> inetaddr.c:1967: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_hash':
> inetaddr.c:2031: warning: const qualifier ignored on asm
> inetaddr.c:2032: warning: const qualifier ignored on asm
> inetaddr.c: In function `gnet_inetaddr_new_any':
> inetaddr.c:2192: warning: const qualifier ignored on asm
> make[2]: *** [inetaddr.lo] Error 1
> make[2]: Leaving directory `/home/richf/gnet-1.1.7/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/richf/gnet-1.1.7'
> make: *** [all-recursive-am] Error 2
>
> However, if I do ./configure --enable-glib2 then it compiles without a
> problem. The main problem is that I then try to this a GTK 1.2 app
> against the library and it crashes (ed2k GUI). I've spoken to the author
> of the program and they are blaming it on the glib2 part of my
> gnetlibrary compile. I was able to get it working on RH 7.3 just fine, I
> didn't need glib2 and everything worked well.
>
> I assume we've got an issue with gcc 3.2 here then??
>
> Cheers,
>
> Rich
>
>
>
> _______________________________________________
> gnet mailing list
> gnet gnetlibrary org
> http://www.gnetlibrary.org/mailman/listinfo/gnet




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]