You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Ravi Tallury <rt...@iss.gm.com> on 2000/08/21 20:31:21 UTC

Re build errors

I have been trying to build the XML4J or the Xerces Java parser on
solaris 2.7. I am using gnu make 3.79.
and these are the subset of the errors i get:
Building Source
make -C src
make[1]: Entering directory `/home2/autonomy/XML4J_3_0_1/src'
make -C com
make[2]: Entering directory `/home2/autonomy/XML4J_3_0_1/src/com'
make -C ibm
make[3]: Entering directory `/home2/autonomy/XML4J_3_0_1/src/com/ibm'
make -C xml
make[4]: Entering directory
`/home2/autonomy/XML4J_3_0_1/src/com/ibm/xml'
make -C parsers
make[5]: Entering directory
`/home2/autonomy/XML4J_3_0_1/src/com/ibm/xml/parsers'
/bin/sh: syntax error at line 1: `;' unexpected
make[5]: *** [dirs] Error 2
make[5]: Leaving directory
`/home2/autonomy/XML4J_3_0_1/src/com/ibm/xml/parsers'
make[4]: *** [dirs] Error 2
make[4]: Leaving directory `/home2/autonomy/XML4J_3_0_1/src/com/ibm/xml'

make[3]: *** [dirs] Error 2
make[3]: Leaving directory `/home2/autonomy/XML4J_3_0_1/src/com/ibm'
make[2]: *** [dirs] Error 2
make[2]: Leaving directory `/home2/autonomy/XML4J_3_0_1/src/com'


I dont understand enough about the make utlity or the unix shell
programming to know what can be done to build it properly. Any help
would be greatly appreciated.

The problem is with this piece of code in the Makefile.incl file in the
src directory
dirs::
        @if [ -n "$(DIRS)" ]; \
        then for i in $(DIRS);do \
                echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \
             done; \
        fi

Thanks
Ravi


Re: Re build errors

Posted by Eric Ye <er...@locus.apache.org>.
This is a portability bug in the 1.0.3 ( or XML4J3.0.1)makefile, it has been
fixed in the latest version. The problem is that $DIRs could be a empty
string, some make utility can deal with this and some can't.

Best regards
Eric
----- Original Message -----
From: "Ravi Tallury" <rt...@iss.gm.com>
To: <xe...@xml.apache.org>
Sent: Monday, August 21, 2000 11:31 AM
Subject: Re build errors


> I have been trying to build the XML4J or the Xerces Java parser on
> solaris 2.7. I am using gnu make 3.79.
> and these are the subset of the errors i get:
> Building Source
> make -C src
> make[1]: Entering directory `/home2/autonomy/XML4J_3_0_1/src'
> make -C com
> make[2]: Entering directory `/home2/autonomy/XML4J_3_0_1/src/com'
> make -C ibm
> make[3]: Entering directory `/home2/autonomy/XML4J_3_0_1/src/com/ibm'
> make -C xml
> make[4]: Entering directory
> `/home2/autonomy/XML4J_3_0_1/src/com/ibm/xml'
> make -C parsers
> make[5]: Entering directory
> `/home2/autonomy/XML4J_3_0_1/src/com/ibm/xml/parsers'
> /bin/sh: syntax error at line 1: `;' unexpected
> make[5]: *** [dirs] Error 2
> make[5]: Leaving directory
> `/home2/autonomy/XML4J_3_0_1/src/com/ibm/xml/parsers'
> make[4]: *** [dirs] Error 2
> make[4]: Leaving directory `/home2/autonomy/XML4J_3_0_1/src/com/ibm/xml'
>
> make[3]: *** [dirs] Error 2
> make[3]: Leaving directory `/home2/autonomy/XML4J_3_0_1/src/com/ibm'
> make[2]: *** [dirs] Error 2
> make[2]: Leaving directory `/home2/autonomy/XML4J_3_0_1/src/com'
>
>
> I dont understand enough about the make utlity or the unix shell
> programming to know what can be done to build it properly. Any help
> would be greatly appreciated.
>
> The problem is with this piece of code in the Makefile.incl file in the
> src directory
> dirs::
>         @if [ -n "$(DIRS)" ]; \
>         then for i in $(DIRS);do \
>                 echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \
>              done; \
>         fi
>
> Thanks
> Ravi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>