Not that I have the code and should actually be commenting on this, but
I suspect the issue is that the DoubleSupport source file is including
both /usr/vacpp/include/cstdlib and /usr/vacpp/include/stdlib.h", or
including files which are causing these to be included.  It's not that
there are errors in these files; the problem is that both of these files
have the same function declaration.  The problem is probably with the
DoubleSupport source file, because of the include statements.

On Fri, 2007-10-05 at 09:00 -0700, David Bertoni (JIRA) wrote:

>     [ 
> https://issues.apache.org/jira/browse/XALANC-661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532695
>  ] 
> 
> David Bertoni commented on XALANC-661:
> --------------------------------------
> 
> These errors are coming from your compiler's include files, and not from 
> Xalan-C, so I don't believe this is a Xalan bug.  Since I don't have access 
> to a machine with xlC installed, I cannot verify the contents of the header 
> files, but this looks like a bug in xlC's header files.
> 
> > PlatformSupport/DoubleSupport.cpp compile error on AIX 5.3
> > ----------------------------------------------------------
> >
> >                 Key: XALANC-661
> >                 URL: https://issues.apache.org/jira/browse/XALANC-661
> >             Project: XalanC
> >          Issue Type: Bug
> >          Components: XalanC
> >    Affects Versions: 1.10
> >         Environment: AIX 5.3
> > xlC (Compiler) 9.0
> > xerces 2.7.0
> >            Reporter: Bernd Ernesti
> >            Priority: Blocker
> >
> > xlC_r -I/tmp/xerces/include -O -DNDEBUG -qthreaded -DAIX -D_THREAD_SAFE 
> > -DXALAN_INMEM_MSG_LOADER -c -I/xml-xalan/c/src -I/xml-xalan/c/include 
> > -I../../nls/include -I/tmp/xerces/include/xercesc -I/tmp/xerces/include/  
> > -o ../../obj/DoubleSupport.o 
> > /xml-xalan/c/src/xalanc/PlatformSupport/DoubleSupport.cpp
> > "/usr/vacpp/include/cstdlib", line 72.15: 1540-0403 (S) "abs(long)" is 
> > already defined.
> > "/usr/vacpp/include/stdlib.h", line 146.32: 1540-0425 (I) "abs" is defined 
> > on line 146 of "/usr/vacpp/include/stdlib.h".
> > "/usr/vacpp/include/stdlib.h", line 38.32: 1540-0424 (I) "abs" is declared 
> > on line 38 of "/usr/vacpp/include/stdlib.h".
> > gmake[1]: *** [../../obj/DoubleSupport.o] Error 1
> > gmake[1]: Leaving directory `/xml-xalan/c/src/xalanc'
> > gmake: *** [all] Error 2
> 

Reply via email to