Problem with jdeToUnicode on AIX

degerine

Member
Hi,

I create an external API.
On windows, it's work fine.
But, on AIX, jdeToUnicode return always blank !
I try with some encoding values UTF8, ISO88591, NULL ....

jdeToUnicode, is the first 'JDE function' I use in my API.

This is my compilation options:
@cc_r -qchars=signed -bmaxdata:1024000000 -lm -lc -lC -lpthreads -liconv -bnoipath -bhalt:5 jdectrl.o libcallobj.so ...

Thanks for your help
 
Any idea ?
My compilation options are good ?

When I copy file "../system/locale/xml/icudata.dat"
in "../system/bin32" (where is my API) jdeToUnicode is ok, but my api crash on "JDB_InitEnvOvr" instruction.
 
Problem of jdeToUnicode is ok now, because
I use a "jde" user. <font color="red">But it's always crash on 'JDB_InitEnvOvr' function ! </font>

I create a small program to make test:

<font color="666666">
#include <jde.h>

/*******************************************************************************
* MAIN SECTION
*******************************************************************************/
int _cdecl main(int argc, char *argv[])
{
int iReturn = 0;
JCHAR szUser[10];
HENV *hEnv;

iReturn = jdeToUnicode(szUser, "test", 10, NULL);
if (iReturn != 0)
{
printf("error code: %d\n", iReturn);

}
else
{
printf("results: %ls\n", szUser);

hEnv = (HENV*) malloc(sizeof(HENV));
memset(hEnv, 0, sizeof(HENV));

if(JDB_InitEnvOvr(hEnv, _J("PD811"), _J("PSFT"), _J("PSFT"))!=JDEDB_PASSED)
{
printf("error code2: %d\n", iReturn);
}
else
{

printf("ok !!!!!!!!!");
}

JDB_FreeEnv(*hEnv);
}

exit (iReturn);
}</font>

To compil, I use:

<font color="666666"> INCLUDEPATH="-I/peoplesoft/E811/system/include -I/peoplesoft/E811/system/includev -I/peoplesoft/E811/PD811/include"
DEFINES="-DKERNEL -DPRODUCTION_VERSION -D_DEBUG -DJDEDEBUG -DNATURAL_ALIGNMENT"
SYSTEMPATH=/peoplesoft/E811/system/lib

LDFLAGS="-L${SYSTEMPATH} -lc -lm -lC -bnoipath ${SYSTEMPATH}/libjdeunicode.so ${SYSTEMPATH}/libjdb.so -bloadmap:loadmap"
FLAGS="-qspill=1024 -qansialias"
LD=xlc_r
CC=xlc

echo "$CC $FLAGS $INCLUDEPATH $DEFINES -o test.o -c test.c"
$CC $FLAGS $INCLUDEPATH $DEFINES -o test.o -c test.c

echo "$LD test.o $LDFLAGS $DEFINES -otest"
$LD test.o $LDFLAGS $DEFINES -otest </font>

Note: I have the problem on AIX.
On Windows it's ok.

thanks for your help
 
Hi,

Be aware that AIX is case-sensitive.
For Windows, both "jde" and "JDE" are the same user;
but for AIX they're different users!
 
Back
Top