<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 --- - Does not link against glib-2.34.1 when using cmake because of missing -lgio-2.0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=62464">62464</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>Does not link against glib-2.34.1 when using cmake because of missing -lgio-2.0
          </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>michael@weiser.dinsnail.net
          </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>Created <span class=""><a href="attachment.cgi?id=76677" name="attach_76677" title="Add gio-2.0 pkgconfig module check to FindGLIB.cmake">attachment 76677</a> <a href="attachment.cgi?id=76677&action=edit" title="Add gio-2.0 pkgconfig module check to FindGLIB.cmake">[details]</a></span>
Add gio-2.0 pkgconfig module check to FindGLIB.cmake

cmake's FindGLIB.cmake doesn't look for gio-2.0 pkgconfig module and so does
not add the library for linking. This results in linker errors (with my Gentoo
Prefix Portage setup on Mac OS X 10.8). Adding the module check to
FindGLIB.cmake makes it link.

[ 86%] Building CXX object
glib/CMakeFiles/poppler-glib.dir/__/poppler/CairoRescaleBox.cc.o
Linking CXX shared library libpoppler-glib.dylib
Undefined symbols for architecture x86_64:
  "_g_input_stream_get_type", referenced from:
      _poppler_document_new_from_stream in poppler-document.cc.o
      _poppler_document_new_from_gfile in poppler-document.cc.o
  "_g_seekable_get_type", referenced from:
      _poppler_document_new_from_stream in poppler-document.cc.o
      PopplerCachedFileLoader::load(std::vector<_ByteRange,
std::allocator<_ByteRange> > const&, CachedFileWriter*)in
poppler-cached-file-loader.cc.o
      PopplerInputStream::close()      in poppler-input-stream.cc.o
      PopplerInputStream::setPos(unsigned int, int)in poppler-input-stream.cc.o
      PopplerInputStream::reset()      in poppler-input-stream.cc.o
  "_g_seekable_can_seek", referenced from:
      _poppler_document_new_from_stream in poppler-document.cc.o
  "_g_io_error_quark", referenced from:
      _poppler_document_new_from_stream in poppler-document.cc.o
  "_g_memory_input_stream_get_type", referenced from:
      _poppler_document_new_from_stream in poppler-document.cc.o
  "_g_file_input_stream_get_type", referenced from:
      _poppler_document_new_from_stream in poppler-document.cc.o
      PopplerCachedFileLoader::init(GooString*, CachedFile*)      in
poppler-cached-file-loader.cc.o
  "_g_file_get_type", referenced from:
      _poppler_document_new_from_gfile in poppler-document.cc.o
  "_g_file_is_native", referenced from:
      _poppler_document_new_from_gfile in poppler-document.cc.o
  "_g_file_get_uri", referenced from:
      _poppler_document_new_from_gfile in poppler-document.cc.o
  "_g_file_read", referenced from:
      _poppler_document_new_from_gfile in poppler-document.cc.o
  "_g_input_stream_read", referenced from:
      PopplerCachedFileLoader::init(GooString*, CachedFile*)      in
poppler-cached-file-loader.cc.o
      PopplerCachedFileLoader::load(std::vector<_ByteRange,
std::allocator<_ByteRange> > const&, CachedFileWriter*)in
poppler-cached-file-loader.cc.o
      PopplerInputStream::fillBuf()      in poppler-input-stream.cc.o
  "_g_file_input_stream_query_info", referenced from:
      PopplerCachedFileLoader::init(GooString*, CachedFile*)      in
poppler-cached-file-loader.cc.o
  "_g_file_info_get_size", referenced from:
      PopplerCachedFileLoader::init(GooString*, CachedFile*)      in
poppler-cached-file-loader.cc.o
  "_g_seekable_seek", referenced from:
      PopplerCachedFileLoader::load(std::vector<_ByteRange,
std::allocator<_ByteRange> > const&, CachedFileWriter*)in
poppler-cached-file-loader.cc.o
      PopplerInputStream::close()      in poppler-input-stream.cc.o
      PopplerInputStream::setPos(unsigned int, int)in poppler-input-stream.cc.o
      PopplerInputStream::reset()      in poppler-input-stream.cc.o
  "_g_seekable_tell", referenced from:
      PopplerInputStream::setPos(unsigned int, int)in poppler-input-stream.cc.o
      PopplerInputStream::reset()      in poppler-input-stream.cc.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [glib/libpoppler-glib.8.6.0.dylib] Error 1
make[1]: *** [glib/CMakeFiles/poppler-glib.dir/all] Error 2
make: *** [all] Error 2</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>