Bug 75233 - GISCAN Poppler-0.18.gir gets a link error on 'hypot@@GLIBC_2.2.5'
Summary: GISCAN Poppler-0.18.gir gets a link error on 'hypot@@GLIBC_2.2.5'
Alias: None
Product: poppler
Classification: Unclassified
Component: glib frontend (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
Depends on:
Reported: 2014-02-20 00:03 UTC by William Bader
Modified: 2018-08-21 10:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description William Bader 2014-02-20 00:03:00 UTC
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.

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
Comment 1 GitLab Migration User 2018-08-21 10:57:24 UTC
-- 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.