Project

Profile

Help

Bug #2649

closed

Compilation with DEBUG defined

Added by Omar Rodriguez about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Category:
C API
Start date:
2016-02-25
Due date:
% Done:

100%

Estimated time:
Found in version:
1.0.0
Fixed in version:
1.0.1
Platforms:

Description

When the DEBUG flag is defined the following compilation error is produced...

../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':

../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')

../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')

../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':

../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')

../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')

../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':

../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')

../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')

Lines referenced are:

#ifdef DEBUG

    jmethodID debugMID = environ->env->GetStaticMethodID(environ.env, cppClass, "setDebugMode", "(Z)V");

environ->env->CallStaticVoidMethod(environ.env, cppClass, debugMID, (jboolean)true);

#endif

In order to make these lines to compile I changed the code to....

#ifdef DEBUG

    jmethodID debugMID = (*(environ.env))->GetStaticMethodID(environ.env, cppClass, "setDebugMode", "(Z)V");

(*(environ.env))->CallStaticVoidMethod(environ.env, cppClass, debugMID, (jboolean)true);

#endif

Actions #1

Updated by O'Neil Delpratt about 8 years ago

  • Category set to C API
  • Assignee set to O'Neil Delpratt
  • Fixed in version set to 1.0.0
Actions #2

Updated by O'Neil Delpratt about 8 years ago

  • Status changed from New to In Progress

Thanks for letting us know about this build error. We will investigate it and report back shortly.

You should be fine to compile Saxon/C without using the DEBUG flag.

Actions #3

Updated by O'Neil Delpratt almost 8 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
  • Found in version set to 1.0.0
  • Fixed in version deleted (1.0.0)

Bug has been fixed and committed to subversion

Actions #4

Updated by O'Neil Delpratt almost 8 years ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 1.0.1

Bug fix applied in the Saxon/C 1.0.1 maintenance release.

Please register to edit this issue

Also available in: Atom PDF