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: Re: Unable to find libgif/libungif on RHEL 6 Date: Thu, 10 Sep 2015 05:14:16 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113dc94c3e1864051f5dacf6 X-Trace: ger.gmane.org 1441862106 24276 80.91.229.3 (10 Sep 2015 05:15:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2015 05:15:06 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 10 07:14:53 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 1ZZuCA-0002l8-BX for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 07:14:50 +0200 Original-Received: from localhost ([::1]:47029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZuC9-0004yy-AF for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 01:14:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZuBo-0004vM-0l for emacs-devel@gnu.org; Thu, 10 Sep 2015 01:14:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZuBm-0006IA-Jh for emacs-devel@gnu.org; Thu, 10 Sep 2015 01:14:27 -0400 Original-Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:32795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZuBm-0006I5-EA for emacs-devel@gnu.org; Thu, 10 Sep 2015 01:14:26 -0400 Original-Received: by oixx17 with SMTP id x17so18458540oix.0 for ; Wed, 09 Sep 2015 22:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=atPlDofO6ey/J2XQvaLQgLl9Z/3lqDUJTRVLgJ2bKug=; b=vsneV0Mh0/Qu9AmQK3jEwxyyJkotHZGC7gUMuIV3YMmH6AtystiVntjm/xg1c1rqRV AImQtQAvLdybwQmj+zcVreFMmJZz7pxAqdq7l+chnrKzs+f9HJBu/MkcqazddJHFHqKC +ZAXremzZC4XpyMzgmEI4LPmHrsL4lqRvGc5yyre3iWTIcj6x3lZegOJn6itQsFzmPBM 42ywOinoVW0v9H2OBLiqdcpFy3PmifNgYwvyJ1EyMl+ImhdGk0f0n1705NUQbGYTepbE fnD/uQzPXJTRz1qMH2Hg6QPiPeYlDZN2dPXpSCPujHMaPHmI96x7ismjH58vqy9l39x4 PF5w== X-Received: by 10.202.72.196 with SMTP id v187mr29175643oia.134.1441862065721; Wed, 09 Sep 2015 22:14:25 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::232 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:189791 Archived-At: --001a113dc94c3e1864051f5dacf6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I forgot to mention one more thing.. I also set CPPFLAGS=3D"-fgnu89-inline" and CFLAGS=3D"-I/home/kmodi/usr_local/6/include" in the ./configure line. Here's more info from the config.log configure:14946: checking gif_lib.h usability configure:14946: gcc -std=3Dgnu99 -c -I/home/kmodi/usr_local/6/include -pthread -I/home/kmodi/usr_local/6/include/libpng12 -I/home/kmodi/usr_local/6/include/cairo -I/home/kmodi/usr_local/6/include/glib-2.0 -I/home/kmodi/usr_local/6/lib/glib-2.0/include -I/usr/include/freetype2 -I/home/kmodi/usr_local/6/include/libpng12 -I/cad/WORK/apps/gnu/linux/x86_64/6/include/pixman-1 -I/usr/include/librsvg-2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -fgnu89-inline conftest.c >&5 configure:14946: $? =3D 0 configure:14946: result: yes configure:14946: checking gif_lib.h presence configure:14946: gcc -std=3Dgnu99 -E -fgnu89-inline conftest.c configure:14946: $? =3D 0 configure:14946: result: yes configure:14946: checking for gif_lib.h configure:14946: result: yes configure:14950: checking for GifMakeMapObject in -lgif configure:14975: gcc -std=3Dgnu99 -o conftest -I/home/kmodi/usr_local/6/include -pthread -I/home/kmodi/usr_local/6/include/libpng12 -I/home/kmodi/usr_local/6/include/cairo -I/home/kmodi/usr_local/6/include/glib-2.0 -I/home/kmodi/usr_local/6/lib/glib-2.0/include -I/usr/include/freetype2 -I/home/kmodi/usr_local/6/include/libpng12 -I/cad/WORK/apps/gnu/linux/x86_64/6/include/pixman-1 -I/usr/include/librsvg-2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -fgnu89-inline conftest.c -lgif -lX11 >&5 /usr/bin/ld: cannot find -lgif On Thu, Sep 10, 2015 at 12:58 AM Kaushal Modi wrote: > 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 t= he > 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 configur= e > 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 GT= K2 > X11" > > Can someone please help with what I am missing here? Has anyone faced thi= s > problem and successfully resolved it? > > Thanks. > --001a113dc94c3e1864051f5dacf6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I forgot to mention one more thing.. I also set CPPFL= AGS=3D"-fgnu89-inline" and CFLAGS=3D"-I/home/kmodi/usr_local/6/include"=C2=A0<= /span>in the ./configure l= ine.

Here's more info from the config.log
configure:14946: checking gif_lib.h usability
configure:14946: gcc -std=3Dgnu99 -c =C2=A0-I/home/kmodi/usr_local/6/inc= lude =C2=A0-pthread -I/home/kmodi/usr_local/6/include/libpng12 -I/home/kmod= i/usr_local/6/include/cairo -I/home/kmodi/usr_local/6/include/glib-2.0 -I/h= ome/kmodi/usr_local/6/lib/glib-2.0/include -I/usr/include/freetype2 -I/home= /kmodi/usr_local/6/include/libpng12 -I/cad/WORK/apps/gnu/linux/x86_64/6/inc= lude/pixman-1 -I/usr/include/librsvg-2 -I/usr/include/gdk-pixbuf-2.0 -I/usr= /include/freetype2 =C2=A0 =C2=A0 -fgnu89-inline conftest.c >&5
=
configure:14946: $? =3D 0
configure:14946: result: yes
=
configure:14946: checking gif_lib.h presence
configure:14946= : gcc -std=3Dgnu99 -E =C2=A0 =C2=A0-fgnu89-inline conftest.c
conf= igure:14946: $? =3D 0
configure:14946: result: yes
conf= igure:14946: checking for gif_lib.h
configure:14946: result: yes<= /div>
configure:14950: checking for GifMakeMapObject in -lgif
configure:14975: gcc -std=3Dgnu99 -o conftest =C2=A0-I/home/kmodi/usr_loca= l/6/include =C2=A0-pthread -I/home/kmodi/usr_local/6/include/libpng12 -I/ho= me/kmodi/usr_local/6/include/cairo -I/home/kmodi/usr_local/6/include/glib-2= .0 -I/home/kmodi/usr_local/6/lib/glib-2.0/include -I/usr/include/freetype2 = -I/home/kmodi/usr_local/6/include/libpng12 -I/cad/WORK/apps/gnu/linux/x86_6= 4/6/include/pixman-1 -I/usr/include/librsvg-2 -I/usr/include/gdk-pixbuf-2.0= -I/usr/include/freetype2 =C2=A0 =C2=A0 -fgnu89-inline =C2=A0 conftest.c -l= gif =C2=A0-lX11 =C2=A0 >&5=C2=A0
/usr/bin/ld: cannot find = -lgif


On Thu, Sep 10, 2015 at 12:58 AM Kaushal Modi <kaushal.modi@gmail.com> wrote:
=
Hi,

The = OS at my work recently upgraded from RHEL 5 to RHEL 6 and I needed to rebui= ld my emacs. I am building using the latest version from the git master bra= nch.

The builds on RHEL 5 were smooth.
<= br>
But on RHEL 6, I need to pass the --with-gif=3Dno option.

I used "/home/kmodi/usr_local/6" as pr= efix when installing giflib.

Here are the th= ings I ensured for a clean build:
- Use "make bootstrap"= ; (just the ./configure call in there is modified with my custom --prefix a= nd 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).=C2=A0
=C2=A0 - LD_LIBRARY_PATH contained ""/home/kmodi/usr_loc= al/6/lib"=C2=A0
=C2=A0 - PKG_CONFIG_PATH contained "&qu= ot;/home/kmodi/usr_local/6/lib/pkgconfig"
=C2=A0 - INCLUDE_P= ATH contained ""/home/kmodi/usr_local/6/include"=C2=A0
=
- Installed giflib 5.1.1 (to make this work, I also installed/uninstal= led older versions of this library: giflib 4.1.3, giflib 4.1.4). But config= ure is simply not able to find this lib!
- Also tried setting thi= s env var but that did not help
setenv LIBGIF "-L/home/kmodi= /usr_local/6/lib -lgif "

This is the fail= ure message I get:

checking for TIFFGetVersio= n in -ltiff... yes
checking gif_lib.h usability... yes
= checking gif_lib.h presence... yes
checking for gif_lib.h... yes<= /div>
checking for GifMakeMapObject in -lgif... no
checking f= or EGifPutExtensionLast in -lgif... no
checking for EGifPutExtens= ionLast in -lungif... no
configure: error: The following required= libraries were not found:
=C2=A0 =C2=A0 =C2=A0libgif/libungif

But when I grep for GifMakeMapObject in the in= clude/ 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 ColorC= ount,

FWIW, when I build emacs with the --wi= th-gif=3Dno option, I get the below value when I do C-h v system-configurat= ion-features:

"XPM JPEG TIFF PNG RSVG IM= AGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 F= REETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11"
=
Can someone please help with what I am missing here? Has any= one faced this problem and successfully resolved it?

Thanks.
--001a113dc94c3e1864051f5dacf6--