* bug#20124: Building emacs and libjpeg not found on Fedora 22
@ 2015-03-17 9:47 Petr Hracek
2015-03-17 9:57 ` Petr Hracek
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Petr Hracek @ 2015-03-17 9:47 UTC (permalink / raw)
To: 20124
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@redhat.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#20124: Building emacs and libjpeg not found on Fedora 22
2015-03-17 9:47 bug#20124: Building emacs and libjpeg not found on Fedora 22 Petr Hracek
@ 2015-03-17 9:57 ` Petr Hracek
2015-03-17 11:02 ` Eli Zaretskii
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: Petr Hracek @ 2015-03-17 9:57 UTC (permalink / raw)
To: 20124
[-- Attachment #1: Type: text/plain, Size: 1921 bytes --]
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@redhat.com
[-- Attachment #2: Type: text/html, Size: 3120 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#20124: Building emacs and libjpeg not found on Fedora 22
2015-03-17 9:47 bug#20124: Building emacs and libjpeg not found on Fedora 22 Petr Hracek
2015-03-17 9:57 ` Petr Hracek
@ 2015-03-17 11:02 ` Eli Zaretskii
2015-03-17 11:35 ` Petr Hracek
2015-03-18 6:41 ` Paul Eggert
2015-03-23 7:24 ` Paul Eggert
3 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2015-03-17 11:02 UTC (permalink / raw)
To: Petr Hracek; +Cc: 20124
> Date: Tue, 17 Mar 2015 10:47:10 +0100
> From: Petr Hracek <phracek@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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#20124: Building emacs and libjpeg not found on Fedora 22
2015-03-17 11:02 ` Eli Zaretskii
@ 2015-03-17 11:35 ` Petr Hracek
2015-03-17 12:37 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Petr Hracek @ 2015-03-17 11:35 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 20124
[-- Attachment #1: Type: text/plain, Size: 5386 bytes --]
On 03/17/2015 12:02 PM, Eli Zaretskii wrote:
>> Date: Tue, 17 Mar 2015 10:47:10 +0100
>> From: Petr Hracek <phracek@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@redhat.com
[-- Attachment #2: emacs-build-log.tar.gz --]
[-- Type: application/gzip, Size: 20798 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#20124: Building emacs and libjpeg not found on Fedora 22
2015-03-17 11:35 ` Petr Hracek
@ 2015-03-17 12:37 ` Eli Zaretskii
2015-03-18 12:29 ` Petr Hracek
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2015-03-17 12:37 UTC (permalink / raw)
To: Petr Hracek; +Cc: 20124
> Date: Tue, 17 Mar 2015 12:35:23 +0100
> From: Petr Hracek <phracek@redhat.com>
> CC: 20124@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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#20124: Building emacs and libjpeg not found on Fedora 22
2015-03-17 12:37 ` Eli Zaretskii
@ 2015-03-18 12:29 ` Petr Hracek
0 siblings, 0 replies; 11+ messages in thread
From: Petr Hracek @ 2015-03-18 12:29 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 20124
On 03/17/2015 01:37 PM, Eli Zaretskii wrote:
>> Date: Tue, 17 Mar 2015 12:35:23 +0100
>> From: Petr Hracek<phracek@redhat.com>
>> CC:20124@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@redhat.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#20124: Building emacs and libjpeg not found on Fedora 22
2015-03-17 9:47 bug#20124: Building emacs and libjpeg not found on Fedora 22 Petr Hracek
2015-03-17 9:57 ` Petr Hracek
2015-03-17 11:02 ` Eli Zaretskii
@ 2015-03-18 6:41 ` Paul Eggert
2015-03-18 6:48 ` Glenn Morris
2015-03-23 7:24 ` Paul Eggert
3 siblings, 1 reply; 11+ messages in thread
From: Paul Eggert @ 2015-03-18 6:41 UTC (permalink / raw)
To: Petr Hracek; +Cc: 20124
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#20124: Building emacs and libjpeg not found on Fedora 22
2015-03-17 9:47 bug#20124: Building emacs and libjpeg not found on Fedora 22 Petr Hracek
` (2 preceding siblings ...)
2015-03-18 6:41 ` Paul Eggert
@ 2015-03-23 7:24 ` Paul Eggert
2015-03-23 16:18 ` Glenn Morris
3 siblings, 1 reply; 11+ messages in thread
From: Paul Eggert @ 2015-03-23 7:24 UTC (permalink / raw)
To: Petr Hracek; +Cc: 20124
> 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
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-03-23 17:37 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-17 9:47 bug#20124: Building emacs and libjpeg not found on Fedora 22 Petr Hracek
2015-03-17 9:57 ` Petr Hracek
2015-03-17 11:02 ` Eli Zaretskii
2015-03-17 11:35 ` Petr Hracek
2015-03-17 12:37 ` Eli Zaretskii
2015-03-18 12:29 ` Petr Hracek
2015-03-18 6:41 ` Paul Eggert
2015-03-18 6:48 ` Glenn Morris
2015-03-23 7:24 ` Paul Eggert
2015-03-23 16:18 ` Glenn Morris
2015-03-23 17:37 ` Paul Eggert
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.