Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139563 - sys-cluster/heartbeat-2.0.4 failed to emerge
Summary: sys-cluster/heartbeat-2.0.4 failed to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 08:14 UTC by Federico Cuello
Modified: 2010-09-10 19:00 UTC (History)
0 users

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


Attachments
Fix usage of return value (heartbeat_glist_patch,343 bytes, patch)
2006-07-10 07:42 UTC, Federico Cuello
Details | Diff
emerge --info (emerge-info.log,3.19 KB, text/plain)
2006-07-14 06:57 UTC, Federico Cuello
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Cuello 2006-07-07 08:14:57 UTC
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
Comment 1 Federico Cuello 2006-07-10 07:42:54 UTC
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.
Comment 2 Christian Zoffoli (RETIRED) gentoo-dev 2006-07-14 06:53:10 UTC
please attach your emerge --info
Comment 3 Federico Cuello 2006-07-14 06:57:44 UTC
Created attachment 91705 [details]
emerge --info
Comment 4 Christian Zoffoli (RETIRED) gentoo-dev 2006-07-14 08:12:36 UTC
-O3 is bad, try -O2 and post your results.

Comment 5 Federico Cuello 2006-07-14 10:13:58 UTC
(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.

Comment 6 Christian Zoffoli (RETIRED) gentoo-dev 2006-07-14 10:53:54 UTC
You are right, I've fixed 2.0.4 in CVS.