After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 760442 - Cannot run Epiphany in JHBuild prefix if GD Graphics Library is installed
Cannot run Epiphany in JHBuild prefix if GD Graphics Library is installed
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
git master
Other FreeBSD
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-01-11 07:49 UTC by Ting-Wei Lan
Modified: 2016-01-13 16:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: static link with libgd (696 bytes, patch)
2016-01-13 16:47 UTC, Michael Catanzaro
committed Details | Review

Description Ting-Wei Lan 2016-01-11 07:49:40 UTC
Epiphany requires libgd.so installed in its private directory to start. It uses RUNPATH to add its private directory to the library search path. Unfortunately, there is an unrelated library that is also called libgd.so: https://libgd.github.io/.  As RUNPATH can be overrided by LD_LIBRARY_PATH environment variable, Epiphany will fail to start if an unrelated libgd.so is installed in LD_LIBRARY_PATH.

$ epiphany 
/home/lantw44/gnome/devinstall/bin/epiphany: Undefined symbol "gd_two_lines_renderer_new"

$ ldd `which epiphany` | grep libgd.so
	libgd.so => /usr/local/lib/libgd.so (0x800912000)
Comment 1 Michael Catanzaro 2016-01-11 16:05:22 UTC
Do you have any suggestions?

To be clear, this affects only Epiphany? You can run other applications using GNOME libgd?
Comment 2 Bastien Nocera 2016-01-13 10:30:01 UTC
(In reply to Michael Catanzaro from comment #1)
> Do you have any suggestions?

You forgot to pass "static" to LIBGD_INIT() in configure.ac

> To be clear, this affects only Epiphany? You can run other applications
> using GNOME libgd?

They link statically to libgd.
Comment 3 Michael Catanzaro 2016-01-13 16:45:52 UTC
Thanks.
Comment 4 Michael Catanzaro 2016-01-13 16:47:14 UTC
The following fix has been pushed:
911ccf3 build: static link with libgd
Comment 5 Michael Catanzaro 2016-01-13 16:47:17 UTC
Created attachment 318978 [details] [review]
build: static link with libgd