Fedora Account System
Red Hat Associate
Red Hat Customer
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?
Thank you for letting me know! I somehow missed that 2.3.8 was out, I'll get updates out ASAP.
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
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
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.
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.
The error still persist unfortunately. Which is quite interesting, could it be that the `config.h` somehow is missing even in the upstream version?
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?
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
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.
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.
(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.