Compiling 'master/intl/osdep.c' breaks #29

Closed
opened 2026-01-29 22:23:40 +00:00 by claunia · 3 comments
Owner

Originally created by @rdpe on GitHub (May 5, 2020).

It seems gcc automatically enables the __EMX__ macro.
The osdep.c source tries to conditionally include os2compat.c, which is not there.
Could not find os2compat.c in Paul's old repo either.
...?

Originally created by @rdpe on GitHub (May 5, 2020). It seems gcc automatically enables the `__EMX__` macro. The `osdep.c` source tries to conditionally include `os2compat.c`, which is not there. Could not find `os2compat.c` in Paul's old repo either. ...?
Author
Owner

@dmik commented on GitHub (May 6, 2020):

Something is wrong with your configure flags or env or such. No code from intl is built here in our RPM env with configure flags from the instructions. Maybe you need to install gettext-devel so that configure picks it up instead of trying to build its own copy. And check what configure says for you about gettext. Here it says this:

checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... -lintl

And GCC binaries link to intl8.dll which is part of the gettext-libs RPM.

@dmik commented on GitHub (May 6, 2020): Something is wrong with your configure flags or env or such. No code from `intl` is built here in our RPM env with configure flags from the instructions. Maybe you need to install `gettext-devel` so that configure picks it up instead of trying to build its own copy. And check what configure says for you about gettext. Here it says this: ``` checking whether included gettext is requested... no checking for GNU gettext in libc... yes checking for GNU gettext in libintl... yes checking whether to use NLS... yes checking where the gettext function comes from... external libintl checking how to link with libintl... -lintl ``` And GCC binaries link to `intl8.dll` which is part of the `gettext-libs` RPM.
Author
Owner

@rdpe commented on GitHub (May 8, 2020):

Ahh, indeed installing gettext-devel solved the issue.
(It was not installed)

Now, of course one would expect that anyone trying to build a mammoth like gcc-os2
would first upgrade their system to the latest, but I would also argue that installing a
fresh ArcaOS v5.0.4, cloning the repo and pasting the yum line should work.

For that to work, gettext-devel, os2-rpm and gawk should be in the yum line too. (os2-rpm to fix the getbootdrive issue)

Anyway, I'm now more in the direction of #12, which was the spark for trying to build.
Thanks!

@rdpe commented on GitHub (May 8, 2020): Ahh, indeed installing `gettext-devel` solved the issue. (It was not installed) Now, of course one would expect that anyone trying to build a mammoth like `gcc-os2` would first upgrade their system to the latest, but I would also argue that installing a fresh `ArcaOS v5.0.4`, cloning the repo and pasting the `yum` line should work. For that to work, `gettext-devel`, `os2-rpm` and `gawk` should be in the `yum` line too. (`os2-rpm` to fix the `getbootdrive` issue) Anyway, I'm now more in the direction of #12, which was the spark for trying to build. Thanks!
Author
Owner

@dmik commented on GitHub (May 8, 2020):

Ok, closing this.

@dmik commented on GitHub (May 8, 2020): Ok, closing this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bitwiseworks/gcc-os2#29