GNU bug report logs - #20124
Building emacs and libjpeg not found on Fedora 22

Previous Next

Package: emacs;

Reported by: Petr Hracek <phracek <at> redhat.com>

Date: Tue, 17 Mar 2015 09:48:01 UTC

Severity: normal

Tags: moreinfo

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20124 in the body.
You can then email your comments to 20124 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Tue, 17 Mar 2015 09:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Petr Hracek <phracek <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 17 Mar 2015 09:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Petr Hracek <phracek <at> redhat.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Building emacs and libjpeg not found on Fedora 22
Date: Tue, 17 Mar 2015 10:47:10 +0100
I am trying to build emacs with following parameters in configuration 
script.
./configure --build=x86_64-redhat-linux-gnu 
--host=x86_64-redhat-linux-gnu --program-prefix= 
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr 
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib 
--mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif 
--with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm 
--with-x-toolkit=gtk3 --with-gpm=no

It fails with:
configure: error: The following required libraries were not found:
     libjpeg
Maybe some development libraries/packages are missing?
If you don't want to link with them give
     --with-jpeg=no
as options to configure

I have installed following libjpeg versions:
libjpeg-turbo-1.4.0-1.fc22
libjpeg-turbo-devel-1.4.0-1.fc22.
(http://koji.fedoraproject.org/koji/buildinfo?buildID=605282)

The first package delivers SO libraries like so.62.0
second one delivers headers and libjpeg.so library

Do you have any idea where could be a problem?

Greetings
Petr

-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek <at> redhat.com





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Tue, 17 Mar 2015 09:59:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Petr Hracek <phracek <at> redhat.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#20124: Building emacs and libjpeg not found on Fedora 22
Date: Tue, 17 Mar 2015 10:57:44 +0100
[Message part 1 (text/plain, inline)]
On 03/17/2015 10:47 AM, Petr Hracek wrote:
> I am trying to build emacs with following parameters in configuration 
> script.
> ./configure --build=x86_64-redhat-linux-gnu 
> --host=x86_64-redhat-linux-gnu --program-prefix= 
> --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr 
> --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
> --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 
> --libexecdir=/usr/libexec --localstatedir=/var 
> --sharedstatedir=/var/lib --mandir=/usr/share/man 
> --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg 
> --with-png --with-rsvg --with-tiff --with-xft --with-xpm 
> --with-x-toolkit=gtk3 --with-gpm=no
>
> It fails with:
> configure: error: The following required libraries were not found:
>      libjpeg
> Maybe some development libraries/packages are missing?
> If you don't want to link with them give
>      --with-jpeg=no
> as options to configure
>
> I have installed following libjpeg versions:
> libjpeg-turbo-1.4.0-1.fc22
> libjpeg-turbo-devel-1.4.0-1.fc22.
> (http://koji.fedoraproject.org/koji/buildinfo?buildID=605282)
>
> The first package delivers SO libraries like so.62.0
> second one delivers headers and libjpeg.so library
>
> Do you have any idea where could be a problem?
>
> Greetings
> Petr
>
I have to mention that in libjpeg-turbo.spec is requires like:
%package devel
Summary:        Headers for the libjpeg-turbo library
Obsoletes:      libjpeg-devel < 6b-47
Provides:       libjpeg-devel = 6b-47%{?dist}
%if "%{?_isa}" != ""
Provides:       libjpeg-devel%{_isa} = 6b-47%{?dist}
%endif
Requires:       libjpeg-turbo%{?_isa} = %{version}-%{release}
Obsoletes:      libjpeg-turbo-static < 1.3.1
Provides:       libjpeg-turbo-static = 1.3.1%{?dist}

But I think that it has nothing to do with emacs.

-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek <at> redhat.com

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Tue, 17 Mar 2015 11:04:01 GMT) Full text and rfc822 format available.

Message #11 received at 20124 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Petr Hracek <phracek <at> redhat.com>
Cc: 20124 <at> debbugs.gnu.org
Subject: Re: bug#20124: Building emacs and libjpeg not found on Fedora 22
Date: Tue, 17 Mar 2015 13:02:45 +0200
> Date: Tue, 17 Mar 2015 10:47:10 +0100
> From: Petr Hracek <phracek <at> redhat.com>
> 
> configure: error: The following required libraries were not found:
>       libjpeg
> Maybe some development libraries/packages are missing?
> If you don't want to link with them give
>       --with-jpeg=no
> as options to configure
> 
> I have installed following libjpeg versions:
> libjpeg-turbo-1.4.0-1.fc22
> libjpeg-turbo-devel-1.4.0-1.fc22.
> (http://koji.fedoraproject.org/koji/buildinfo?buildID=605282)
> 
> The first package delivers SO libraries like so.62.0
> second one delivers headers and libjpeg.so library
> 
> Do you have any idea where could be a problem?

Look in the config.log file for compiler error messages when it probed
for libjpeg availability -- those error messages should give you a
clue about what's wrong with your system configuration.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Tue, 17 Mar 2015 11:36:01 GMT) Full text and rfc822 format available.

Message #14 received at 20124 <at> debbugs.gnu.org (full text, mbox):

From: Petr Hracek <phracek <at> redhat.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20124 <at> debbugs.gnu.org
Subject: Re: bug#20124: Building emacs and libjpeg not found on Fedora 22
Date: Tue, 17 Mar 2015 12:35:23 +0100
[Message part 1 (text/plain, inline)]
On 03/17/2015 12:02 PM, Eli Zaretskii wrote:
>> Date: Tue, 17 Mar 2015 10:47:10 +0100
>> From: Petr Hracek <phracek <at> redhat.com>
>>
>> configure: error: The following required libraries were not found:
>>        libjpeg
>> Maybe some development libraries/packages are missing?
>> If you don't want to link with them give
>>        --with-jpeg=no
>> as options to configure
>>
>> I have installed following libjpeg versions:
>> libjpeg-turbo-1.4.0-1.fc22
>> libjpeg-turbo-devel-1.4.0-1.fc22.
>> (http://koji.fedoraproject.org/koji/buildinfo?buildID=605282)
>>
>> The first package delivers SO libraries like so.62.0
>> second one delivers headers and libjpeg.so library
>>
>> Do you have any idea where could be a problem?
> Look in the config.log file for compiler error messages when it probed
> for libjpeg availability -- those error messages should give you a
> clue about what's wrong with your system configuration.
Well, in config.log I see:

configure:13878: checking for jpeg_destroy_compress in -ljpeg
configure:13903: gcc -o conftest  -DMAIL_USE_LOCKF -O2 -g -pipe -Wall 
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 
-grecord-gcc-switches  -m64 -mtune=generic -pthread 
-I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16  
-fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 
-fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 
-I/usr/include/ImageMagick-6  -pthread -I/usr/include/gtk-3.0 
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include 
-I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz 
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 
-I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libpng16  -Wl,-z,relro 
conftest.c *-ljpeg*  -lXrender -lXft  -lgtk-3 -lgdk-3 -lpangocairo-1.0 
-lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 
-lgobject-2.0 -lglib-2.0 -lMagickWand-6.Q16 -lMagickCore-6.Q16  -lrsvg-2 
-lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo  -lX11 
-lpthread -ldbus-1  >&5
configure:13903: $? = 0
configure:13912: result: yes
*configure:13937: WARNING: libjpeg found, but not version 6b or later*
configure:13993: checking png.h usability

Here -ljpeg is defined but belowe not.
and

configure:14301: checking for EGifPutExtensionLast in -lgif
configure:14326: gcc -o conftest  -DMAIL_USE_LOCKF -O2 -g -pipe -Wall 
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 
-grecord-gcc-switches  -m64 -mtune=generic -pthread 
-I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16  
-fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 
-fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 
-I/usr/include/ImageMagick-6  -pthread -I/usr/include/gtk-3.0 
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include 
-I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz 
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 
-I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/freetype2 -I/usr/include/libpng16  -Wl,-z,relro 
conftest.c -lgif  -lXrender -lXft  -lgtk-3 -lgdk-3 -lpangocairo-1.0 
-lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 
-lgobject-2.0 -lglib-2.0  -lMagickWand-6.Q16 -lMagickCore-6.Q16  
-lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 
-lcairo  -lX11 -lpthread   -ldbus-1 >&5
configure:14326: $? = 0
configure:14335: result: yes
configure:14421: error: The following required libraries were not found:
     libjpeg
Maybe some development libraries/packages are missing?
If you don't want to link with them give
     --with-jpeg=no
as options to configure


Emacs build log is in the attachment.

-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek <at> redhat.com

[emacs-build-log.tar.gz (application/gzip, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Tue, 17 Mar 2015 12:38:02 GMT) Full text and rfc822 format available.

Message #17 received at 20124 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Petr Hracek <phracek <at> redhat.com>
Cc: 20124 <at> debbugs.gnu.org
Subject: Re: bug#20124: Building emacs and libjpeg not found on Fedora 22
Date: Tue, 17 Mar 2015 14:37:20 +0200
> Date: Tue, 17 Mar 2015 12:35:23 +0100
> From: Petr Hracek <phracek <at> redhat.com>
> CC: 20124 <at> debbugs.gnu.org
> 
> configure:13903: $? = 0
> configure:13912: result: yes
> *configure:13937: WARNING: libjpeg found, but not version 6b or later*
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Isn't the above self-explanatory?

the configure script looks at the value of JPEG_LIB_VERSION it finds
in jpeglib.h header file, so I'm guessing either your libjpeg
installation is too old, or you have an old jpeglib.h header somewhere
where the compiler picks it ahead of the correct one.




Added indication that bug 20124 blocks19759 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 17 Mar 2015 15:56:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Wed, 18 Mar 2015 06:42:02 GMT) Full text and rfc822 format available.

Message #22 received at 20124 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Petr Hracek <phracek <at> redhat.com>
Cc: 20124 <at> debbugs.gnu.org
Subject: Re: Building emacs and libjpeg not found on Fedora 22
Date: Tue, 17 Mar 2015 23:41:34 -0700
I guess the following part of the 'configure' script isn't working as expected:

if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :

The call to $EGREP is failing, so the 'then' part doesn't execute.  $EGREP 
should succeed here.  Please try to figure that out, e.g., by replacing the 
above with something like the following:

echo "$ac_cpp conftest.$ac_ext" >test1.out
echo "$EGREP 'version= *(6[2-9]|[7-9][0-9])'" >test2.out
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | tee test3.out |
  $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :

and then re-run ./configure and inspect test1.out, test2.out, test3.out to see 
if they can help you figure out why $EGREP is failing here.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Wed, 18 Mar 2015 06:49:02 GMT) Full text and rfc822 format available.

Message #25 received at 20124 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Petr Hracek <phracek <at> redhat.com>, 20124 <at> debbugs.gnu.org
Subject: Re: bug#20124: Building emacs and libjpeg not found on Fedora 22
Date: Wed, 18 Mar 2015 02:48:04 -0400
IMO the suggestion from http://debbugs.gnu.org/18552#14 is simpler:

echo -e "#include <jpeglib.h>\nversion=JPEG_LIB_VERSION" | cpp | grep version=




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Wed, 18 Mar 2015 12:30:05 GMT) Full text and rfc822 format available.

Message #28 received at 20124 <at> debbugs.gnu.org (full text, mbox):

From: Petr Hracek <phracek <at> redhat.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20124 <at> debbugs.gnu.org
Subject: Re: bug#20124: Building emacs and libjpeg not found on Fedora 22
Date: Wed, 18 Mar 2015 13:29:35 +0100
On 03/17/2015 01:37 PM, Eli Zaretskii wrote:
>> Date: Tue, 17 Mar 2015 12:35:23 +0100
>> From: Petr Hracek<phracek <at> redhat.com>
>> CC:20124 <at> debbugs.gnu.org
>>
>> configure:13903: $? = 0
>> configure:13912: result: yes
>> *configure:13937: WARNING: libjpeg found, but not version 6b or later*
>                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Isn't the above self-explanatory?
>
> the configure script looks at the value of JPEG_LIB_VERSION it finds
> in jpeglib.h header file, so I'm guessing either your libjpeg
> installation is too old, or you have an old jpeglib.h header somewhere
> where the compiler picks it ahead of the correct one.
I know that it is self-explanatory but my jpeglib.h header file has 
JPEG_LIB_VERSION = 62.
No I don't have neither jpeglib.h nor libjpeg-turbo package old.

But I am going to find if there could not be a problem with emacs 
configure script.
Several times there is mentioned conftest.$ac. I am going to test it.
I think that emacs configure scripts does not work well some times.

-- 
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email:phracek <at> redhat.com





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Mon, 23 Mar 2015 07:25:02 GMT) Full text and rfc822 format available.

Message #31 received at 20124 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Petr Hracek <phracek <at> redhat.com>
Cc: 20124 <at> debbugs.gnu.org
Subject: Re: bug#20124: Building emacs and libjpeg not found on Fedora 22
Date: Mon, 23 Mar 2015 00:24:40 -0700
> emacs configure scripts does not work well some times.

Yes, that's most likely the problem here.  Have you tried my suggestion?

http://bugs.gnu.org/20124#22




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20124; Package emacs. (Mon, 23 Mar 2015 16:19:01 GMT) Full text and rfc822 format available.

Message #34 received at 20124 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Petr Hracek <phracek <at> redhat.com>, 20124 <at> debbugs.gnu.org
Subject: Re: bug#20124: Building emacs and libjpeg not found on Fedora 22
Date: Mon, 23 Mar 2015 12:18:50 -0400
Note that Andreas has today installed something related to this area:

http://lists.gnu.org/archive/html/emacs-diffs/2015-03/msg00224.html




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 23 Mar 2015 17:38:02 GMT) Full text and rfc822 format available.

Notification sent to Petr Hracek <phracek <at> redhat.com>:
bug acknowledged by developer. (Mon, 23 Mar 2015 17:38:02 GMT) Full text and rfc822 format available.

Message #39 received at 20124-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Petr Hracek <phracek <at> redhat.com>, 20124-done <at> debbugs.gnu.org,
 Andreas Schwab <schwab <at> suse.de>
Subject: Re: bug#20124: Building emacs and libjpeg not found on Fedora 22
Date: Mon, 23 Mar 2015 10:37:14 -0700
Glenn Morris wrote:
> Note that Andreas has today installed something related to this area:

Thanks, Andreas.  I merged that from emacs-24 to master and am marking this bug 
as done.

At some point we should probably stop using AC_EGREP_CPP, as it's too brittle. 
But that can wait.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 Apr 2015 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 15 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.