cargilld    2004/09/02 08:28:03

  Modified:    c/doc    build-other.xml
               c/src/xercesc config.sub runConfigure
  Log:
  OS400 Build updates
  
  Revision  Changes    Path
  1.18      +15 -21    xml-xerces/c/doc/build-other.xml
  
  Index: build-other.xml
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/doc/build-other.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- build-other.xml   25 Nov 2003 17:18:15 -0000      1.17
  +++ build-other.xml   2 Sep 2004 15:28:03 -0000       1.18
  @@ -12,28 +12,19 @@
   
                   <ul>
                       <li>OS/400 <code>QSHELL</code> interpreter installed (install 
base option 30, operating system)</li>
  -                    <li>OS/400 - Portable App Solutions Environment (PASE) 
installed (install base option 33, operating system)</li>
  -                    <li>QShell Utilities, PRPQ 5799-XEH</li>
  -                    <li>iSeries Tools for Developers, PRPQ 5799-PTL (these are the 
gnu utilities)</li>
  -                </ul>
  -
  -                <p>Compiler:</p>
  -                <ul>
  -                    <li>For v4r5m0: ILE C++ for AS/400, PRPQ 5799-GDW</li>
  +                    <li>OS/400 - Portable App Solutions Environment (PASE) 
installed (install base option 33, operating system)</li>                    
  +                    <li>iSeries Tools for Developers, PRPQ 5799-PTL (these are the 
gnu utilities)</li>       
                       <li>For v5: WebSphere Development ToolsSet, 5722-WDS ( 
installed  option 52, Compiler - ILE C++)</li>
                   </ul>
   
  -                <p><em>Recommendations:</em></p>
  +                <p><em>Recommendation:</em></p>
   
                   <ul>
                   <li>There is one option when building the XML4C parser on iSeries.
                   For code page translation, you can use the iSeries
  -                native <code>Iconv400</code> support or ICU as the transcoder plug 
in. If you choose ICU, follow the instructions
  +                native <code>Iconv400</code> support or <code>icu</code> as the 
transcoder plug in. If you choose ICU, follow the instructions
                   to build the ICU service program with the ICU download. Those 
instructions
  -                are not included here.</li>
  -
  -                <li>We recommend the use of <code>Iconv400</code>.
  -                The binary posted on Alphaworks uses Iconv400.</li>
  +                are not included here.  We recommend the use of 
<code>Iconv400</code>.</li>        
                   </ul>
   
                   <p><em>Setup Instructions:</em></p>
  @@ -66,9 +57,10 @@
                    </ul>
   <source>
   XERCESCROOT - &lt;the full path up to the &XercesCName; src directory, but not 
including 'src'&gt;
  -MAKE   - '/usr/bin/gmake'
  +MAKE   - '/qibm/proddata/developertools/qsh/bin/gmake'
   OUTPUTDIR  - &lt;identifies target iSeries library for *module, *pgm and *srvpgm 
objects&gt;
  -ICUROOT - (optional if using ICU)  &lt;the path of your ICU includes&gt;
  +PATH   - '/usr/bin:/qibm/proddata/developertools/qsh/bin'
  +ICUROOT - (if using ICU)  &lt;the path of your ICU installation&gt;
   </source>
   
                   <ul>
  @@ -85,7 +77,9 @@
            <p>To configure the make files for an iSeries build do the following under 
Qsh:</p>
   <source>qsh:
   cd &lt;full path to &XercesCName;&gt;/src/xercesc
  -runConfigure -p os400 -x icc -c icc -m inmem -t Iconv400</source>
  +edit runConfigure and comment out the line:
  +     getoptErr=`getopt p:c:x:dm:n:t:r:b:l:z:P:C:h $*`
  +runConfigure -p os400 -x icc -c icc -m inmem -t Iconv400 -r none</source>
   
            <p>Troubleshooting:</p>
   <source>error: configure: error: installation or configuration problem:
  @@ -103,7 +97,7 @@
   DLTPGM &lt;OUTPUTDIR library&gt;/CONFT*</source>
   
           <p><em>Build</em></p>
  -
  +             <p>If runConfigure runs fine then do the following under Qsh to 
actually build the modules:</p>
   <source>qsh:
   cd &lt;full path to &XercesCName;&gt;/src/xercesc
   gmake</source>
  @@ -150,13 +144,13 @@
   
   <source>CL:
   CRTSRVPGM  (&lt;OUTPUTDIR-library&gt;/libxercesc)  
MODULE(&lt;OUTPUTDIR-library&gt;/*ALL) EXPORT(*ALL) TEXT('XML4C parser version xxx')
  -OPTION(*DUPPROC *DUPVAR)
  +OPTION(*DUPPROC *DUPVAR *NOWARN) AUT(*USE)
   </source>
   
            <p>Note that if you manually create the service program you want to make 
sure that
            you do not include any CONFT* modules or samples modules in the OUTPUTDIR 
library.
            After the service program is manually created you can add a symbolic link 
to the
  -         service program  into the appropriate /lib directory by qsh:</p>
  +         service program into the appropriate /lib directory by qsh:</p>
   
   <source>
   qsh:
  @@ -221,7 +215,7 @@
    #endif
   </source>
   
  -          <p>Update  the following routines in 
src/xercesc/dom/impl/DOMDocumentImpl.cpp as follows:</p>
  +          <p>Update the following routines in 
src/xercesc/dom/impl/DOMDocumentImpl.cpp as follows:</p>
   <source>
    void DOMDocumentImpl::setUserData(DOMNode* n, void* data)
    {
  
  
  
  1.3       +7 -0      xml-xerces/c/src/xercesc/config.sub
  
  Index: config.sub
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/config.sub,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- config.sub        18 Jul 2002 20:48:34 -0000      1.2
  +++ config.sub        2 Sep 2004 15:28:03 -0000       1.3
  @@ -928,6 +928,10 @@
                basic_machine=a29k-nyu
                os=-sym1
                ;;
  +     AS400)
  +             basic_machine=AS400-ibm
  +             os=-OS400
  +             ;;              
        v810 | necv810)
                basic_machine=v810-nec
                os=-none
  @@ -1205,6 +1209,9 @@
        -ose*)
                os=-ose
                ;;
  +     -OS400)
  +             os=-OS400
  +             ;;              
        -es1800*)
                os=-ose
                ;;
  
  
  
  1.37      +6 -1      xml-xerces/c/src/xercesc/runConfigure
  
  Index: runConfigure
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/runConfigure,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- runConfigure      27 Jul 2004 22:05:36 -0000      1.36
  +++ runConfigure      2 Sep 2004 15:28:03 -0000       1.37
  @@ -151,6 +151,8 @@
   
   # Check the command line parameters
   if test -x /usr/bin/getopt -o -x bin/getopt; then
  +     #
  +     # os400 Users will need to comment out the next line.
        getoptErr=`getopt p:c:x:dm:n:t:r:b:l:z:P:C:h $*`
        if [ $? != 0 ]
           then
  @@ -330,6 +332,9 @@
       THREADS=none
       threadingDefines="-DAPP_NO_THREADS -DXML_USE_NO_THREADS"
       threadingLibs=""
  +    if test $platform = "os400"; then
  +     threadingDefines="-DXML_USE_PTHREADS"
  +    fi
   else
       THREADS=pthread
       threadingDefines="-DXML_USE_PTHREADS"
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to