all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Unable to find libgif/libungif on RHEL 6
Date: Thu, 10 Sep 2015 04:58:44 +0000	[thread overview]
Message-ID: <CAFyQvY2U=OATy++0N6eSH=xXb3AJcrvG-PW++4jTgPnAuPdubA@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2015-09-10  4:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10  4:58 Kaushal Modi [this message]
2015-09-10  5:14 ` Unable to find libgif/libungif on RHEL 6 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFyQvY2U=OATy++0N6eSH=xXb3AJcrvG-PW++4jTgPnAuPdubA@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.