From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Unable to find libgif/libungif on RHEL 6 Date: Thu, 10 Sep 2015 04:58:44 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2ef9abf6427051f5d74ca X-Trace: ger.gmane.org 1441861153 11036 80.91.229.3 (10 Sep 2015 04:59:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2015 04:59:13 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 10 06:59:13 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZtx2-0003A5-62 for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 06:59:12 +0200 Original-Received: from localhost ([::1]:47012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZtx1-00025f-FF for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 00:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZtwn-00025N-3D for emacs-devel@gnu.org; Thu, 10 Sep 2015 00:58:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZtwl-00075X-Qz for emacs-devel@gnu.org; Thu, 10 Sep 2015 00:58:57 -0400 Original-Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:34629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZtwl-00075C-KQ for emacs-devel@gnu.org; Thu, 10 Sep 2015 00:58:55 -0400 Original-Received: by obbda8 with SMTP id da8so25737076obb.1 for ; Wed, 09 Sep 2015 21:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=zjmw7DSS9/1D3hidKv+Qqn/gC4MHml74Hd1dJ4Vjd4w=; b=xlgWVOq7vTzTabeytMlMk7fWj8zUDc7DGoXghYbl0M5RaNaFfd/qxudkcaEy9a6ra/ f0P14nA/oMMNOGj1dQISJKTry8KhgPeIgKpN9NW1EVVZ+ARf0wpmKZmaIwjuYkyaW+9G BGsctUo+VRFlbQJ8an2cDOBRTlYeYclh70k/TS38HphTmgyQexB1R+/hoJUuT+acCfTk 0DIJqiY4x60kwHENBnWxHgOwt0wTncWMvjvHyHo/f3X11GzpD1mDkKTgPZcRk2gOdfKc Bxqz3J3GI7WISdBFLndy3OrYCBdCdDjDqCizloHLBut/xcEMhD6nmysl/f8FYJwdkPbi luAA== X-Received: by 10.182.246.101 with SMTP id xv5mr29502336obc.5.1441861134671; Wed, 09 Sep 2015 21:58:54 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189790 Archived-At: --001a11c2ef9abf6427051f5d74ca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3Dno 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=3Dno) - 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=C2=B2~/usr_local/:6/include> grep "GifMakeMapObject" gif_lib.h 239:extern ColorMapObject *GifMakeMapObject(int ColorCount, FWIW, when I build emacs with the --with-gif=3Dno 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. --001a11c2ef9abf6427051f5d74ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

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

T= he builds on RHEL 5 were smooth.

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

I us= ed "/home/kmodi/usr_local/6" as prefix when installing giflib.

Here are the things I ensured for a clean buil= d:
- Use "make bootstrap" (just the ./configure call in= there is modified with my custom --prefix and now with this --with-gif=3Dn= o)
- Ensure that LD_LIBRARY_PATH, PKG_CONFIG_PATH and INCLUDE_PAT= H are set correctly containing the paths to where I have the giflib install= ed (in the correct order, leftmost).=C2=A0
=C2=A0 - LD_LIBRARY_PA= TH contained ""/home/kmodi/usr_local/6/lib"=C2=A0
= =C2=A0 - PKG_CONFIG_PATH contained ""/home/kmodi/usr_local/6/lib/= pkgconfig"
=C2=A0 - INCLUDE_PATH contained ""/home= /kmodi/usr_local/6/include"=C2=A0
- Installed giflib 5.1.1 (= to make this work, I also installed/uninstalled older versions of this libr= ary: 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
ch= ecking gif_lib.h usability... yes
checking gif_lib.h presence... = yes
checking for gif_lib.h... yes
checking for GifMakeM= apObject in -lgif... no
checking for EGifPutExtensionLast in -lgi= f... no
checking for EGifPutExtensionLast in -lungif... no
<= div>configure: error: The following required libraries were not found:
=C2=A0 =C2=A0 =C2=A0libgif/libungif

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

km=C2=B2~/usr_local/:6/i= nclude> grep "GifMakeMapObject" gif_lib.h
239:extern= ColorMapObject *GifMakeMapObject(int ColorCount,

FWIW, when I build emacs with the --with-gif=3Dno option, I get the b= elow value when I do C-h v system-configuration-features:

"XPM JPEG TIFF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSET= TINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT= _SCROLL_BARS GTK2 X11"

Can someone plea= se help with what I am missing here? Has anyone faced this problem and succ= essfully resolved it?

Thanks.
--001a11c2ef9abf6427051f5d74ca--