Building Dia from source



Hi,
I'm trying to build Dia from the master branch on Arch Linux (latest packages to date). It gives me multiple errors in pdf-import.cpp (a complete output log of make is attached in the HTML file).
make  all-recursive
make[1]: Entering directory '/home/liel/Projects/C/dia'
Making all in lib
make[2]: Entering directory '/home/liel/Projects/C/dia/lib'
make  all-recursive
make[3]: Entering directory '/home/liel/Projects/C/dia/lib'
Making all in pixmaps
make[4]: Entering directory '/home/liel/Projects/C/dia/lib/pixmaps'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/liel/Projects/C/dia/lib/pixmaps'
make[4]: Entering directory '/home/liel/Projects/C/dia/lib'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/liel/Projects/C/dia/lib'
make[3]: Leaving directory '/home/liel/Projects/C/dia/lib'
make[2]: Leaving directory '/home/liel/Projects/C/dia/lib'
Making all in objects
make[2]: Entering directory '/home/liel/Projects/C/dia/objects'
Making all in standard
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/standard'
make  all-am
make[4]: Entering directory '/home/liel/Projects/C/dia/objects/standard'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/liel/Projects/C/dia/objects/standard'
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/standard'
Making all in network
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/network'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/network'
Making all in UML
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/UML'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/UML'
Making all in ER
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/ER'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/ER'
Making all in FS
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/FS'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/FS'
Making all in flowchart
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/flowchart'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/flowchart'
Making all in custom
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/custom'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/custom'
Making all in custom_lines
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/custom_lines'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/custom_lines'
Making all in GRAFCET
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/GRAFCET'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/GRAFCET'
Making all in chronogram
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/chronogram'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/chronogram'
Making all in SADT
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/SADT'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/SADT'
Making all in Misc
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/Misc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/Misc'
Making all in Istar
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/Istar'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/Istar'
Making all in Jackson
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/Jackson'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/Jackson'
Making all in KAOS
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/KAOS'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/KAOS'
Making all in AADL
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/AADL'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/AADL'
Making all in Database
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/Database'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/Database'
Making all in Sozi
make[3]: Entering directory '/home/liel/Projects/C/dia/objects/Sozi'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects/Sozi'
make[3]: Entering directory '/home/liel/Projects/C/dia/objects'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/objects'
make[2]: Leaving directory '/home/liel/Projects/C/dia/objects'
Making all in plug-ins
make[2]: Entering directory '/home/liel/Projects/C/dia/plug-ins'
Making all in cgm
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/cgm'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/cgm'
Making all in cairo
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/cairo'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/cairo'
Making all in pstricks
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/pstricks'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/pstricks'
Making all in hpgl
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/hpgl'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/hpgl'
Making all in wpg
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/wpg'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/wpg'
Making all in svg
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/svg'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/svg'
Making all in shape
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/shape'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/shape'
Making all in dxf
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/dxf'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/dxf'
Making all in python
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/python'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/python'
Making all in xfig
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/xfig'
  CC       xfig.lo
  CC       xfig-import.lo
  CC       xfig-export.lo
  CC       xfig-common.lo
  CCLD     libxfig_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/xfig'
Making all in wmf
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/wmf'
  CXX      wmf.lo
  CXX      wmf_gdi.lo
  CXXLD    libwmf_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/wmf'
Making all in libart
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/libart'
  CC       dialibart.lo
  CC       dialibartrenderer.lo
dialibartrenderer.c: In function ‘begin_render’:
dialibartrenderer.c:108:3: warning: pango_ft2_get_context’ is deprecated: Use 'pango_font_map_create_context' instead [-Wdeprecated-declarations]
   dia_font_push_context(pango_ft2_get_context(75, 75));
   ^~~~~~~~~~~~~~~~~~~~~
In file included from dialibartrenderer.c:38:
/usr/include/pango-1.0/pango/pangoft2.h:122:20: note: declared here
 PangoContext      *pango_ft2_get_context          (double dpi_x,
                    ^~~~~~~~~~~~~~~~~~~~~
  CC       render_libart.lo
  CC       export_png.lo
  CCLD     libart_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/libart'
Making all in metapost
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/metapost'
  CC       metapost.lo
  CC       render_metapost.lo
  CCLD     libmetapost_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/metapost'
Making all in xslt
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/xslt'
  CC       xslt.lo
  CC       xsltdialog.lo
  CCLD     libxslt_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/xslt'
Making all in pixbuf
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/pixbuf'
  CC       pixbuf.lo
  CCLD     libpixbuf_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/pixbuf'
Making all in pgf
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/pgf'
  CC       pgf.lo
  CC       render_pgf.lo
  CCLD     libpgf_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/pgf'
Making all in vdx
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/vdx'
  CC       vdx.lo
  CC       vdx-import.lo
  CC       vdx-export.lo
  CC       vdx-common.lo
  CC       vdx-xml.lo
vdx-xml.c: In function ‘vdx_write_object’:
vdx-xml.c:3427:28: warning: variable ‘Text’ set but not used [-Wunused-but-set-variable]
     const struct vdx_Text *Text;
                            ^~~~
vdx-xml.c:3420:30: warning: variable ‘Shapes’ set but not used [-Wunused-but-set-variable]
     const struct vdx_Shapes *Shapes;
                              ^~~~~~
  CCLD     libvdx_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/vdx'
Making all in postscript
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/postscript'
  CC       postscript.lo
  CC       ps-utf8.lo
  CC       diapsrenderer.lo
  CC       diapsft2renderer.lo
diapsft2renderer.c: In function ‘postscript_draw_contour’:
diapsft2renderer.c:230:5: warning: pango_ft2_font_get_face’ is deprecated: Use 'pango_fc_font_lock_face' instead [-Wdeprecated-declarations]
     ft_face = pango_ft2_font_get_face(font);
     ^~~~~~~
In file included from diapsft2renderer.c:30:
/usr/include/pango-1.0/pango/pangoft2.h:136:16: note: declared here
 FT_Face        pango_ft2_font_get_face     (PangoFont       *font);
                ^~~~~~~~~~~~~~~~~~~~~~~
  CC       paginate_psprint.lo
  CC       render_eps.lo
render_eps.c: In function ‘export_render_eps’:
render_eps.c:130:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   renderer->pstype = (guint)user_data;
                      ^
  CCLD     libpostscript_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/postscript'
Making all in drs
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/drs'
  CC       dia-render-script.lo
  CC       dia-render-script-import.lo
  CC       dia-render-script-object.lo
  CC       dia-render-script-renderer.lo
dia-render-script-renderer.c: In function ‘draw_object’:
dia-render-script-renderer.c:84:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   if ((int)object->type->default_user_data > 0 && (int)object->type->default_user_data < 0xFF) {
       ^
dia-render-script-renderer.c:84:51: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   if ((int)object->type->default_user_data > 0 && (int)object->type->default_user_data < 0xFF) {
                                                   ^
dia-render-script-renderer.c:86:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     g_snprintf(buffer, sizeof(buffer), "%d", (int)object->type->default_user_data);
                                              ^
  CCLD     libdrs_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/drs'
Making all in stress
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/stress'
  CC       stress.lo
  CC       stress-memory.lo
stress-memory.c: In function ‘vmem_avail’:
stress-memory.c:33:12: warning: unused variable ‘p’ [-Wunused-variable]
   gpointer p = NULL;
            ^
  CCLD     libstress_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/stress'
Making all in layout
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/layout'
  CXX      dia-graph.lo
  CXX      layout.lo
  CXXLD    liblayout_filter.la
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/layout'
Making all in pdf
make[3]: Entering directory '/home/liel/Projects/C/dia/plug-ins/pdf'
  CC       pdf.lo
  CXX      pdf-import.lo
pdf-import.cpp:67:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool upsideDown() { return gTrue; }
   ^~~~~
   UBool
pdf-import.cpp:69:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool useDrawChar() { return gFalse; }
   ^~~~~
   UBool
pdf-import.cpp:71:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool interpretType3Chars() { return gFalse; }
   ^~~~~
   UBool
pdf-import.cpp:73:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool checkPageSlice (Page *page, double hDPI, double vDPI,
   ^~~~~
   UBool
pdf-import.cpp:223:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool useShadedFills(int type) { return type < 4; }
   ^~~~~
   UBool
pdf-import.cpp:224:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool useFillColorStop() { return gTrue; }
   ^~~~~
   UBool
pdf-import.cpp:226:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool axialShadedSupportExtend(GfxState *state, GfxAxialShading *shading)
   ^~~~~
   UBool
pdf-import.cpp:244:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool axialShadedFill(GfxState *state, GfxAxialShading *shading, double tMin, double tMax)
   ^~~~~
   UBool
pdf-import.cpp:266:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool radialShadedSupportExtend(GfxState *state, GfxRadialShading *shading)
   ^~~~~
   UBool
pdf-import.cpp:270:3: error: GBool’ does not name a type; did you mean ‘UBool’?
   GBool radialShadedFill(GfxState *state, GfxRadialShading *shading, double sMin, double sMax)
   ^~~~~
   UBool
pdf-import.cpp:393:4: error: GBool’ has not been declared
    GBool interpolate, int *maskColors, GBool inlineImg);
    ^~~~~
pdf-import.cpp:393:40: error: GBool’ has not been declared
    GBool interpolate, int *maskColors, GBool inlineImg);
                                        ^~~~~
pdf-import.cpp: In member function ‘virtual void DiaOutputDev::updateFont(GfxState*)’:
pdf-import.cpp:324:64: error: class GooString’ has no member named ‘getCString’; did you mean ‘GooString’?
     gchar *family = g_strdup (f->getFamily() ? f->getFamily()->getCString() : "sans");
                                                                ^~~~~~~~~~
                                                                GooString
pdf-import.cpp:342:34: error: invalid conversion from ‘const double*’ to ‘double*’ [-fpermissive]
     double *fm = f->getFontMatrix();
                  ~~~~~~~~~~~~~~~~^~
pdf-import.cpp: In member function ‘void DiaOutputDev::drawString(GfxState*, GooString*)’:
pdf-import.cpp:721:18: error: class GooString’ has no member named ‘getCString’; did you mean ‘GooString’?
     char *p = s->getCString();
                  ^~~~~~~~~~
                  GooString
pdf-import.cpp: At global scope:
pdf-import.cpp:777:4: error: GBool’ has not been declared
    GBool interpolate, int *maskColors, GBool inlineImg)
    ^~~~~
pdf-import.cpp:777:40: error: GBool’ has not been declared
    GBool interpolate, int *maskColors, GBool inlineImg)
                                        ^~~~~
pdf-import.cpp: In member function ‘void DiaOutputDev::drawImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, int, int*, int)’:
pdf-import.cpp:783:30: error: invalid conversion from ‘const double*’ to ‘double*’ [-fpermissive]
   double *ctm = state->getCTM();
                 ~~~~~~~~~~~~~^~
pdf-import.cpp: In function ‘gboolean import_pdf(const gchar*, DiagramData*, DiaContext*, void*)’:
pdf-import.cpp:874:68: error: invalid new-_expression_ of abstract class type ‘DiaOutputDev’
     DiaOutputDev *diaOut = new DiaOutputDev(dia, doc->getNumPages());
                                                                    ^
pdf-import.cpp:63:7: note:   because the following virtual functions are pure within ‘DiaOutputDev’:
 class DiaOutputDev : public OutputDev
       ^~~~~~~~~~~~
In file included from pdf-import.cpp:35:
/usr/include/poppler/OutputDev.h:90:16: note: virtual bool OutputDev::upsideDown()’
   virtual bool upsideDown() = 0;
                ^~~~~~~~~~
/usr/include/poppler/OutputDev.h:93:16: note: virtual bool OutputDev::useDrawChar()’
   virtual bool useDrawChar() = 0;
                ^~~~~~~~~~~
/usr/include/poppler/OutputDev.h:113:16: note: virtual bool OutputDev::interpretType3Chars()’
   virtual bool interpretType3Chars() = 0;
                ^~~~~~~~~~~~~~~~~~~
pdf-import.cpp:883:10: error: gTrue’ was not declared in this scope
          gTrue, /* useMediaBox */
          ^~~~~
pdf-import.cpp:883:10: note: suggested alternative: ‘gfreegTrue, /* useMediaBox */
          ^~~~~
          gfree
pdf-import.cpp:885:10: error: gFalse’ was not declared in this scope
          gFalse /* printing */
          ^~~~~~
pdf-import.cpp:885:10: note: suggested alternative: ‘pausegFalse /* printing */
          ^~~~~~
          pause
make[3]: *** [Makefile:562: pdf-import.lo] Error 1
make[3]: Leaving directory '/home/liel/Projects/C/dia/plug-ins/pdf'
make[2]: *** [Makefile:452: all-recursive] Error 1
make[2]: Leaving directory '/home/liel/Projects/C/dia/plug-ins'
make[1]: *** [Makefile:621: all-recursive] Error 1
make[1]: Leaving directory '/home/liel/Projects/C/dia'
make: *** [Makefile:488: all] Error 2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]