Discussion:
[omniORB] Invald nativeCharCodeSet ISO-8859-1 and UTF-8
balexander
2006-04-13 03:20:31 UTC
Permalink
I have recently built and installed omniOrb 4.0.7 on my machine (Intel based
Fedora 4). I did not have any problems getting omniOrb to build and install
but I can not get the examples to run. Specifically I am trying to get the
very first echo example to run. I have no problem building it but whenever I
run the executable I get the following:

----
omniORB: ORB_Init failed: Bad parameter (ISO-8859-1) for ORB configuration
option nativeCharCodeSet, reason: Unknown code set name
Caught CORBA::SystemException
omniOrb: Final clean-up
omniOrb: Deleted 0 nil object references and 0 other tracked objects.
omniOrb: Final clean-up completed.
----

I am using the code from the /src/examples/echo/eg1.cc. My echo.idl file is
simply

----
interface Echo {
string echoString(in string msg);
};
----

omniidl parses the file without errors; producing echoSK.cc and echo.hh.

My configuration file is the sample.cfg that came with omniOrb ? but copied
to /etc/omniORB.cfg. I can change the nativeCharCodeSet parameter in that
file to ?UTF-8? (without quotes). The bad parameter line will show UTF-8 but
the error is identical otherwise.

I have changed the configuration file?s traceLevel parameter to 40 (and
uncommented the line) but the program?s output does not change.

Does anyone see what I missed?

Thanks for your help,
-Brian
--
View this message in context: http://www.nabble.com/Invald-nativeCharCodeSet-ISO-8859-1-and-UTF-8-t1440668.html#a3890270
Sent from the OmniORB - User forum at Nabble.com.
Duncan Grisby
2006-04-18 20:31:30 UTC
Permalink
Post by balexander
I have recently built and installed omniOrb 4.0.7 on my machine (Intel based
Fedora 4). I did not have any problems getting omniOrb to build and install
but I can not get the examples to run. Specifically I am trying to get the
very first echo example to run. I have no problem building it but whenever I
----
omniORB: ORB_Init failed: Bad parameter (ISO-8859-1) for ORB configuration
option nativeCharCodeSet, reason: Unknown code set name
This is a sign that the static initialisers in the omniORB library have
not run. Are you statically linking your program? If so, try
dynamically linking it instead.

Do the echo examples built inside the omniORB distribution work? If so,
compare the compiler command lines that they use to what you're using.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Jonathan Biggar
2008-02-05 06:18:22 UTC
Permalink
Post by Duncan Grisby
Post by balexander
I have recently built and installed omniOrb 4.0.7 on my machine (Intel based
Fedora 4). I did not have any problems getting omniOrb to build and install
but I can not get the examples to run. Specifically I am trying to get the
very first echo example to run. I have no problem building it but whenever I
----
omniORB: ORB_Init failed: Bad parameter (ISO-8859-1) for ORB configuration
option nativeCharCodeSet, reason: Unknown code set name
This is a sign that the static initialisers in the omniORB library have
not run. Are you statically linking your program? If so, try
dynamically linking it instead.
BTW, if you really need statically linked binaries, like we did, you can
solve this by adding these options to your link command (exact values
depend on the particular OS/linker you are using and how it mangles
symbols--this example is for gcc and gnu linker on Linux):

-u _omni_CS_8859_1_should_be_linked_but_is_not_ \
-u _omni_CS_UTF_8_should_be_linked_but_is_not_ \
-u _omni_CS_UTF_16_should_be_linked_but_is_not_
--
Jon Biggar
Levanta
***@levanta.com
650-403-7252
Loading...