dslm4515 / BMLFS

Beyond Musl Linux From Scratch - Build Recipes for MLFS [Musl Linux From Source]
17 stars 4 forks source link

Pangomm-2.48.x Fails to Compile #16

Closed dslm4515 closed 3 years ago

dslm4515 commented 3 years ago

Pangomm fails to compile:

ninja: job failed: c++ -Ipango/pangomm/libpangomm-2.48.so.1.0.30.p -Ipango -I../pango -I../untracked/pango -I/usr/include/giomm-2.68 -I/usr/lib/
giomm-2.68/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glibmm-2.68 -
I/usr/lib/glibmm-2.68/include -I/usr/include/sigc++-3.0 -I/usr/lib/sigc++-3.0/include -I/usr/include/cairomm-1.16 -I/usr/lib/cairomm-1.16/includ
e -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/in
clude/cogl -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/fribidi -fdiagnos
tics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -g -Wall -fPIC -pthread -DPANGOMM_BUILD=1 -MD -MQ pan
go/pangomm/libpangomm-2.48.so.1.0.30.p/.._.._untracked_pango_pangomm_attrlist.cc.o -MF pango/pangomm/libpangomm-2.48.so.1.0.30.p/.._.._untracked
_pango_pangomm_attrlist.cc.o.d -o pango/pangomm/libpangomm-2.48.so.1.0.30.p/.._.._untracked_pango_pangomm_attrlist.cc.o -c ../untracked/pango/pa
ngomm/attrlist.cc
../untracked/pango/pangomm/attrlist.cc: In constructor 'Pango::AttrList::AttrList(const Glib::ustring&, gunichar)':
../untracked/pango/pangomm/attrlist.cc:34:20: error: 'pango_parse_markup' was not declared in this scope
   34 |   gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
      |                    ^~~~~~~~~~~~~~~~~~
../untracked/pango/pangomm/attrlist.cc: In constructor 'Pango::AttrList::AttrList(const Glib::ustring&, gunichar, Glib::ustring&, gunichar&)':
../untracked/pango/pangomm/attrlist.cc:52:20: error: 'pango_parse_markup' was not declared in this scope
   52 |   gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
      |                    ^~~~~~~~~~~~~~~~~~
ninja: subcommand failed
dslm4515 commented 3 years ago

Looks like pango_parse_markup wasn't declared. BUT is declared in /usr/include/pango-1.0/pango/pango-markup.h from pango

add header to ${PANGOMM_SRC}/untracked/pango/pangomm/attrlist.cc :

// Generated by gmmproc 2.68.0 -- DO NOT MODIFY!                                                                                                

#include <glibmm.h>                                                                                                                             

+#include <pango-1.0/pango/pango-markup.h>                                                                                                       
#include <pangomm/attrlist.h>                                                                                                                   
#include <pangomm/private/attrlist_p.h>     
dslm4515 commented 3 years ago

Same issue for pangomm 2.46.1 and on a different [iteration] of mlfs:

ninja: job failed: c++ -Ipango/pangomm/libpangomm-1.4.so.1.0.30.p -Ipango -I../pango -I../untracked/pango -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/cogl -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/fribidi -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -g -Wall -fPIC -pthread -DPANGOMM_BUILD=1 -MD -MQ pango/pangomm/libpangomm-1.4.so.1.0.30.p/.._.._untracked_pango_pangomm_attrlist.cc.o -MF pango/pangomm/libpangomm-1.4.so.1.0.30.p/.._.._untracked_pango_pangomm_attrlist.cc.o.d -o pango/pangomm/libpangomm-1.4.so.1.0.30.p/.._.._untracked_pango_pangomm_attrlist.cc.o -c ../untracked/pango/pangomm/attrlist.cc
../untracked/pango/pangomm/attrlist.cc: In constructor 'Pango::AttrList::AttrList(const Glib::ustring&, gunichar)':
../untracked/pango/pangomm/attrlist.cc:38:20: error: 'pango_parse_markup' was not declared in this scope
   38 |   gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
      |                    ^~~~~~~~~~~~~~~~~~
../untracked/pango/pangomm/attrlist.cc: In constructor 'Pango::AttrList::AttrList(const Glib::ustring&, gunichar, Glib::ustring&, gunichar&)':
../untracked/pango/pangomm/attrlist.cc:65:20: error: 'pango_parse_markup' was not declared in this scope
   65 |   gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
      |                    ^~~~~~~~~~~~~~~~~~
ninja: subcommand failed