[Poppler-bugs] [Bug 81191] New: Build failure: undeclared identifier 'g_malloc0_n'

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 10 13:15:55 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=81191

          Priority: medium
            Bug ID: 81191
          Assignee: poppler-bugs at lists.freedesktop.org
           Summary: Build failure: undeclared identifier 'g_malloc0_n'
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: dmacks at netspace.org
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: glib frontend
           Product: poppler

Building poppler-0.26.2 on OS X 10.8 fails in the glib subdir:

  CXX      poppler-annot.lo
poppler-annot.cc:274:62: error: use of undeclared identifier 'g_malloc0_n'; did
you mean 'gmallocn'?
  quads_array = (AnnotQuadrilaterals::AnnotQuadrilateral **) g_malloc0_n (
                                                             ^~~~~~~~~~~
                                                             gmallocn
../goo/gmem.h:57:14: note: 'gmallocn' declared here
extern void *gmallocn(int nObjs, int objSize);
             ^
1 error generated.
make[2]: *** [poppler-annot.lo] Error 1


I have glib-2.22.4, but g_malloc0_n() was only added as of 2.24. Either
configure needs to check for this newer version (it currently has
GLIB_REQUIRED=2.18) or poppler-annot.cc needs to switch (or have a way to fall
back) to using a less modern function. By documentation, it sounds like gmem.h
does have some viable replacements, gmallocn() or maybe
gmallocn_checkoverflow()

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20140710/5327260d/attachment.html>


More information about the Poppler-bugs mailing list