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 15:27:39 +0000 Message-ID: References: <55F1563F.7000604@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013a14eaf1c4b3051f663d15 X-Trace: ger.gmane.org 1441898883 10563 80.91.229.3 (10 Sep 2015 15:28:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2015 15:28:03 +0000 (UTC) Cc: Paul Eggert , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 10 17:28:01 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 1Za3lY-0001M1-AZ for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 17:28:00 +0200 Original-Received: from localhost ([::1]:49826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za3lX-00062G-N9 for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 11:27:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za3lP-0005vZ-NM for emacs-devel@gnu.org; Thu, 10 Sep 2015 11:27:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Za3lO-00085S-IK for emacs-devel@gnu.org; Thu, 10 Sep 2015 11:27:51 -0400 Original-Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:34676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za3lO-00085D-D4 for emacs-devel@gnu.org; Thu, 10 Sep 2015 11:27:50 -0400 Original-Received: by obbda8 with SMTP id da8so37428583obb.1 for ; Thu, 10 Sep 2015 08:27:50 -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 :cc:content-type; bh=WL2vdKAPKiRKH1USHXZNFpOelmCYij7qribIpZZjKOc=; b=GD6JAxA8QsKDULbhkS4iUc7+Ax6i3AU0eDNpQqdWC6w/YerLOOeQwgrHNfeeIwKcfn KpEweS3aAE47SnA1zxv5WN3R5vW+fNZPkZ6Z9RCw/QDjG8Od8QbyhGnMrfHf6GRpik6N i4bajdOBwHwcJEjWsCpGMUgpaf8AJUQYZMSbeqib8isgaXPrvw8PwNvBRt3Hxc1yGM68 BkdBPFx9158M5nNnu4/m7XwU9nG+3khYiev8ZpaMvdRMJubHp4KscKpSGO14lx4L5/H3 /erRPsSrUhY7Buf5glJdUN291jkigv7GsEjEGHvfS1JJnWkUr1qQ6OCGmDDhloJEhZRZ Q/9Q== X-Received: by 10.60.36.202 with SMTP id s10mr34293427oej.0.1441898869930; Thu, 10 Sep 2015 08:27:49 -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:c01::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:189805 Archived-At: --089e013a14eaf1c4b3051f663d15 Content-Type: text/plain; charset=UTF-8 I just tried the rpm2cpio+cpio approach but that too didn't work. One difference I noticed is that if I build giflib from source, it installs the .so files in lib/. But if I extract from the cpio, they get installed in lib64/ (Note that I had to extract from both giflib rpm and giflib-devel rpm because giflib-devel rpm lib64 simply had symbolic links which are supposed to link to the .so files extracted from the giflib rpm). I updated LD_LIBRARY_PATH to include the new lib64/ dir. That leads me to a question: Just as we have LIBOTF_CFLAGS, LIBOTF_LIBS, can we not have LIBGIF_CFLAGS and LIBGIF_LIBS? I tried setting LIBGIF env var to "-L/path/to/the/lib64 -lgif" before doing ./configure.. but that did not help. Something else is not right in my system.. but at least I am glad I can still build emacs, be it without gif. configure finds the gif_lib.h, I find that GifMakeMapObject reference in that .h but somehow configure thinks that it's not there. My package building fu is limited to this so I cannot debug why configure thinks that GifMakeMapObject is not found in -lgif. On Thu, Sep 10, 2015 at 11:16 AM Stefan Monnier wrote: > > I don't think I can install RPM packages in my $HOME without sudo. Can I? > > Depending what you mean by that, yes, it can be done. > Just unpack the tarball with rpm2cpio+cpio. > > This will typically then require playing with LD_LIBRARY_PATH or > somesuch, tho. > > I've done it in the past and I'm glad I don't need to do any more. > > > Stefan > --089e013a14eaf1c4b3051f663d15 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I just tried the rpm2cpio+cpio approach but that too didn&= #39;t work.
One difference I noticed is that if I build giflib from sou= rce, it installs the .so files in lib/.
But if I extract from the= cpio, they get installed in lib64/ (Note that I had to extract from both g= iflib rpm and giflib-devel rpm because giflib-devel rpm lib64 simply had sy= mbolic links which are supposed to link to the .so files extracted from the= giflib rpm).

I updated LD_LIBRARY_PATH to include= the new lib64/ dir.

That leads me to a question: = Just as we have LIBOTF_CFLAGS, LIBOTF_LIBS, can we not have LIBGIF_CFLAGS a= nd LIBGIF_LIBS?
I tried setting LIBGIF env var to "-L/path/t= o/the/lib64 -lgif"=C2=A0before doing ./configure..=C2=A0but that did not help.

Somethi= ng else is not right in my system.. but at least I am glad I can still buil= d emacs, be it without gif.

configure finds the gi= f_lib.h, I find that GifMakeMapObject reference in that .h but somehow conf= igure thinks that it's not there.

My package b= uilding fu is limited to this so I cannot debug why configure thinks that G= ifMakeMapObject is not found in -lgif.


<= /div>

On Thu, Sep 10, = 2015 at 11:16 AM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> I don't think I can install RPM packages in my $HOME wit= hout sudo. Can I?

Depending what you mean by that, yes, it can be done.
Just unpack the tarball with rpm2cpio+cpio.

This will typically then require playing with LD_LIBRARY_PATH or
somesuch, tho.

I've done it in the past and I'm glad I don't need to do any mo= re.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan
--089e013a14eaf1c4b3051f663d15--