all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Iñigo Serna" <inigoserna@gmail.com>
To: emacs-devel@gnu.org
Subject: Compilation of master with pgtk and xwidgets is broken since commit 16c785b621
Date: Sat, 22 Jan 2022 12:57:27 +0100	[thread overview]
Message-ID: <87pmokc6gs.fsf@gmail.com> (raw)

Hi,

Compilation of master with pgtk and xwidgets is broken since 
commit
16c785b621. I added the error at the end of the email.

I simple fix is to move "#include <cairo-xlib.h>" in file 
src/xwidget.c
line 42 one line below, inside #ifndef HAVE_PGTK.

Thanks,
-- 
Iñigo Serna


```
make[1]: Entering directory 
'/home/_compiling/linux/devel/emacs.git/src'
  CC       xwidget.o
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/cairo/cairo-xlib.h:44,
                 from xwidget.c:42:
/usr/include/X11/X.h:96:13: error: conflicting types for ‘Window’; 
have ‘XID’ {aka ‘long unsigned int’}
   96 | typedef XID Window;
      |             ^~~~~~
In file included from dispextern.h:133,
                 from composite.h:29,
                 from coding.h:284,
                 from xwidget.c:23:
pgtkgui.h:49:13: note: previous declaration of ‘Window’ with type 
‘Window’ {aka ‘int’}
   49 | typedef int Window;
      |             ^~~~~~
In file included from /usr/include/cairo/cairo-xlib.h:44,
                 from xwidget.c:42:
/usr/include/X11/Xlib.h:433:3: error: conflicting types for 
‘XRectangle’; have ‘struct <anonymous>’
  433 | } XRectangle;
      |   ^~~~~~~~~~
In file included from dispextern.h:133,
                 from composite.h:29,
                 from coding.h:284,
                 from xwidget.c:23:
pgtkgui.h:62:3: note: previous declaration of ‘XRectangle’ with 
type ‘XRectangle’
   62 | } XRectangle;
      |   ^~~~~~~~~~
In file included from /usr/include/cairo/cairo-xlib.h:44,
                 from xwidget.c:42:
/usr/include/X11/Xlib.h:487:26: error: conflicting types for 
‘Display’; have ‘struct _XDisplay’
  487 | typedef struct _XDisplay Display;
      |                          ^~~~~~~
In file included from dispextern.h:133,
                 from composite.h:29,
                 from coding.h:284,
                 from xwidget.c:23:
pgtkgui.h:50:28: note: previous declaration of ‘Display’ with type 
‘Display’ {aka ‘struct _GdkDisplay’}
   50 | typedef struct _GdkDisplay Display;
      |                            ^~~~~~~
In file included from /usr/include/cairo/cairo-xlib.h:44,
                 from xwidget.c:42:
/usr/include/X11/Xlib.h:1024:3: error: conflicting types for 
‘XCharStruct’; have ‘struct <anonymous>’
 1024 | } XCharStruct;
      |   ^~~~~~~~~~~
In file included from dispextern.h:133,
                 from composite.h:29,
                 from coding.h:284,
                 from xwidget.c:23:
pgtkgui.h:30:3: note: previous declaration of ‘XCharStruct’ with 
type ‘XCharStruct’ {aka ‘struct _XCharStruct’}
   30 | } XCharStruct;
      |   ^~~~~~~~~~~
In file included from /usr/include/cairo/cairo-xlib.h:44,
                 from xwidget.c:42:
/usr/include/X11/Xlib.h:1067:3: error: conflicting types for 
‘XChar2b’; have ‘struct <anonymous>’
 1067 | } XChar2b;
      |   ^~~~~~~
In file included from dispextern.h:133,
                 from composite.h:29,
                 from coding.h:284,
                 from xwidget.c:23:
pgtkgui.h:34:17: note: previous declaration of ‘XChar2b’ with type 
‘XChar2b’ {aka ‘short unsigned int’}
   34 | typedef unichar XChar2b;
      |                 ^~~~~~~
make[1]: *** [Makefile:411: xwidget.o] Error 1
make[1]: Leaving directory 
'/home/_compiling/linux/devel/emacs.git/src'
make: *** [Makefile:469: src] Error 2
```



             reply	other threads:[~2022-01-22 11:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-22 11:57 Iñigo Serna [this message]
2022-01-22 12:29 ` Compilation of master with pgtk and xwidgets is broken since commit 16c785b621 Po Lu
2022-01-22 13:00   ` Iñigo Serna

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmokc6gs.fsf@gmail.com \
    --to=inigoserna@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.