Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653248 - sys-cluster/cluster-glue-1.0.12 with >sys-libs/openipmi-2.0.22 : ipmilan_command.c:52:1: error: unknown type name selector_t
Summary: sys-cluster/cluster-glue-1.0.12 with >sys-libs/openipmi-2.0.22 : ipmilan_comm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: David Seifert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-15 16:47 UTC by Toralf Förster
Modified: 2018-09-30 13:34 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.79 KB, text/plain)
2018-04-15 16:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,289.54 KB, text/plain)
2018-04-15 16:47 UTC, Toralf Förster
Details
environment (environment,99.66 KB, text/plain)
2018-04-15 16:47 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,14.22 KB, application/x-bzip)
2018-04-15 16:47 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,19.80 KB, application/x-bzip)
2018-04-15 16:47 UTC, Toralf Förster
Details
sys-cluster:cluster-glue-1.0.12:20180415-163549.log (sys-cluster:cluster-glue-1.0.12:20180415-163549.log,131.14 KB, text/plain)
2018-04-15 16:47 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,34.47 KB, application/x-bzip)
2018-04-15 16:47 UTC, Toralf Förster
Details
patch to get selector_t back (cluster-glue-selector_t.patch,735 bytes, patch)
2018-05-07 01:01 UTC, Denis Kaganovich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-04-15 16:47:15 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../include -I../../../linux-ha -I../../../linux-ha -I../../../libltdl -I../../../libltdl -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -O2 -pipe -march=native -fgnu89-inline -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -O2 -pipe -march=native -fgnu89-inline -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -c ipmilan_command.c  -fPIC -DPIC -o .libs/ipmilan_command.o
ipmilan_command.c:52:1: error: unknown type name ‘selector_t’
 selector_t *os_sel;
 ^
ipmilan_command.c:87:16: error: unknown type name ‘selector_t’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_abi32+64_20180408-183609

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems)
  [2]   ruby23 (with Rubygems) *



emerge -qpv sys-cluster/cluster-glue
[ebuild  N    ] sys-cluster/cluster-glue-1.0.12  USE="-doc -libnet -static-libs"
Comment 1 Toralf Förster gentoo-dev 2018-04-15 16:47:18 UTC
Created attachment 527514 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-04-15 16:47:21 UTC
Created attachment 527516 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-04-15 16:47:24 UTC
Created attachment 527518 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-04-15 16:47:27 UTC
Created attachment 527520 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-04-15 16:47:30 UTC
Created attachment 527522 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-04-15 16:47:34 UTC
Created attachment 527524 [details]
sys-cluster:cluster-glue-1.0.12:20180415-163549.log
Comment 7 Toralf Förster gentoo-dev 2018-04-15 16:47:37 UTC
Created attachment 527526 [details]
temp.tbz2
Comment 8 Denis Kaganovich 2018-05-07 01:01:27 UTC
Created attachment 530288 [details, diff]
patch to get selector_t back

This is from new OpenIPMI. selector_t renamed to selector_s. To compatibility with both versions - simple add line "#define OPENIPMI_DEFINE_SELECTOR_T" before lines "#include <OpenIPMI/selector.h>". Attaching patch...
Comment 9 Denis Kaganovich 2018-05-07 01:04:23 UTC
PS IMHO alt way to append -DOPENIPMI_DEFINE_SELECTOR_T into CPPFLAGS in ebuild ;)
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2018-09-30 13:10:22 UTC
openipmi now requires users to set OPENIPMI_DEFINE_SELECTOR_T:

/usr/include/OpenIPMI/selector.h:

/* The main data structure used by the selector. */
struct selector_s;
#ifdef OPENIPMI_DEFINE_SELECTOR_T
/*
 * Due to POSIX namespace collisions, we avoid the _t, but
 * we allow the user to define something that brings it back.
 */
typedef struct selector_s selector_t;
#endif
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2018-09-30 13:12:33 UTC
(In reply to Denis Kaganovich from comment #9)
> PS IMHO alt way to append -DOPENIPMI_DEFINE_SELECTOR_T into CPPFLAGS in
> ebuild ;)

Yes. Also, the ebuild doesn't even know about sys-libs/openipmi.
Comment 12 Larry the Git Cow gentoo-dev 2018-09-30 13:34:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4450ee57aec67aed3f9c4ee37ed3457488b7a559

commit 4450ee57aec67aed3f9c4ee37ed3457488b7a559
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2018-09-30 13:31:27 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2018-09-30 13:33:55 +0000

    sys-cluster/cluster-glue: Fix implicit openipmi dependency
    
    * Depend on sys-libs/openipmi if USE=ipmilan
    * Fix selector_t compile error with >openipmi-2.0.22
    * Drop -fstack-protector-all while we're there
    
    Fixes: https://bugs.gentoo.org/653248
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 .../cluster-glue/cluster-glue-1.0.12-r1.ebuild     | 96 ++++++++++++++++++++++
 sys-cluster/cluster-glue/metadata.xml              |  1 +
 2 files changed, 97 insertions(+)