Bug 2387747 - Failed to compile CDE
Summary: Failed to compile CDE
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: motif
Version: 43
Hardware: ppc64le
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-12 01:18 UTC by Trung Lê
Modified: 2025-08-25 19:28 UTC (History)
4 users (show)

Fixed In Version: motif-2.3.8-1.fc42 motif-2.3.8-1.fc41
Clone Of:
Environment:
Last Closed: 2025-08-23 01:12:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Trung Lê 2025-08-12 01:18:04 UTC
When I try to compile CDE today with motif-devel 2.3.4 I ran into following error:

/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -std=c90 -std=gnu11 -DHAVE_CONFIG_H -I. -I../../include  -DCDE_INSTALLATION_TOP=/usr/dt -I../../include/Dt -DANSICPP -DMULTIBYTE -DNLS16 -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DUSE_XINERAMA -DUSE_XRENDER -DHAS_PAM_LIBRARY -DHAS_UTEMPTER_LIBRARY  -DI18N_MSG -DMULTIBYTE  -g -O2 -DOPT_TIRPC -I/usr/include/tirpc -Wno-unused-result -Wno-write-strings -fno-strict-aliasing -Wno-format-truncation        -pthread -MT libDtWidget_la-ComboBox.lo -MD -MP -MF .deps/libDtWidget_la-ComboBox.Tpo -c -o libDtWidget_la-ComboBox.lo `test -f 'ComboBox.c' || echo './'`ComboBox.c
libtool: compile:  gcc -std=c90 -std=gnu11 -DHAVE_CONFIG_H -I. -I../../include -DCDE_INSTALLATION_TOP=/usr/dt -I../../include/Dt -DANSICPP -DMULTIBYTE -DNLS16 -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DUSE_XINERAMA -DUSE_XRENDER -DHAS_PAM_LIBRARY -DHAS_UTEMPTER_LIBRARY -DI18N_MSG -DMULTIBYTE -g -O2 -DOPT_TIRPC -I/usr/include/tirpc -Wno-unused-result -Wno-write-strings -fno-strict-aliasing -Wno-format-truncation -pthread -MT libDtWidget_la-ComboBox.lo -MD -MP -MF .deps/libDtWidget_la-ComboBox.Tpo -c ComboBox.c  -fPIC -DPIC -o .libs/libDtWidget_la-ComboBox.o
In file included from ComboBox.c:113:
/usr/include/Xm/DisplayP.h:35:10: fatal error: config.h: No such file or directory
   35 | #include <config.h>
      |          ^~~~~~~~~~

Full log could be found at https://gist.github.com/runlevel5/23ce392ed32fcff1da38c69a33d182ea

This issue has been addressed in motif 2.3.8

Reproducible: Always

Steps to Reproduce:
1. export CC='gcc -std=c90' && ./configure && make -j256
Actual Results:
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -std=c90 -std=gnu11 -DHAVE_CONFIG_H -I. -I../../include  -DCDE_INSTALLATION_TOP=/usr/dt -I../../include/Dt -DANSICPP -DMULTIBYTE -DNLS16 -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DUSE_XINERAMA -DUSE_XRENDER -DHAS_PAM_LIBRARY -DHAS_UTEMPTER_LIBRARY  -DI18N_MSG -DMULTIBYTE  -g -O2 -DOPT_TIRPC -I/usr/include/tirpc -Wno-unused-result -Wno-write-strings -fno-strict-aliasing -Wno-format-truncation        -pthread -MT libDtWidget_la-ComboBox.lo -MD -MP -MF .deps/libDtWidget_la-ComboBox.Tpo -c -o libDtWidget_la-ComboBox.lo `test -f 'ComboBox.c' || echo './'`ComboBox.c
libtool: compile:  gcc -std=c90 -std=gnu11 -DHAVE_CONFIG_H -I. -I../../include -DCDE_INSTALLATION_TOP=/usr/dt -I../../include/Dt -DANSICPP -DMULTIBYTE -DNLS16 -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DUSE_XINERAMA -DUSE_XRENDER -DHAS_PAM_LIBRARY -DHAS_UTEMPTER_LIBRARY -DI18N_MSG -DMULTIBYTE -g -O2 -DOPT_TIRPC -I/usr/include/tirpc -Wno-unused-result -Wno-write-strings -fno-strict-aliasing -Wno-format-truncation -pthread -MT libDtWidget_la-ComboBox.lo -MD -MP -MF .deps/libDtWidget_la-ComboBox.Tpo -c ComboBox.c  -fPIC -DPIC -o .libs/libDtWidget_la-ComboBox.o
In file included from ComboBox.c:113:
/usr/include/Xm/DisplayP.h:35:10: fatal error: config.h: No such file or directory
   35 | #include <config.h>

Expected Results:
No error

Additional Information:
According to Motif 2.3.8 CHANGELOG https://sourceforge.net/p/motif/code/ci/c8899ae48254eecc01cc67d15241bc91a7252fdb/ the issue might have been addressed.

Can we please bump to 2.3.8?

Comment 1 Gwyn Ciesla 2025-08-14 18:25:10 UTC
Thank you for letting me know! I somehow missed that 2.3.8 was out, I'll get updates out ASAP.

Comment 2 Fedora Update System 2025-08-14 20:36:56 UTC
FEDORA-2025-2d101b7fb2 (motif-2.3.8-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-2d101b7fb2

Comment 3 Fedora Update System 2025-08-14 20:36:59 UTC
FEDORA-2025-adc4157d01 (motif-2.3.8-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-adc4157d01

Comment 4 Fedora Update System 2025-08-15 01:53:05 UTC
FEDORA-2025-adc4157d01 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-adc4157d01`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-adc4157d01

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-08-15 01:54:06 UTC
FEDORA-2025-2d101b7fb2 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-2d101b7fb2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-2d101b7fb2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Trung Lê 2025-08-19 10:11:36 UTC
The error still persist unfortunately. Which is quite interesting, could it be that the `config.h` somehow is missing even in the upstream version?

Comment 7 Trung Lê 2025-08-22 01:23:35 UTC
the motif 2.3.8 package does not fix the issue. The root issue is that `/usr/include/Xm/config.h` is _not_ included in the package.

Unless there is any particular practice avoiding the inclusion of such header, can we investigate the possibility of generating this confifg.h (HAVE_CONFIG_H flag with autotools) and bundle it with the RPM package?

Comment 8 Trung Lê 2025-08-22 04:43:39 UTC
Alternatively the people who run into this issue could patch the impacted header files with:

#include <cde_config.h>

instead, but I guess it's not the proper way

Comment 9 Fedora Update System 2025-08-23 01:12:29 UTC
FEDORA-2025-adc4157d01 (motif-2.3.8-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2025-08-23 01:31:45 UTC
FEDORA-2025-2d101b7fb2 (motif-2.3.8-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Gwyn Ciesla 2025-08-25 19:28:14 UTC
(In reply to Trung Lê from comment #8)
> Alternatively the people who run into this issue could patch the impacted
> header files with:
> 
> #include <cde_config.h>
> 
> instead, but I guess it's not the proper way

This will likely continue to be needed as compiler flags/settings become more stringent over time.  Lots of missing includes will come out of the woodwork.


Note You need to log in before you can comment on or make changes to this bug.