unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#43724: build failure in dbusbind
@ 2020-09-30 15:40 Glenn Morris
  2020-09-30 17:34 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2020-09-30 15:40 UTC (permalink / raw)
  To: 43724

Package: emacs
Version: 28.0.50

On CentOS 8.2 with gcc 8.3.1 at a190a446e with --enable-check-lisp-object-type:


dbusbind.c: In function ‘xd_signature’:
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:423:8: note: in expansion of macro ‘XD_NEXT_VALUE’
  elt = XD_NEXT_VALUE (elt);
        ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:434:14: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
              ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:434:14: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
              ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:435:47: note: in expansion of macro ‘XD_NEXT_VALUE’
    xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt)));
                                               ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:444:23: note: in expansion of macro ‘XD_NEXT_VALUE’
    Lisp_Object elt1 = XD_NEXT_VALUE (elt);
                       ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:451:19: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    if (subtype != XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt)))
                   ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:451:19: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    if (subtype != XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt)))
                   ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:453:20: note: in expansion of macro ‘XD_NEXT_VALUE’
    elt = CDR_SAFE (XD_NEXT_VALUE (elt));
                    ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:465:13: note: in expansion of macro ‘XD_NEXT_VALUE’
       elt = XD_NEXT_VALUE (elt);
             ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:467:17: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
                 ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:467:17: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
                 ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:468:50: note: in expansion of macro ‘XD_NEXT_VALUE’
       xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt)));
                                                  ^~~~~~~~~~~~~
In file included from dbusbind.c:26:
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
lisp.h:349:39: note: in definition of macro ‘lisp_h_XLI’
 #  define lisp_h_XLI(o) ((EMACS_INT) (o).i)
                                       ^
lisp.h:364:26: note: in expansion of macro ‘XLI’
 #define lisp_h_EQ(x, y) (XLI (x) == XLI (y))
                          ^~~
lisp.h:428:19: note: in expansion of macro ‘lisp_h_EQ’
 # define EQ(x, y) lisp_h_EQ (x, y)
                   ^~~~~~~~~
lisp.h:370:24: note: in expansion of macro ‘EQ’
 #define lisp_h_NILP(x) EQ (x, Qnil)
                        ^~
lisp.h:431:18: note: in expansion of macro ‘lisp_h_NILP’
 # define NILP(x) lisp_h_NILP (x)
                  ^~~~~~~~~~~
dbusbind.c:470:12: note: in expansion of macro ‘NILP’
       if (!NILP (CDR_SAFE (XD_NEXT_VALUE (elt))))
            ^~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:470:28: note: in expansion of macro ‘XD_NEXT_VALUE’
       if (!NILP (CDR_SAFE (XD_NEXT_VALUE (elt))))
                            ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:472:29: note: in expansion of macro ‘XD_NEXT_VALUE’
         CAR_SAFE (CDR_SAFE (XD_NEXT_VALUE (elt))));
                             ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:482:13: note: in expansion of macro ‘XD_NEXT_VALUE’
       elt = XD_NEXT_VALUE (elt);
             ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:490:14: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
              ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:490:14: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
              ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:491:47: note: in expansion of macro ‘XD_NEXT_VALUE’
    xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt)));
                                               ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:493:20: note: in expansion of macro ‘XD_NEXT_VALUE’
    elt = CDR_SAFE (XD_NEXT_VALUE (elt));
                    ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:513:13: note: in expansion of macro ‘XD_NEXT_VALUE’
       elt = XD_NEXT_VALUE (elt);
             ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:515:17: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
                 ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:515:17: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
                 ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:516:50: note: in expansion of macro ‘XD_NEXT_VALUE’
       xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt)));
                                                  ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:520:51: note: in expansion of macro ‘XD_NEXT_VALUE’
  wrong_type_argument (intern ("D-Bus"), CAR_SAFE (XD_NEXT_VALUE (elt)));
                                                   ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:523:23: note: in expansion of macro ‘XD_NEXT_VALUE’
       elt = CDR_SAFE (XD_NEXT_VALUE (elt));
                       ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:525:17: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
                 ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:525:17: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt));
                 ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:526:50: note: in expansion of macro ‘XD_NEXT_VALUE’
       xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt)));
                                                  ^~~~~~~~~~~~~
In file included from dbusbind.c:26:
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
lisp.h:349:39: note: in definition of macro ‘lisp_h_XLI’
 #  define lisp_h_XLI(o) ((EMACS_INT) (o).i)
                                       ^
lisp.h:364:26: note: in expansion of macro ‘XLI’
 #define lisp_h_EQ(x, y) (XLI (x) == XLI (y))
                          ^~~
lisp.h:428:19: note: in expansion of macro ‘lisp_h_EQ’
 # define EQ(x, y) lisp_h_EQ (x, y)
                   ^~~~~~~~~
lisp.h:370:24: note: in expansion of macro ‘EQ’
 #define lisp_h_NILP(x) EQ (x, Qnil)
                        ^~
lisp.h:431:18: note: in expansion of macro ‘lisp_h_NILP’
 # define NILP(x) lisp_h_NILP (x)
                  ^~~~~~~~~~~
dbusbind.c:529:12: note: in expansion of macro ‘NILP’
       if (!NILP (CDR_SAFE (XD_NEXT_VALUE (elt))))
            ^~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:529:28: note: in expansion of macro ‘XD_NEXT_VALUE’
       if (!NILP (CDR_SAFE (XD_NEXT_VALUE (elt))))
                            ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:531:29: note: in expansion of macro ‘XD_NEXT_VALUE’
         CAR_SAFE (CDR_SAFE (XD_NEXT_VALUE (elt))));
                             ^~~~~~~~~~~~~
dbusbind.c: In function ‘xd_append_arg’:
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:133:24: note: in definition of macro ‘XD_BASIC_DBUS_TYPE’
   (dbus_type_is_valid (type) && dbus_type_is_basic (type))
                        ^~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:747:32: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       if (!XD_BASIC_DBUS_TYPE (XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object))))
                                ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:133:24: note: in definition of macro ‘XD_BASIC_DBUS_TYPE’
   (dbus_type_is_valid (type) && dbus_type_is_basic (type))
                        ^~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:747:32: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       if (!XD_BASIC_DBUS_TYPE (XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object))))
                                ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:133:53: note: in definition of macro ‘XD_BASIC_DBUS_TYPE’
   (dbus_type_is_valid (type) && dbus_type_is_basic (type))
                                                     ^~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:747:32: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       if (!XD_BASIC_DBUS_TYPE (XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object))))
                                ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:133:53: note: in definition of macro ‘XD_BASIC_DBUS_TYPE’
   (dbus_type_is_valid (type) && dbus_type_is_basic (type))
                                                     ^~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:747:32: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       if (!XD_BASIC_DBUS_TYPE (XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object))))
                                ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:748:11: note: in expansion of macro ‘XD_NEXT_VALUE’
  object = XD_NEXT_VALUE (object);
           ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:768:31: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
        if (CONSP (object) && (XD_OBJECT_TO_DBUS_TYPE (XCAR (object))
                               ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:768:31: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
        if (CONSP (object) && (XD_OBJECT_TO_DBUS_TYPE (XCAR (object))
                               ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:771:23: note: in expansion of macro ‘XD_NEXT_VALUE’
     Lisp_Object val = XD_NEXT_VALUE (object);
                       ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:782:10: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
          XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object)),
          ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:782:10: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
          XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object)),
          ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:783:27: note: in expansion of macro ‘XD_NEXT_VALUE’
          dtype, CAR_SAFE (XD_NEXT_VALUE (object)));
                           ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:796:29: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    xd_signature (signature, XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object)),
                             ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:796:29: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    xd_signature (signature, XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object)),
                             ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:797:21: note: in expansion of macro ‘XD_NEXT_VALUE’
    dtype, CAR_SAFE (XD_NEXT_VALUE (object)));
                     ^~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:820:12: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    dtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object));
            ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:820:12: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
    dtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (object));
            ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:237:5: note: in expansion of macro ‘XD_DBUS_TYPE_P’
   ((XD_DBUS_TYPE_P (CAR_SAFE (object))) ? CDR_SAFE (object) : object)
     ^~~~~~~~~~~~~~
dbusbind.c:821:13: note: in expansion of macro ‘XD_NEXT_VALUE’
    object = XD_NEXT_VALUE (object);
             ^~~~~~~~~~~~~
dbusbind.c: In function ‘Fdbus__init_bus’:
dbusbind.c:1235:7: error: used struct type value where scalar is required
       ? (void *) XSYMBOL (bus)
       ^
dbusbind.c: In function ‘Fdbus_message_internal’:
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:226:7: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    : (XD_DBUS_TYPE_P (object)) ? xd_symbol_to_dbus_type (object) \
       ^~~~~~~~~~~~~~
dbusbind.c:1504:15: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       dtype = XD_OBJECT_TO_DBUS_TYPE (args[count]);
               ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:214:3: error: used struct type value where scalar is required
   Fkeywordp (object) && ((xd_symbol_to_dbus_type (object) != DBUS_TYPE_INVALID))
   ^~~~~~~~~
dbusbind.c:228:8: note: in expansion of macro ‘XD_DBUS_TYPE_P’
    ? ((XD_DBUS_TYPE_P (XCAR (object)))     \
        ^~~~~~~~~~~~~~
dbusbind.c:1504:15: note: in expansion of macro ‘XD_OBJECT_TO_DBUS_TYPE’
       dtype = XD_OBJECT_TO_DBUS_TYPE (args[count]);
               ^~~~~~~~~~~~~~~~~~~~~~
dbusbind.c:1505:29: error: invalid operands to binary && (have ‘int’ and ‘Lisp_Object’ {aka ‘struct Lisp_Object’})
       if (count + 1 < nargs && XD_DBUS_TYPE_P (args[count]))
           ~~~~~~~~~~~~~~~~~ ^~
dbusbind.c: In function ‘xd_read_queued_messages’:
dbusbind.c:1800:7: error: used struct type value where scalar is required
  if ((Fkeywordp (key) && XSYMBOL (key) == data)
       ^~~~~~~~~
make[1]: *** [Makefile:401: dbusbind.o] Error 1





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#43724: build failure in dbusbind
  2020-09-30 15:40 bug#43724: build failure in dbusbind Glenn Morris
@ 2020-09-30 17:34 ` Lars Ingebrigtsen
  2020-10-01  8:36   ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-30 17:34 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 43724

Glenn Morris <rgm@gnu.org> writes:

> On CentOS 8.2 with gcc 8.3.1 at a190a446e with --enable-check-lisp-object-type:

Just a data point -- this also fails for me on Debian bullseye with

gcc version 10.2.0 (Debian 10.2.0-6) 

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#43724: build failure in dbusbind
  2020-09-30 17:34 ` Lars Ingebrigtsen
@ 2020-10-01  8:36   ` Michael Albinus
  2020-10-01  8:45     ` Andreas Schwab
  2020-10-01  8:49     ` Robert Pluim
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Albinus @ 2020-10-01  8:36 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Glenn Morris, 43724-done

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Glenn Morris <rgm@gnu.org> writes:
>
>> On CentOS 8.2 with gcc 8.3.1 at a190a446e with
>> --enable-check-lisp-object-type:
>
> Just a data point -- this also fails for me on Debian bullseye with
>
> gcc version 10.2.0 (Debian 10.2.0-6)

Same error happens here when configuring Emacs with
--enable-check-lisp-object-type. So I've reverted my last change, using
SYMBOLP instead of Fkeywordp. Closing the bug.

But I must admit that I don't understand why Fkeywordp triggers that
error.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#43724: build failure in dbusbind
  2020-10-01  8:36   ` Michael Albinus
@ 2020-10-01  8:45     ` Andreas Schwab
  2020-10-01  9:22       ` Michael Albinus
  2020-10-01  8:49     ` Robert Pluim
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Schwab @ 2020-10-01  8:45 UTC (permalink / raw)
  To: 43724; +Cc: rgm, michael.albinus

On Okt 01 2020, Michael Albinus wrote:

> But I must admit that I don't understand why Fkeywordp triggers that
> error.

Because Fkeywordp returns a Lisp_Object, not bool.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#43724: build failure in dbusbind
  2020-10-01  8:36   ` Michael Albinus
  2020-10-01  8:45     ` Andreas Schwab
@ 2020-10-01  8:49     ` Robert Pluim
  1 sibling, 0 replies; 6+ messages in thread
From: Robert Pluim @ 2020-10-01  8:49 UTC (permalink / raw)
  To: 43724; +Cc: rgm, michael.albinus

>>>>> On Thu, 01 Oct 2020 10:36:35 +0200, Michael Albinus <michael.albinus@gmx.de> said:

    Michael> Lars Ingebrigtsen <larsi@gnus.org> writes:
    >> Glenn Morris <rgm@gnu.org> writes:
    >> 
    >>> On CentOS 8.2 with gcc 8.3.1 at a190a446e with
    >>> --enable-check-lisp-object-type:
    >> 
    >> Just a data point -- this also fails for me on Debian bullseye with
    >> 
    >> gcc version 10.2.0 (Debian 10.2.0-6)

    Michael> Same error happens here when configuring Emacs with
    Michael> --enable-check-lisp-object-type. So I've reverted my last change, using
    Michael> SYMBOLP instead of Fkeywordp. Closing the bug.

    Michael> But I must admit that I don't understand why Fkeywordp triggers that
    Michael> error.

    Michael> Best regards, Michael.

From lisp.h

/* A Lisp_Object is a tagged pointer or integer.  Ordinarily it is a
   Lisp_Word.  However, if CHECK_LISP_OBJECT_TYPE, it is a wrapper
   around Lisp_Word, to help catch thinkos like 'Lisp_Object x = 0;'.

which means you should be using the NILP macro rather than checking
the return value of Fkeywordp directly, I think.

Robert
-- 





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#43724: build failure in dbusbind
  2020-10-01  8:45     ` Andreas Schwab
@ 2020-10-01  9:22       ` Michael Albinus
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Albinus @ 2020-10-01  9:22 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: rgm, 43724

Andreas Schwab <schwab@linux-m68k.org> writes:

>> But I must admit that I don't understand why Fkeywordp triggers that
>> error.
>
> Because Fkeywordp returns a Lisp_Object, not bool.

Of course. How stupid from me.

> Andreas.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-01  9:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30 15:40 bug#43724: build failure in dbusbind Glenn Morris
2020-09-30 17:34 ` Lars Ingebrigtsen
2020-10-01  8:36   ` Michael Albinus
2020-10-01  8:45     ` Andreas Schwab
2020-10-01  9:22       ` Michael Albinus
2020-10-01  8:49     ` Robert Pluim

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).