<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Build failure: undeclared identifier 'g_malloc0_n'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=81191">81191</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Build failure: undeclared identifier 'g_malloc0_n'
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dmacks@netspace.org
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>glib frontend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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()</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>