gcc -DHAVE_CONFIG_H -I. -I. -I../../linux-ha -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -march=prescott -O3 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 -funsigned-char -MT liblrm_la-clientlib.lo -MD -MP -MF .deps/liblrm_la-clientlib.Tpo -c clientlib.c -fPIC -DPIC -o .libs/liblrm_la-clientlib.o cc1: warnings being treated as errors clientlib.c: In function 'rsc_get_cur_state': clientlib.c:1017: warning: ignoring return value of 'g_list_sort', declared with attribute warn_unused_result gmake[2]: *** [liblrm_la-clientlib.lo] Error 1
Created attachment 91364 [details, diff] Fix usage of return value This patch makes the function return the sorted list, fixing the compiler warning (and error) about the value not being used.
please attach your emerge --info
Created attachment 91705 [details] emerge --info
-O3 is bad, try -O2 and post your results.
(In reply to comment #4) > -O3 is bad, try -O2 and post your results. > I think it's not related to that. I tryied fixing the code but there are lots of errors. Now i'm using version 2.0.5 that builds OK. Anyway, here are the results with -O2: gcc -DHAVE_CONFIG_H -I. -I. -I../../linux-ha -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -march=prescott -O2 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 -funsigned-char -MT liblrm_la-clientlib.lo -MD -MP -MF .deps/liblrm_la-clientlib.Tpo -c clientlib.c -fPIC -DPIC -o .libs/liblrm_la-clientlib.o cc1: warnings being treated as errors clientlib.c: In function 'rsc_get_cur_state': clientlib.c:1017: warning: ignoring return value of 'g_list_sort', declared with attribute warn_unused_result gmake[2]: *** [liblrm_la-clientlib.lo] Error 1 gmake[2]: se sale del directorio `/var/tmp/portage/heartbeat-2.0.4/work/heartbeat-2.0.4/lib/lrm' gmake[1]: *** [all-recursive] Error 1 gmake[1]: se sale del directorio `/var/tmp/portage/heartbeat-2.0.4/work/heartbeat-2.0.4/lib' make: *** [all-recursive] Error 1 !!! ERROR: sys-cluster/heartbeat-2.0.4 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile heartbeat-2.0.4.ebuild, line 55: Called die !!! compile problem !!! If you need support, post the topmost build error, and the call stack if relevant.
You are right, I've fixed 2.0.4 in CVS.