Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Emacs' configure script tries to detect the presence (and version) of libjpeg by grepping output of preprocessor, given this simple C source:
~~~
#include <jpeglib.h>
version=JPEG_LIB_VERSION
~~~
So far, preprocessors were cooperating nicely, giving output like this one (gcc -E <file>):
~~~
...
# 2 "t.c" 2
version=62
~~~
With gcc 7, shipped with Developer Toolset, preprocessor's output slightly changed, splitting the expression to multiple lines:
~~~
...
# 2 "./t.c" 2
# 3 "./t.c"
version=
# 3 "./t.c" 3 4
62
~~~
This leads to configure printing "WARNING: libjpeg found, but not version 6b or later", and setting HAVE_JPEG=no. Build process then fails with:
configure:12887: 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
Version-Release number of selected component (if applicable):
emacs-24.3-19.el7_3
gcc-4.8.5-11.el7.x86_64
devtoolset-7-gcc-7.2.1-1.el7.x86_64
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
I don't know whether it should or shouldn't. Personally, I think it should, at least some day, since gcc-7 is now part of Red Hat's Developer Toolset, but I'm no PM. In this bug, I simply report it's not possible to rebuild Emacs with gcc7. We use "rebuild Emacs" as one of our real-world tests of binutils package, given the complex process of building an Emacs binary, and when testing the new release of Developer Toolset, the build process failed.
Glenn, thanks so much for the pointer! Will the patch that you linked work also with gcc-4.7, or gcc-5+ only? It's kind of hard to say looking at the patch.
Created attachment 1326539[details]
patch
This patch changes configure directly, as we don't run autoconf during the build process. I think that it's still pretty readable.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:3166
Description of problem: Emacs' configure script tries to detect the presence (and version) of libjpeg by grepping output of preprocessor, given this simple C source: ~~~ #include <jpeglib.h> version=JPEG_LIB_VERSION ~~~ So far, preprocessors were cooperating nicely, giving output like this one (gcc -E <file>): ~~~ ... # 2 "t.c" 2 version=62 ~~~ With gcc 7, shipped with Developer Toolset, preprocessor's output slightly changed, splitting the expression to multiple lines: ~~~ ... # 2 "./t.c" 2 # 3 "./t.c" version= # 3 "./t.c" 3 4 62 ~~~ This leads to configure printing "WARNING: libjpeg found, but not version 6b or later", and setting HAVE_JPEG=no. Build process then fails with: configure:12887: 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 Version-Release number of selected component (if applicable): emacs-24.3-19.el7_3 gcc-4.8.5-11.el7.x86_64 devtoolset-7-gcc-7.2.1-1.el7.x86_64 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: