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... ;)
Fixed in CVS, and submitted upstream.