1753734 Members
4554 Online
108799 Solutions
New Discussion юеВ

Message Catalogs

 
SOLVED
Go to solution
Jayesh shah
Frequent Advisor

Message Catalogs

Hi All,
Does anyone know what are message catalogs and why am i getting the
following errors:

==================================================================================================================================

/ha/be_sam/11.11_prodoff//opt/ansic/bin/c89 -c -I../h +DA1.1 +DS1.1 -O
+Onolimit -UDEBUG -DNDEBUG -DNLS -DIO_CONV -DV4FS -D_REENTRANT
-Dhp9000s700 -D__hp9000s700 -Dhp9000s800 -D__hp9000s800 -D_WSIO
-DIO_CONV -DV4FS -Wp,-H256000
-I/ha/be_sam/11.11_prodoff//opt/triton4/include
-I/ha/be_sam/11.11_prodoff//usr/obam/include -I../.. -I../../h
-tp,/ha/be_sam/11.11_prodoff//opt/langtools/lbin/cpp.ansi -D_HPUX_SOURCE
tcl_cruncher.c -o
../../prodoff/intermed/tool.tcl_cruncher/tcl_cruncher.o

cc: warning 487: Possibly incorrect message catalog.
cpp: warning 2021: Possibly incorrect message catalog.
cc: warning 422: Unknown option "F" ignored.
cc: warning 422: Unknown option "t" ignored.
cc: warning 422: Unknown option "c" ignored.
cc: warning 422: Unknown option "l" ignored.
cc: warning 422: Unknown option "_" ignored.
cc: warning 422: Unknown option "c" ignored.
cc: error 2180: Bad alignment specifier for "+u" option. Range 1-2.
*** Error exit code 1

Stop.
======================================================================================================================================



Regards,
Jayesh shah


3 REPLIES 3
Rita C Workman
Honored Contributor

Re: Message Catalogs

Well...it is possible that someone has used the catopen() or maybe getcat(). This is a function that opens a message catalog. Now the requester would want to define the path (NLSPATH) for themselves...but let's say they define a wrong path or no path, the result might be that catopen() would default to the system-wide default path; or if the default is affected by LC_MESSAGES if the value of oflag is NL_CAT_LOCALE. If the value of oflag is zero, the default is affected by the environment variable LANG. Check the environ (5) for details.
A message catalog descriptor remains valid in a process until the process closes it, or until a successful call to one of the exec() functions. A change in the setting of the LC_MESSAGES category may invalidate existing open catalogs.

Hope that helps or at least gives you an idea to check out..
Regards,
Rit
Jayesh shah
Frequent Advisor

Re: Message Catalogs

The actual problem is this:
I am building 11.11 version of the product on 10.20 machine.
I have set the Build environment appropriately.
The NLS messages should be picked from the build environment
Instead it looks,it is taking from the default location and that is 10.20 message catalog.

What should I do.

Any info on this would be appreciated.

Regards,
Jayesh
Rita C Workman
Honored Contributor
Solution

Re: Message Catalogs

You may need to define the NLSPATH in your environment.

Take a look at the manpage for environ(5) and it will explain this for you.

Regards,
Rita