<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 --- - poppler 0.20.5 fails to build with static libraries"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=61289">61289</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>poppler 0.20.5 fails to build with static libraries
          </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>alanh@fairlite.co.uk
          </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>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm on a system which doesn't support shared libraries so everything it linked
statically, but poppler fails to build as it doesn't pick up the static library
dependency of libfontconfig which relies on libxml2.a and libiconv.a.

As shown here....

Scanning dependencies of target poppler
[ 71%] Built target poppler
Scanning dependencies of target pdfdetach
Linking CXX executable pdfdetach
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1ca): undefined reference to
`_XML_GetCurrentLineNumber'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x22c): undefined reference to
`_XML_GetCurrentLineNumber'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x14c4): undefined reference
to `_XML_ParserCreate'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1508): undefined reference
to `_XML_SetUserData'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1518): undefined reference
to `_XML_SetDoctypeDeclHandler'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1528): undefined reference
to `_XML_SetElementHandler'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x153a): undefined reference
to `_XML_SetCharacterDataHandler'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1542): undefined reference
to `_XML_GetBuffer'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x154e): undefined reference
to `_XML_ParseBuffer'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x15b2): undefined reference
to `_XML_ParserFree'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x185e): undefined reference
to `_XML_GetErrorCode'
/usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1866): undefined reference
to `_XML_ErrorString'
/usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x20c4): undefined
reference to `_libiconv_open'
/usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x21d4): undefined
reference to `_libiconv'
/usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x22fa): undefined
reference to `_libiconv_close'
/usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x29bc): undefined
reference to `_libiconv_close'
/usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x2c12): undefined
reference to `_libiconv_close'
collect2: ld returned 1 exit status
make[2]: *** [utils/pdfdetach] Error 1
make[1]: *** [utils/CMakeFiles/pdfdetach.dir/all] Error 2
make: *** [all] Error 2

I can test a patch if anyone can direct me on the correct way to patch the
CMake build system.

Thanks!</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>