Ticket #35778

Disabling giflib, doesn't

Open Date: 2015-11-25 17:06 Last Update: 2015-11-26 02:14

Reporter:
Owner:
Type:
Status:
Open [Owner assigned]
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

Over on the FontForge Github tracker, a user complains that FontAnvil is linking to X11 and shouldn't: https://github.com/fontforge/fontforge/issues/2580#issuecomment-159393874

On investigation, it appears that it's actually giflib that's linking to X11, and the obvious solution if it's a priority to build without X11, is to build without giflib. If giflib is needed, then its dependencies are needed too and that's not something FontAnvil can control. However, that raises a FontAnvil build-system bug: running configure --without-giflib on a system where giflib is actually installed, seems to build a binary that really does use giflib after all. After running configure --without-giflib and editing the Makefile to remove giflib from the LIBS variable, I confirmed that the resulting FontAnvil did not link to X11.

It appears to me that the build will work properly on a system that really does not have giflib nor X11; it's just using them because they are there. It's also possible that a binary built with giflib might work on a system that does not have X11; just mentioning the shared library in the binary's linkage does not necessarily mean it will really use that library at runtime. The non-functional --without-giflib option is a bug in the FontAnvil build, though.

Ticket History (2/2 Histories)

2015-11-25 17:06 Updated by: mskala
  • New Ticket "Disabling giflib, doesn't" created
2015-11-26 02:14 Updated by: mskala
Comment

Tentative solution in SVN. Probably needs more testing before closing the ticket.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login