unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Unable to find libgif/libungif on RHEL 6
@ 2015-09-10  4:58 Kaushal Modi
  2015-09-10  5:14 ` Kaushal Modi
  2015-09-10 10:06 ` Paul Eggert
  0 siblings, 2 replies; 12+ messages in thread
From: Kaushal Modi @ 2015-09-10  4:58 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 2260 bytes --]

Hi,

The OS at my work recently upgraded from RHEL 5 to RHEL 6 and I needed to
rebuild my emacs. I am building using the latest version from the git
master branch.

The builds on RHEL 5 were smooth.

But on RHEL 6, I need to pass the --with-gif=no option.

I used "/home/kmodi/usr_local/6" as prefix when installing giflib.

Here are the things I ensured for a clean build:
- Use "make bootstrap" (just the ./configure call in there is modified with
my custom --prefix and now with this --with-gif=no)
- Ensure that LD_LIBRARY_PATH, PKG_CONFIG_PATH and INCLUDE_PATH are set
correctly containing the paths to where I have the giflib installed (in the
correct order, leftmost).
  - LD_LIBRARY_PATH contained ""/home/kmodi/usr_local/6/lib"
  - PKG_CONFIG_PATH contained ""/home/kmodi/usr_local/6/lib/pkgconfig"
  - INCLUDE_PATH contained ""/home/kmodi/usr_local/6/include"
- Installed giflib 5.1.1 (to make this work, I also installed/uninstalled
older versions of this library: giflib 4.1.3, giflib 4.1.4). But configure
is simply not able to find this lib!
- Also tried setting this env var but that did not help
setenv LIBGIF "-L/home/kmodi/usr_local/6/lib -lgif "

This is the failure message I get:

checking for TIFFGetVersion in -ltiff... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
checking for GifMakeMapObject in -lgif... no
checking for EGifPutExtensionLast in -lgif... no
checking for EGifPutExtensionLast in -lungif... no
configure: error: The following required libraries were not found:
     libgif/libungif

But when I grep for GifMakeMapObject in the include/ dir, I see that it's
there in gif_lib.h:

km²~/usr_local/:6/include> grep "GifMakeMapObject" gif_lib.h
239:extern ColorMapObject *GifMakeMapObject(int ColorCount,

FWIW, when I build emacs with the --with-gif=no option, I get the below
value when I do C-h v system-configuration-features:

"XPM JPEG TIFF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2
X11"

Can someone please help with what I am missing here? Has anyone faced this
problem and successfully resolved it?

Thanks.

[-- Attachment #2: Type: text/html, Size: 2870 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-09-11 14:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10  4:58 Unable to find libgif/libungif on RHEL 6 Kaushal Modi
2015-09-10  5:14 ` Kaushal Modi
2015-09-10 10:06 ` Paul Eggert
2015-09-10 12:15   ` Kaushal Modi
2015-09-10 14:30     ` Paul Eggert
2015-09-10 15:16     ` Stefan Monnier
2015-09-10 15:27       ` Kaushal Modi
2015-09-10 18:36         ` Paul Eggert
2015-09-10 21:11         ` Wolfgang Jenkner
2015-09-11  2:51           ` Kaushal Modi
2015-09-11 12:23             ` Wolfgang Jenkner
2015-09-11 14:04               ` Kaushal Modi

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).