Required glib version is too low
Submitted by Albert Astals Cid
Assigned to poppler-bugs
Description
configure and cmake pass fine but then when compiling i get this error
[ 38%] Building CXX object glib/CMakeFiles/poppler-glib.dir/poppler-document.cc.o /home/tsdgeos/poppler/glib/poppler-document.cc: In function ‘void poppler_document_class_init(PopplerDocumentClass*)’: /home/tsdgeos/poppler/glib/poppler-document.cc:1521:25: error: invalid conversion from ‘int’ to ‘GParamFlags’ [-fpermissive] G_PARAM_READWRITE)); ^ In file included from /usr/include/glib-2.0/glib-object.h:28:0, from /home/tsdgeos/poppler/glib/poppler.h:22, from /home/tsdgeos/poppler/glib/poppler-document.cc:41: /usr/include/glib-2.0/gobject/gparamspecs.h:1085:13: error: initializing argument 5 of ‘GParamSpec* g_param_spec_string(const gchar*, const gchar*, const gchar*, const gchar*, GParamFlags)’ [-fpermissive] GParamSpec* g_param_spec_string (const gchar name, ^ /home/tsdgeos/poppler/glib/poppler-document.cc:1573:25: error: invalid conversion from ‘int’ to ‘GParamFlags’ [-fpermissive] G_PARAM_READWRITE)); ^ In file included from /usr/include/glib-2.0/glib-object.h:28:0, from /home/tsdgeos/poppler/glib/poppler.h:22, from /home/tsdgeos/poppler/glib/poppler-document.cc:41: /usr/include/glib-2.0/gobject/gparamspecs.h:1085:13: error: initializing argument 5 of ‘GParamSpec g_param_spec_string(const gchar*, const gchar*, const gchar*, const gchar*, GParamFlags)’ [-fpermissive] GParamSpec* g_param_spec_string (const gchar name, ^ /home/tsdgeos/poppler/glib/poppler-document.cc:1586:25: error: invalid conversion from ‘int’ to ‘GParamFlags’ [-fpermissive] G_PARAM_READWRITE)); ^ In file included from /usr/include/glib-2.0/glib-object.h:28:0, from /home/tsdgeos/poppler/glib/poppler.h:22, from /home/tsdgeos/poppler/glib/poppler-document.cc:41: /usr/include/glib-2.0/gobject/gparamspecs.h:1085:13: error: initializing argument 5 of ‘GParamSpec g_param_spec_string(const gchar*, const gchar*, const gchar*, const gchar*, GParamFlags)’ [-fpermissive] GParamSpec* g_param_spec_string (const gchar name, ^ /home/tsdgeos/poppler/glib/poppler-document.cc:1599:25: error: invalid conversion from ‘int’ to ‘GParamFlags’ [-fpermissive] G_PARAM_READWRITE)); ^ In file included from /usr/include/glib-2.0/glib-object.h:28:0, from /home/tsdgeos/poppler/glib/poppler.h:22, from /home/tsdgeos/poppler/glib/poppler-document.cc:41: /usr/include/glib-2.0/gobject/gparamspecs.h:1085:13: error: initializing argument 5 of ‘GParamSpec g_param_spec_string(const gchar*, const gchar*, const gchar*, const gchar*, GParamFlags)’ [-fpermissive] GParamSpec* g_param_spec_string (const gchar name, ^ /home/tsdgeos/poppler/glib/poppler-document.cc:1612:25: error: invalid conversion from ‘int’ to ‘GParamFlags’ [-fpermissive] G_PARAM_READWRITE)); ^ In file included from /usr/include/glib-2.0/glib-object.h:28:0, from /home/tsdgeos/poppler/glib/poppler.h:22, from /home/tsdgeos/poppler/glib/poppler-document.cc:41: /usr/include/glib-2.0/gobject/gparamspecs.h:1085:13: error: initializing argument 5 of ‘GParamSpec g_param_spec_string(const gchar*, const gchar*, const gchar*, const gchar*, GParamFlags)’ [-fpermissive] GParamSpec* g_param_spec_string (const gchar name, ^ /home/tsdgeos/poppler/glib/poppler-document.cc:1625:25: error: invalid conversion from ‘int’ to ‘GParamFlags’ [-fpermissive] G_PARAM_READWRITE)); ^ In file included from /usr/include/glib-2.0/glib-object.h:28:0, from /home/tsdgeos/poppler/glib/poppler.h:22, from /home/tsdgeos/poppler/glib/poppler-document.cc:41: /usr/include/glib-2.0/gobject/gparamspecs.h:1085:13: error: initializing argument 5 of ‘GParamSpec g_param_spec_string(const gchar*, const gchar*, const gchar*, const gchar*, GParamFlags)’ [-fpermissive] GParamSpec* g_param_spec_string (const gchar name, ^ /home/tsdgeos/poppler/glib/poppler-document.cc:1638:29: error: invalid conversion from ‘int’ to ‘GParamFlags’ [-fpermissive] G_PARAM_READWRITE)); ^ In file included from /usr/include/glib-2.0/glib-object.h:28:0, from /home/tsdgeos/poppler/glib/poppler.h:22, from /home/tsdgeos/poppler/glib/poppler-document.cc:41: /usr/include/glib-2.0/gobject/gparamspecs.h:1001:13: error: initializing argument 7 of ‘GParamSpec g_param_spec_int(const gchar*, const gchar*, const gchar*, gint, gint, gint, GParamFlags)’ [-fpermissive] GParamSpec* g_param_spec_int (const gchar name, ^ /home/tsdgeos/poppler/glib/poppler-document.cc:1651:29: error: invalid conversion from ‘int’ to ‘GParamFlags’ [-fpermissive] G_PARAM_READWRITE)); ^ In file included from /usr/include/glib-2.0/glib-object.h:28:0, from /home/tsdgeos/poppler/glib/poppler.h:22, from /home/tsdgeos/poppler/glib/poppler-document.cc:41: /usr/include/glib-2.0/gobject/gparamspecs.h:1001:13: error: initializing argument 7 of ‘GParamSpec g_param_spec_int(const gchar*, const gchar*, const gchar*, gint, gint, gint, GParamFlags)’ [-fpermissive] GParamSpec* g_param_spec_int (const gchar *name, ^
So i guess we should increase the required glib version? Or make it compile with this "old" version if possible.
This is with glib 2.40.2