Bug 80271
Summary: | Error: $LANG contains an unknown character set when compiling a Motif Application with OpenMotif 2.1.30 and Metrolink Motif 1.2.4/2.01 | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | John Schaad <jgschaad> |
Component: | openmotif | Assignee: | Thomas Woerner <twoerner> |
Status: | CLOSED UPSTREAM | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | jgschaad |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.bpa.gov/ | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-03-04 01:39:39 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
John Schaad
2002-12-23 18:21:49 UTC
how is this a kernel bug ? How is this a kernel bug?.... I do not know... I have no idea what component it is related to, so I had to guess...in order to submit the bugzilla form..... (the form says to guess, if I do not know) The problem started to appear with the Redhat 7.3 distribution, and tests have shown it to also appear with the 8.0 distribution You would know more about it than I would.... 1) What does $LANG contain? 2) The links on your web-page are broken. "------- Additional Comments From twoerner 2003-01-02 09:06 -------" 1) What does $LANG contain? I do not know..... I think it is some library in the Linux distribution that is accessed by the Motif compiler. 2) The links on your web-page are broken. Sorry about that. The file names for those few links changed when I came up with versions optimized for Standard 8x11-inch Letter Paper, and other versions for A4 - Metric Paper (for which I still have to add the links). If you access the main FTP site using "gftp" or "wsftp", instead of a web brower, you will see all of the files available for download. ftp://ftp.bpa.gov/downloads/software Please have a look at openmotif-2.2.2-13 in rawhide - uil works for me, now. This Error applies to both Redhat Linux 8.0 and 7.3 distributions: Here is the solution: SUMMARY OF SOLUTION FOR UIL COMPILE ERROR UNDER REDHAT LINUX 7.3 AND 8.0: GUI UIL Compile Errors for IPF-3.27 and 3.31 under both Redhat 7.3 and 8.0: I found the clues as to what went wrong when Redhat advanced to versions 7.3 and 8.0. The compile error stated something to the effect that: "$LANG contains an unknown character set" As a result, the UIL compilation fails. I made some discoveries; When I do the command, "man $LANG" I get the following for the various versions of Redhat Linux: RH 5.2: no entry for en_US RH 6.0: no entry for en_US RH 6.1: no entry for en_US RH 6.2: no entry for en_US RH 7.0: no entry for en_US RH 7.1: no entry for en_US RH 7.2: no entry for en_US RH 7.3: no entry for en_US.iso885915 RH 8.0: no entry for en_US.UTF-8 When the particular RH Linux Distribution default value for $LANG was changed from "en_US" to some other variation of "en_US with an extension", the GUI UIL compile fails for all versions of Motif that I have tested. When I do "updatedb" and then "locate" for "en_US", I see that there is a whole mix of different "defaults" in various locations, which are either "en_US" or in some places, one of the variations of "en_US with an extension" of some kind, such as en_US.iso885915 or en_US.UTP-8. So, it appears that if there is some way to translate or link the value for $LANG to "en_US" instead of the default Redhat Distribution Version value, the UIL compile might work correctly. Apparently, the Motif 1.2.4 and also the latest OpenMotif 2.1.30 and 2.2.x, all depend on the value of $LANG being "en_US", and not something else, for the compilation of the IPF GUI. Then, I did some additional testing and made some discoveries: Redhat 7.3: The only thing needed was: "csh", then "setenv LANG en_US". However, I had to stay in the csh shell to successfully compile the GUI/GUI.UIL with "make -f gui.make". If I went back to the bash shell, it would revert to the original Redhat setting for $LANG, and it would not work. I had been unable to find a successful way, so far to set LANG to "en_US"using .bash_profile or adding a command to the Makefile. All the rest compiled with no errors. Redhat 7.3 has gcc 2.96-110. Redhat 8.0: Using "csh", then "setenv LANG en_US", resulted in successfully compiling the GUI/GUI.UIL with "make -f gui.make". The rest compiled with other errors that will have to be fixed in some other way. Redhat 8.0 has gcc 3.2-7 instead of gcc 2.96-xxx. It appears that there are major differences between gcc 2.96-110 and gcc 3.2-7, resulting in additional required fixes. After reading "man env" and "info env", I learned that the following syntax would be correct for this case: Replace the command "make -f gui.make" with "env LANG=en_US make -f gui.make" This redefines the environment variable only for that command. Within the file, gui.make, modify the UIL compile command (revisions preceed first $ sign). This redefines the environment variable, permanently, as part of the make file. # # new rule for compiling uil files under Redhat 7.3 and 8.0: # add "env LANG=en_US " at the beginning of the UIL command line. # .uil.uid: env LANG=en_US $(UIL) $(UILFLAGS) $(UILINC) -o $*.uid $< |