Closed Bug 1736830 Opened 3 years ago Closed 3 years ago

<X11/ICE/ICElib.h> and <X11/SM/SMlib.h> are not checked for during configure

Categories

(Firefox Build System :: General, defect, P5)

Firefox 93
defect

Tracking

(firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: herrtimson, Assigned: glandium)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

hey everyone, I noticed this a while ago: when compiling firefox from source with X11 support, the compile will fail unless libICE and libSM headers are available.

Actual results:

the build fails with these errors:

  • /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/toolkit/xre/nsNativeAppSupportUnix.cpp:32:12: fatal error: 'X11/ICE/ICElib.h' file not found
  • /var/tmp/portage/www-client/firefox-93.0/work/firefox-93.0/toolkit/xre/nsNativeAppSupportUnix.cpp:33:12: fatal error: 'X11/SM/SMlib.h' file not found

Expected results:

it seems to my layman eyes that the libs themselve are never used by firefox to link against, but the headers must be present.

So please check for their presence during configure, thank you.

I will provide the full build log later on.

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::General' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox Build System
Priority: -- → P5
Assignee: nobody → mh+mozilla
Attachment #9246975 - Attachment description: Bug 1736830 - Check for libice and libsm. → Bug 1736830 - Check for libice and libsm headers during configure.

Make @depends functions and direct values have the same level of
convenience.

Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/a4d1678f31bb
Be more consistent wrt package_desc in pkg_check_modules. r=firefox-build-system-reviewers,andi
https://hg.mozilla.org/integration/autoland/rev/1845a9bc917b
Check for libice and libsm headers during configure. r=firefox-build-system-reviewers,mhentges,andi
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/e819776339de
Be more consistent wrt package_desc in pkg_check_modules. r=firefox-build-system-reviewers,andi
https://hg.mozilla.org/integration/autoland/rev/14c4c39bc05b
Check for libice and libsm headers during configure. r=firefox-build-system-reviewers,mhentges,andi
Flags: needinfo?(mh+mozilla)
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch

Thank you, this enables a check during configure for the headers. I removed them on purpose, and swiftly got an error about them missing.

Is a backport to firefox-91 possible?

Flags: needinfo?(mh+mozilla)

I'm not super convinced that it's worth it. In most cases, those libs are pulled from installing others. As a matter of fact, the code using those headers was added 5 years ago, and you filed this bug only now.

Flags: needinfo?(mh+mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: