Thank you!
Building on Debian with GTK+ Version 3.24.5, cairo version 1.16.0, and
gcc (Debian 8.3.0-6) 8.3.0 configured as
CFLAGS='-O0 -g3 -no-pie' ../configure --without-x --with-cairo
--with-modules --with-gif=ifavailable --with-tiff=ifavailable
--with-gnutls=no --without-pop --enable-gcc-warnings=warn-only
--enable-checking=yes --enable-check-lisp-object-type=yes
fails here thusly:
  CC       pgtkterm.o
../../src/pgtkterm.c: In function ‘mark_pgtkterm’:
../../src/pgtkterm.c:168:25: error: incompatible type for argument 1 of 
‘mark_object’
     mark_object (dpyinfo->rdb);
                  ~~~~~~~^~~~~
In file included from ../../src/pgtkterm.c:39:
../../src/lisp.h:3785:26: note: expected ‘Lisp_Object’ {aka ‘struct 
Lisp_Object’} but argument is of type ‘XrmDatabase’ {aka ‘void *’}
 extern void mark_object (Lisp_Object);
                          ^~~~~~~~~~~
make[1]: *** [Makefile:405: pgtkterm.o] Fehler 1
make[1]: *** Es wird auf noch nicht beendete Prozesse gewartet....
make[1]: Verzeichnis „/home/martin/emacs-git/masm/obj-pure-gtk/src“ wird 
verlassen
make: *** [Makefile:431: src] Fehler 2
Any ideas?

Hi Martin,

I had a look at this, it seems that the line can be deleted.

I have a PR up on Yuuki Harano's Repo, or you can grab a cleaned up version here:  
https://github.com/fejfighter/emacs/tree/pgtk-xrdb-mark

it seems to compile and run without error using the flags you provided.

Hope that helps,

Jeff Walsh