I cloned poppler from the git source on 19 Feb 2014. I am building on 64 bit Fedora 17 with the distributed gcc 4.7.2. I can do a normal build without any problem, but if I try a static build with ./configure --enable-static --disable-shared the build fails linking Poppler-0.18.gir. I have the last few lines of the make output below. I think that one of the *.la files needs -lm in its list of dependency_libs. If I continue with "make -i", everything else builds, so it might be related to the rules to build Poppler-0.18.gir. Configuring with "export LDFLAGS=-lm" first gets LIBS=-lm into the top level Makefile but it still gets the link error. Other people have had this error with other packages, so it might be related to libtool or Fedora. https://github.com/alessandrofrancesconi/gimp-plugin-bimp/issues/40 https://github.com/mate-desktop/mate-netspeed/issues/7 William make[4]: Entering directory `/tmp/x/poppler-static/glib' CC poppler-enums.lo CXX poppler-action.lo CXX poppler-date.lo CXX poppler-document.lo CXX poppler-page.lo CXX poppler-attachment.lo CXX poppler-form-field.lo CXX poppler-annot.lo CXX poppler-layer.lo CXX poppler-media.lo CXX poppler-movie.lo CXX poppler-cached-file-loader.lo CXX poppler-input-stream.lo CXX poppler-structure-element.lo CXX poppler.lo CXXLD libpoppler-glib.la GISCAN Poppler-0.18.gir /usr/bin/ld: /tmp/x/poppler-static/poppler/.libs/libpoppler.a(GfxState.o): undefined reference to symbol 'hypot@@GLIBC_2.2.5' /usr/bin/ld: note: 'hypot@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line /lib64/libm.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/tmp/x/poppler-static/glib/tmp-introspectg9Qjn4/Poppler-0.18', '-export-dynamic', '/tmp/x/poppler-static/glib/tmp-introspectg9Qjn4/Poppler-0.18.o', '-L.', 'libpoppler-glib.la', '-pthread', '-Wl,--export-dynamic', '-lgio-2.0', '-lgobject-2.0', '-lgthread-2.0', '-lgmodule-2.0', '-lrt', '-lglib-2.0']' returned non-zero exit status 1 make[4]: *** [Poppler-0.18.gir] Error 1 make[4]: Leaving directory `/tmp/x/poppler-static/glib' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/x/poppler-static/glib' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/x/poppler-static/glib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/x/poppler-static' make: *** [all] Error 2
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/444.
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.