Xerces, XML4C, C++, V6R1 - IBM AS400

This is a discussion on Xerces, XML4C, C++, V6R1 - IBM AS400 ; We have a new development machine/partition running V6R1 and it has the following XML4C products installed. 5733XT2 *INSTALLED XML Toolkit for IBM System i5 5733XT2 *INSTALLED XML version 5.6 and XSL version 1.10 5733XT2 *INSTALLED XML 5.6 and XSL 1.10 ...

+ Reply to Thread
Results 1 to 10 of 10

Thread: Xerces, XML4C, C++, V6R1

  1. Xerces, XML4C, C++, V6R1

    We have a new development machine/partition running V6R1 and it has
    the following XML4C products installed.

    5733XT2 *INSTALLED XML Toolkit for IBM System i5
    5733XT2 *INSTALLED XML version 5.6 and XSL version 1.10
    5733XT2 *INSTALLED XML 5.6 and XSL 1.10 Development
    5733XT2 *INSTALLED XML Scripting for IBM System i5
    5733XT2 *INSTALLED XML version 5.6.3 and XSL version 1.10.2
    5733XT2 *INSTALLED XML 5.6.3 and XSL 1.10.2 Development
    5733XT2 *INSTALLED XML version 5.6.3 and XSL version 1.10.2
    5733XT2 *INSTALLED XML 5.6.3 and XSL 1.10.2 Development

    However, I can't seem to get a small program compiled. It's weird too
    because Googling XML4C turns up old stuff meant for Visual C++ circa
    the early 1900s and examples are non-existent. I guess I need to know
    where the #include files are because basic C++ code like so fails:

    #include (one of the examples)

    I also tried various combos:

    #include
    #include
    #include

    The system says it's installed, but...

    I'll keep hunting on the net but I hope I'll save time by coming here
    too. Thanks a bunch.

  2. Re: Xerces, XML4C, C++, V6R1

    On Aug 31, 2:50*pm, "Mr. K.V.B.L." wrote:
    > We have a new development machine/partition running V6R1 and it has
    > the following XML4C products installed.
    >
    > 5733XT2 * *INSTALLED * XML Toolkit for IBM System i5
    > 5733XT2 * *INSTALLED * XML version 5.6 and XSL version 1.10


    After doing a long 'find' command on the IFS, I found #include files
    in /QIBM/ProdData/xmltoolkitv4/xml5_6_3/include but shouldn't the
    compiler be picking up this path? I feel like a setup issue has not
    been completed. Stuff will compile when I include /QIBM/ProdData/
    xmltoolkitv4/xml5_6_3/include with the INCDIR option.

    My successful compilation statement is:
    CRTCPPMOD MODULE(XERCESC) SRCSTMF('/home/kbeard/xercesc.cpp')
    OUTPUT(*print) OPTION(*SHOWUSR) INCDIR('/QIBM/ProdData/xmltoolkitv4/
    xml5_6_3/include')

    I just wish I could have successfully compiled the latest Apache
    Xerces-C so I could have had some work done on our current V5R2
    partition. What a nightmare that is. I can't even do the
    runConfigure command per the instructions. I hope I can compile/link
    everything down to V5R2.

  3. Re: Xerces, XML4C, C++, V6R1

    On Aug 31, 3:34*pm, "Mr. K.V.B.L." wrote:
    > My successful compilation statement is:
    > CRTCPPMOD MODULE(XERCESC) SRCSTMF('/home/kbeard/xercesc.cpp')
    > OUTPUT(*print) OPTION(*SHOWUSR) INCDIR('/QIBM/ProdData/xmltoolkitv4/
    > xml5_6_3/include')


    Compiling CRTCPPMOD works fine. I can't get one dang CRTPGM to work.

  4. Re: Xerces, XML4C, C++, V6R1


    "Mr. K.V.B.L." skrev i en meddelelse
    news:fdb779ab-59ae-47a5-a936-c60a2b64bb9e@59g2000hsb.googlegroups.com...
    On Aug 31, 3:34 pm, "Mr. K.V.B.L." wrote:
    > My successful compilation statement is:
    > CRTCPPMOD MODULE(XERCESC) SRCSTMF('/home/kbeard/xercesc.cpp')
    > OUTPUT(*print) OPTION(*SHOWUSR) INCDIR('/QIBM/ProdData/xmltoolkitv4/
    > xml5_6_3/include')


    Compiling CRTCPPMOD works fine. I can't get one dang CRTPGM to work.

    Feels like you're talking to yourself. Not much information in the above
    statement. ;-)



  5. Re: Xerces, XML4C, C++, V6R1

    On Sep 1, 5:45*pm, "Kaj Julius" wrote:
    > "Mr. K.V.B.L." skrev i en meddelelsenews:fdb779ab-59ae-47a5-a936-c60a2b64bb9e@59g2000hsb.googlegroups.com...
    > On Aug 31, 3:34 pm, "Mr. K.V.B.L." wrote:
    >
    > > My successful compilation statement is:
    > > CRTCPPMOD MODULE(XERCESC) SRCSTMF('/home/kbeard/xercesc.cpp')
    > > OUTPUT(*print) OPTION(*SHOWUSR) INCDIR('/QIBM/ProdData/xmltoolkitv4/
    > > xml5_6_3/include')

    >
    > Compiling CRTCPPMOD works fine. *I can't get one dang CRTPGM to work.
    >
    > Feels like you're talking to yourself. Not much information in the above
    > statement. ;-)


    After the Hell I've been through, you'd be talking to yourself too.
    There are two messages prior to your reply.

  6. Re: Xerces, XML4C, C++, V6R1

    On Sep 1, 6:53*pm, "Mr. K.V.B.L." wrote:
    > On Sep 1, 5:45*pm, "Kaj Julius" wrote:
    >
    > > "Mr. K.V.B.L." skrev i en meddelelsenews:fdb779ab-59ae-47a5-a936-c60a2b64bb9e@59g2000hsb.googlegroups.com...
    > > On Aug 31, 3:34 pm, "Mr. K.V.B.L." wrote:

    >
    > > > My successful compilation statement is:
    > > > CRTCPPMOD MODULE(XERCESC) SRCSTMF('/home/kbeard/xercesc.cpp')
    > > > OUTPUT(*print) OPTION(*SHOWUSR) INCDIR('/QIBM/ProdData/xmltoolkitv4/
    > > > xml5_6_3/include')

    >
    > > Compiling CRTCPPMOD works fine. *I can't get one dang CRTPGM to work.

    >
    > > Feels like you're talking to yourself. Not much information in the above
    > > statement. ;-)

    >
    > After the Hell I've been through, you'd be talking to yourself too.
    > There are two messages prior to your reply.


    My point is that although I can compile to the *MODULE level, I cannot
    seem to get the right params down to create a *PGM. The documentation
    is sparse and I can't find something that's current, a tutorial, etc.

  7. Re: Xerces, XML4C, C++, V6R1

    When a CRTPGM fails there is usually an error message, or messages, in the
    job log that should highlight the problem. You need to find those and if
    you can't fix them, then post them and someone may have an answer.

    You may need to specify a binding directory (object type *BDNDIR) on the
    CRTPGM command to pick up unresolved references from the C++ code. You may
    be missing the run-time library functions.

    Take a look at this page in the Info Center and see if anything there helps:
    http://publib.boulder.ibm.com/infoce...gcandcplus.htm

    Sam

    "Mr. K.V.B.L." wrote in message
    news:435945f7-16d5-4059-8fe6-4fd04a5ce418@y38g2000hsy.googlegroups.com...
    On Sep 1, 6:53 pm, "Mr. K.V.B.L." wrote:
    > On Sep 1, 5:45 pm, "Kaj Julius" wrote:
    >
    > > "Mr. K.V.B.L." skrev i en
    > > meddelelsenews:fdb779ab-59ae-47a5-a936-c60a2b64bb9e@59g2000hsb.googlegroups.com...
    > > On Aug 31, 3:34 pm, "Mr. K.V.B.L." wrote:

    >
    > > > My successful compilation statement is:
    > > > CRTCPPMOD MODULE(XERCESC) SRCSTMF('/home/kbeard/xercesc.cpp')
    > > > OUTPUT(*print) OPTION(*SHOWUSR) INCDIR('/QIBM/ProdData/xmltoolkitv4/
    > > > xml5_6_3/include')

    >
    > > Compiling CRTCPPMOD works fine. I can't get one dang CRTPGM to work.

    >
    > > Feels like you're talking to yourself. Not much information in the above
    > > statement. ;-)

    >
    > After the Hell I've been through, you'd be talking to yourself too.
    > There are two messages prior to your reply.


    My point is that although I can compile to the *MODULE level, I cannot
    seem to get the right params down to create a *PGM. The documentation
    is sparse and I can't find something that's current, a tutorial, etc.



  8. Re: Xerces, XML4C, C++, V6R1

    On Sep 1, 7:49*pm, "Saml" wrote:
    > When a CRTPGM fails there is usually an error message, or messages, in the
    > job log that should highlight the problem. *You need to find those and if
    > you can't fix them, then post them and someone may have an answer.
    >
    > You may need to specify a binding directory (object type *BDNDIR) on the
    > CRTPGM command *to pick up unresolved references from the C++ code. *You may
    > be missing the run-time library functions.
    >


    I should be missing nothing. I can't even compile/link one of the
    samples. Out of desperation I included the XSL service program but
    that does nothing. I also tried toying with the TGTRLS option but
    that gets me nowhere. I can't believe I'm having this much trouble.
    I'd be embarrassed if it were me supplying this to a customer. All
    the documentation I've found is cut-n-pasted from one version to the
    other.

    CRTCPPMOD MODULE(CREATE) SRCSTMF('/qibm/proddata/xmltoolkit2/xml5_6_0/
    samples/CreateDOMDocument/CreateDOMDocument.cpp') TEXT(*SRCMBRTXT)
    OUTPUT(*print) INCDIR('/qibm/proddata/xmltoolkit2/xml5_6_0/
    include')

    CRTPGM PGM(CREATE) BNDSRVPGM((QXMLLIB/QXML4C560) (QXMLLIB/QXSL4C1100))
    DETAIL(*EXTENDED) TGTRLS(V5R4M0)

    Create
    Program Page
    1
    5761SS1 V6R1M0
    080215 QGPL/
    CREATE BIGRED6 09/02/08 14:36:09 UTC-06:00S
    Program . . . . . . . . . . . . . . . . . . . . . :
    CREATE
    Library . . . . . . . . . . . . . . . . . . . . :
    QGPL
    Program entry procedure module . . . . . . . . . . :
    *FIRST

    Library . . . . . . . . . . . . . . . . . . . . :
    Activation group . . . . . . . . . . . . . . . . . :
    *ENTMOD
    Creation options . . . . . . . . . . . . . . . . . : *GEN
    *NODUPPROC *NODUPVAR *WARN *RSLVREF
    Listing detail . . . . . . . . . . . . . . . . . . :
    *BASIC
    Allow update . . . . . . . . . . . . . . . . . . . :
    *YES
    Allow bound *SRVPGM library name update . . . . . :
    *NO
    User profile . . . . . . . . . . . . . . . . . . . :
    *USER
    Replace existing program . . . . . . . . . . . . . :
    *YES
    Authority . . . . . . . . . . . . . . . . . . . . :
    *LIBCRTAUT
    Target release . . . . . . . . . . . . . . . . . . :
    *CURRENT
    Allow reinitialization . . . . . . . . . . . . . . :
    *NO
    Storage model . . . . . . . . . . . . . . . . . . :
    *SNGLVL
    Argument optimization . . . . . . . . . . . . . . :
    *NO
    Interprocedural analysis . . . . . . . . . . . . . :
    *NO

    More...
    IPA control file . . . . . . . . . . . . . . . . . :
    *NONE
    Text . . . . . . . . . . . . . . . . . . . . . . . :
    *ENTMODTXT
    Create
    Program Page
    2
    5761SS1 V6R1M0
    080215 QGPL/
    CREATE BIGRED6 09/02/08 14:36:09 UTC-06:00S
    Module Library Module Library
    Module Library Module Library
    CREATE
    QGPL
    Service
    Service
    Service
    Program Library Activation Program Library
    Activation Program Library Activation
    QXML4C560 QXMLLIB
    *IMMED
    Binding Binding
    Binding Binding
    Directory Library Directory Library
    Directory Library Directory Library

    *NONE
    Create
    Program Page
    3
    5761SS1 V6R1M0
    080215 QGPL/
    CREATE BIGRED6 09/02/08 14:36:09 UTC-06:00S
    Brief Summary
    Table
    Program entry procedures . . . . . . . . . . . :
    1
    Symbol Type Library Object Bound
    Identifier
    *MODULE QGPL CREATE *YES
    _CXX_PEP__Fv
    Multiple strong definitions . . . . . . . . . :
    0

    More...
    Unresolved references . . . . . . . . . . . . :
    3
    Symbol Type Library Object Bound
    Identifier
    *MODULE QGPL CREATE *YES
    Initialize__Q2_11xercesc_2_616XMLPlatformUt

    ilsFPCcT1PQ2_11xercesc_2_612PanicHandlerPQ2

    _11xercesc_2_613MemoryManagerb
    *MODULE QGPL CREATE *YES
    transcode__Q2_11xercesc_2_69XMLStringFPCUs
    *MODULE QGPL CREATE *YES
    transcode__Q2_11xercesc_2_69XMLStringFPCc
    Activation group . . . . . . . . . . . . . . . :
    E═
    * * * * * E N D O F B R I E F S U
    M M A R Y T A B L E * * * * *
    Create
    Program Page
    4
    5761SS1 V6R1M0
    080215 QGPL/
    CREATE BIGRED6 09/02/08 14:36:09 UTC-06:00S
    Binding
    Statistics
    Symbol collection CPU
    time . . . . . . . . . . . . . . . . . : .
    014
    Symbol resolution CPU
    time . . . . . . . . . . . . . . . . . : .
    000
    Binding directory resolution CPU
    time . . . . . . . . . . . : .
    018
    Binder language compilation CPU
    time . . . . . . . . . . . . : .
    000
    Listing creation CPU
    time . . . . . . . . . . . . . . . . . : .
    000
    Program/service program creation CPU
    time . . . . . . . . . : .
    000
    Total CPU
    time . . . . . . . . . . . . . . . . . . . . . . . : .
    084

    More...
    Total elapsed
    time . . . . . . . . . . . . . . . . . . . . . : .
    279
    * * * * * E N D O F B I N D I N
    G S T A T I S T I C S * * * * *
    *CPF3C50 - Program CREATE not
    created.
    * * * * * E N D O F C R E A T E P R O
    G R A M L I S T I N G * * * * *



  9. Re: Xerces, XML4C, C++, V6R1

    il 02/09/2008 22.06, Scrive Mr. K.V.B.L. 43955896:
    > On Sep 1, 7:49 pm, "Saml" wrote:
    >> When a CRTPGM fails there is usually an error message, or messages, in the
    >> job log that should highlight the problem. You need to find those and if
    >> you can't fix them, then post them and someone may have an answer.
    >>
    >> You may need to specify a binding directory (object type *BDNDIR) on the
    >> CRTPGM command to pick up unresolved references from the C++ code. You may
    >> be missing the run-time library functions.
    >>

    >
    > I should be missing nothing. I can't even compile/link one of the
    > samples. Out of desperation I included the XSL service program but
    > that does nothing. I also tried toying with the TGTRLS option but
    > that gets me nowhere. I can't believe I'm having this much trouble.
    > I'd be embarrassed if it were me supplying this to a customer. All
    > the documentation I've found is cut-n-pasted from one version to the
    > other.
    >
    > CRTCPPMOD MODULE(CREATE) SRCSTMF('/qibm/proddata/xmltoolkit2/xml5_6_0/
    > samples/CreateDOMDocument/CreateDOMDocument.cpp') TEXT(*SRCMBRTXT)
    > OUTPUT(*print) INCDIR('/qibm/proddata/xmltoolkit2/xml5_6_0/
    > include')
    >
    > CRTPGM PGM(CREATE) BNDSRVPGM((QXMLLIB/QXML4C560) (QXMLLIB/QXSL4C1100))
    > DETAIL(*EXTENDED) TGTRLS(V5R4M0)

    [...]
    Shouldn't be QXMLLIB/QXSL4C110 instead of QXMLLIB/QXSL4C1100?


    --
    Dr.Ugo Gagliardelli,Modena,ItalyCertifiedUindoscrasherA˝e joAlcoolInside
    Spaccamaroni andate a cagare/Spammers not welcome/Spammers vŃo Ó merda
    Spamers iros a la mierda/Spamers allez vous faire foutre/Spammers loop
    schijten/Spammers macht Euch vom Acker/Spamerzy wypierdalac'

  10. Re: Xerces, XML4C, C++, V6R1

    The given listing suggested that it was generated from a request
    which specified DETAIL(*BRIEF), which contradicts the noted
    DETAIL(*EXTENDED) as the failing invocation. When errors are
    encountered, DETAILS(*FULL) seems IMO, most appropriate to assist any
    investigation. Anyhow the three unresolved references can be
    overlooked, to enable the create, left to fail at run-time instead, but
    only if the unresolved references are actually referenced; i.e. with
    OPTIONS(*UNRSLVREF)

    Additionally Saml mentioned the joblog, whereas what was included,
    was only the /listing/ for the create request. Were additional message
    logged in the joblog?

    http://publib.boulder.ibm.com/infoce...kitinstall.htm
    From the above URL, "XML version 5.6 parser service programs. This
    option is installed as QXML4C560 and QXML4PR560 in library QXMLLIB. In
    addition, XSL version 1.10 transformer service program is installed as
    service program QXSL4C110 in library QXMLLIB." Since that text names
    two service programs, *perhaps* the following modified request which
    names that additional service program will provide resolution to the
    missing the references?:

    CRTPGM PGM(CREATE) DETAIL(*FULL) OUTPUT(*PRINT)
    BNDSRVPGM((QXMLLIB/QXML4C560) (QXMLLIB/QXML4PR560) (QXMLLIB/QXSL4C110))

    The noted as desirable target release, I believe will be a show
    stopper anyhow; i.e. even if the program can be created. That is, in an
    earlier post it was suggested that V5R2M0 was the desired target
    release. Unfortunately only up to N-2 is supported, so a V5R4M0 or
    earlier release system would be required in order to effect compiles to
    TGTRLS(V5R2M0).

    Regards, Chuck

    Mr. K.V.B.L. wrote:
    > On Sep 1, 7:49 pm, "Saml" wrote:
    >> When a CRTPGM fails there is usually an error message, or messages,
    >> in the job log that should highlight the problem. You need to find
    >> those and if you can't fix them, then post them and someone may
    >> have an answer.
    >>
    >> You may need to specify a binding directory (object type *BDNDIR)
    >> on the CRTPGM command to pick up unresolved references from the C++
    >> code. You may be missing the run-time library functions.
    >>

    >
    > I should be missing nothing. I can't even compile/link one of the
    > samples. Out of desperation I included the XSL service program but
    > that does nothing. I also tried toying with the TGTRLS option but
    > that gets me nowhere. I can't believe I'm having this much trouble.
    > I'd be embarrassed if it were me supplying this to a customer. All
    > the documentation I've found is cut-n-pasted from one version to the
    > other.
    >
    > CRTCPPMOD MODULE(CREATE)
    > SRCSTMF('/qibm/proddata/xmltoolkit2/xml5_6_0/
    > samples/CreateDOMDocument/CreateDOMDocument.cpp') TEXT(*SRCMBRTXT)
    > OUTPUT(*print) INCDIR('/qibm/proddata/xmltoolkit2/xml5_6_0/ include')
    >
    > CRTPGM PGM(CREATE) BNDSRVPGM((QXMLLIB/QXML4C560)
    > (QXMLLIB/QXSL4C1100)) DETAIL(*EXTENDED) TGTRLS(V5R4M0)
    >
    > < > and a final message CPF3C50 - Program CREATE not created.


+ Reply to Thread