Created attachment 76677 [details] 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
Thanks for your report and the patch. I committed it to the poppler-0.22 branch, so it will be availabe in >= 0.22.3.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.