Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105709 - net-libs/gnet-2.0.7 does not compile with debug flag set
Summary: net-libs/gnet-2.0.7 does not compile with debug flag set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-12 09:54 UTC by Sal Gonzalez
Modified: 2005-09-12 19:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sal Gonzalez 2005-09-12 09:54:09 UTC
Enabling debug use flag with gnet makes it compile with -Werror, which causes
the compile to stop due to warnings.

Reproducible: Always
Steps to Reproduce:
1. USE="debug" emerge gnet

Actual Results:  
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GNet\"
-DG_ENABLE_DEBUG -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=athlon64 -O2 -g
-pipe -g -g -g -D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Werror -MT ipv6.lo -MD -MP -MF
.deps/ipv6.Tpo -c ipv6.c  -fPIC -DPIC -o .libs/ipv6.o
if /bin/sh ../libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I. -I.. -DG_LOG_DOMAIN=\"GNet\" -DG_ENABLE_DEBUG -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include       -march=athlon64 -O2 -g -pipe -g -g -g
-D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes    
-Wmissing-prototypes -Wmissing-declarations -Werror -MT inetaddr.lo -MD -MP -MF
".deps/inetaddr.Tpo" -c -o inetaddr.lo inetaddr.c; \
then mv -f ".deps/inetaddr.Tpo" ".deps/inetaddr.Plo"; else rm -f
".deps/inetaddr.Tpo"; exit 1; fi
if /bin/sh ../libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I. -I.. -DG_LOG_DOMAIN=\"GNet\" -DG_ENABLE_DEBUG -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include       -march=athlon64 -O2 -g -pipe -g -g -g
-D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes    
-Wmissing-prototypes -Wmissing-declarations -Werror -MT mcast.lo -MD -MP -MF
".deps/mcast.Tpo" -c -o mcast.lo mcast.c; \
then mv -f ".deps/mcast.Tpo" ".deps/mcast.Plo"; else rm -f ".deps/mcast.Tpo";
exit 1; fi
if /bin/sh ../libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I. -I.. -DG_LOG_DOMAIN=\"GNet\" -DG_ENABLE_DEBUG -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include       -march=athlon64 -O2 -g -pipe -g -g -g
-D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes    
-Wmissing-prototypes -Wmissing-declarations -Werror -MT tcp.lo -MD -MP -MF
".deps/tcp.Tpo" -c -o tcp.lo tcp.c; \
then mv -f ".deps/tcp.Tpo" ".deps/tcp.Plo"; else rm -f ".deps/tcp.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GNet\"
-DG_ENABLE_DEBUG -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=athlon64 -O2 -g
-pipe -g -g -g -D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Werror -MT tcp.lo -MD -MP -MF
.deps/tcp.Tpo -c tcp.c  -fPIC -DPIC -o .libs/tcp.o
tcp.c: In function `gnet_tcp_socket_get_local_inetaddr':
tcp.c:793: warning: passing arg 3 of `getsockname' from incompatible pointer type
tcp.c: In function `gnet_tcp_socket_server_new_full':
tcp.c:989: warning: passing arg 3 of `getsockname' from incompatible pointer type
tcp.c: In function `gnet_tcp_socket_server_accept':
tcp.c:1059: warning: passing arg 3 of `accept' from incompatible pointer type
tcp.c: In function `gnet_tcp_socket_server_accept_nonblock':
tcp.c:1130: warning: passing arg 3 of `accept' from incompatible pointer type
make[2]: *** [tcp.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GNet\"
-DG_ENABLE_DEBUG -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=athlon64 -O2 -g
-pipe -g -g -g -D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Werror -MT mcast.lo -MD -MP -MF
.deps/mcast.Tpo -c mcast.c  -fPIC -DPIC -o .libs/mcast.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GNet\"
-DG_ENABLE_DEBUG -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=athlon64 -O2 -g
-pipe -g -g -g -D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Werror -MT inetaddr.lo -MD -MP -MF
.deps/inetaddr.Tpo -c inetaddr.c  -fPIC -DPIC -o .libs/inetaddr.o
mcast.c: In function `gnet_mcast_socket_get_ttl':
mcast.c:391: warning: passing arg 5 of `getsockopt' from incompatible pointer type
mcast.c:399: warning: passing arg 5 of `getsockopt' from incompatible pointer type
mcast.c: In function `gnet_mcast_socket_is_loopback':
mcast.c:498: warning: passing arg 5 of `getsockopt' from incompatible pointer type
mcast.c:511: warning: passing arg 5 of `getsockopt' from incompatible pointer type
make[2]: *** [mcast.lo] Error 1
inetaddr.c: In function `gnet_inetaddr_get_interface_to':
inetaddr.c:3268: warning: passing arg 3 of `getsockname' from incompatible
pointer type
make[2]: *** [inetaddr.lo] Error 1
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnet-2.0.7/work/gnet-2.0.7'
make: *** [all] Error 2


Expected Results:  
>>> Regenerating /etc/ld.so.cache...
>>> net-libs/gnet-2.0.7 merged.
>>> Recording net-libs/gnet in "world" favorites file...

;)
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-09-12 19:33:23 UTC
Fixed in CVS, and submitted upstream.