Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on compile #101

Open
priosoft opened this issue Apr 29, 2021 · 7 comments
Open

Issue on compile #101

priosoft opened this issue Apr 29, 2021 · 7 comments

Comments

@priosoft
Copy link

I had tried for many times but I have always compile error

system -q "CHGATR OBJ('src/ext/utl100.c') ATR(*CCSID) VALUE(1252)"
system "CRTCMOD MODULE(ILEASTIC/utl100) SRCSTMF('src/ext/utl100.c') OPTIMIZE(10) ENUM(*INT) TERASPACE(*YES) STGMDL(*INHERIT) SYSIFCOPT(*IFSIO) INCDIR('/QIBM/include' 'headers/' 'headers/ext/') DBGVIEW(*ALL) TGTCCSID(*JOB) TGTRLS(V7R2M0)"
CZS0601: Il modulo UTL100 non viene creato in quanto si sono verificati errori di istruzione.
CZM0613: La compilazione ha avuto esito negativo.
gmake[1]: *** [makefile:53: ext/utl100.c] Error 255
gmake[1]: Leaving directory '/prj/ILEastic/noxDB'
gmake: *** [makefile:53: noxDB] Error 2
$

@priosoft
Copy link
Author

system -q "CHGATR OBJ('src/ext/utl100.c') ATR(*CCSID) VALUE(1252)"
system "CRTCMOD MODULE(ILEASTIC/utl100) SRCSTMF('src/ext/utl100.c') OPTIMIZE(10) ENUM(*INT) TERASPACE(*YES) STGMDL(*INHERIT) SYSIFCOPT(*IFSIO) INCDIR('/QIBM/include' 'headers/' 'headers/ext/') DBGVIEW(*ALL) TGTCCSID(*JOB) TGTRLS(V7R2M0)"
CZS0601: Il modulo UTL100 non viene creato in quanto si sono verificati errori di istruzione.
CZM0613: La compilazione ha avuto esito negativo.
gmake[1]: *** [makefile:53: ext/utl100.c] Error 255
gmake[1]: Leaving directory '/prj/ILEastic/noxDB'
gmake: *** [makefile:53: noxDB] Error 2
$

@m1h43l
Copy link
Collaborator

m1h43l commented Apr 29, 2021

Hi, I made a little tutorial and it contains a set of instructions on how to build this library (if a "normal" gmake fails). Perhaps you could try this: https://champions.rpgnextgen.com/Dependencies.html

And by the way ... what is the CCSID of your job?

@m1h43l
Copy link
Collaborator

m1h43l commented Apr 30, 2021

... and what is your OS release version?

@m1h43l
Copy link
Collaborator

m1h43l commented Apr 30, 2021

If you have no "valid" CCSID configured (like 65535 which means no conversion) then you might want to try specifying your CCSID on the compile by passing the TARGET_CCSID parameter.

make BIN_LIB=ILEASTIC TARGET_RLS=*CURRENT TARGET_CCSID=280

(I assumed you are from Italy)

@priosoft
Copy link
Author

priosoft commented Apr 30, 2021 via email

@priosoft
Copy link
Author

priosoft commented Apr 30, 2021 via email

@richardm90
Copy link

I'm having the same problem.

I'm running on 7.4 and QCCSID and my job CCSID are both set to 1146 (UK with Euro symbol).

system "CRTCMOD MODULE(ILEASTIC/utl100) SRCSTMF('src/ext/utl100.c') OPTIMIZE(10) ENUM(*INT) TERASPACE(*YES) STGMDL(*INHERIT) SYSIFCOPT(*IFSIO) INCDIR('/QIBM/include' 'headers/' 'headers/ext/') DBGVIEW(*ALL) TGTCCSID(1146) TGTRLS(*CURRENT)"
CZS0601: Module UTL100 is not created because statement errors occurred.
CZM0613: The compilation failed.
gmake[1]: *** [makefile:53: ext/utl100.c] Error 255
gmake[1]: Leaving directory '/prj/ILEastic/noxDB'
make: *** [makefile:53: noxDB] Error 2

I tried using the make BIN_LIB=ILEASTIC TARGET_RLS=*CURRENT TARGET_CCSID=1146 command as well as the instructions to build dependencies from the Tour of Champions page and both gave the same problem when trying to make noxDB.

As a work around I commented out some of the lines in utl100.c and this allows the make command to complete.

/* ------------------------------------------------------------- *\
   toUpper and toLower in ccsid 277
\* ------------------------------------------------------------- */
UCHAR toUpper(UCHAR c)
{
   switch(c) {
      /* case 'æ' : return 'Æ'; */
      /* case 'ø' : return 'Ø'; */
      /* case 'å' : return 'Å'; */
      default  : return toupper(c);
   }
}
UCHAR toLower(UCHAR c)
{
   switch(c) {
      /* case 'Æ' : return 'æ'; */
      /* case 'Ø' : return 'ø'; */
      /* case 'Å' : return 'å'; */
      default  : return tolower(c);
   }
}

It's odd as these characters are valid in CCSID 1146.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants