You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "David Bertoni (JIRA)" <xa...@xml.apache.org> on 2006/06/29 21:16:30 UTC

[jira] Created: (XALANC-621) Selection of compiler definitions file fails on Linux PPC in client code

Selection of compiler definitions file fails on Linux PPC in client code
------------------------------------------------------------------------

         Key: XALANC-621
         URL: http://issues.apache.org/jira/browse/XALANC-621
     Project: XalanC
        Type: Bug

  Components: XalanC  
    Versions: CurrentCVS    
    Reporter: David Bertoni
 Assigned to: David Bertoni 


PlatformDefinitions.hpp needs to be patched to allow for proper compiler selection in client code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANC-621) Selection of compiler definitions file fails on Linux PPC in client code

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANC-621?page=comments#action_12418669 ] 

David Bertoni commented on XALANC-621:
--------------------------------------

I know it works because it came directly from compilation of some client code on Linux PPC.

I suppose we could have a better macro choice for xlC on Power.  How about

#elif defined(__TOS_LINUX__) && defined(__IBMCPP__)


> Selection of compiler definitions file fails on Linux PPC in client code
> ------------------------------------------------------------------------
>
>          Key: XALANC-621
>          URL: http://issues.apache.org/jira/browse/XALANC-621
>      Project: XalanC
>         Type: Bug

>   Components: XalanC
>     Versions: CurrentCVS
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>  Attachments: patch.diff
>
> PlatformDefinitions.hpp needs to be patched to allow for proper compiler selection in client code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Closed: (XALANC-621) Selection of compiler definitions file fails on Linux PPC in client code

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-621?page=all ]
     
David Bertoni closed XALANC-621:
--------------------------------


> Selection of compiler definitions file fails on Linux PPC in client code
> ------------------------------------------------------------------------
>
>          Key: XALANC-621
>          URL: http://issues.apache.org/jira/browse/XALANC-621
>      Project: XalanC
>         Type: Bug

>   Components: XalanC
>     Versions: CurrentCVS
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>  Attachments: patch.diff
>
> PlatformDefinitions.hpp needs to be patched to allow for proper compiler selection in client code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANC-621) Selection of compiler definitions file fails on Linux PPC in client code

Posted by "Dmitry Hayes (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANC-621?page=comments#action_12418689 ] 

Dmitry Hayes commented on XALANC-621:
-------------------------------------

Thanks! Let's commit it !

> Selection of compiler definitions file fails on Linux PPC in client code
> ------------------------------------------------------------------------
>
>          Key: XALANC-621
>          URL: http://issues.apache.org/jira/browse/XALANC-621
>      Project: XalanC
>         Type: Bug

>   Components: XalanC
>     Versions: CurrentCVS
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>  Attachments: patch.diff
>
> PlatformDefinitions.hpp needs to be patched to allow for proper compiler selection in client code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANC-621) Selection of compiler definitions file fails on Linux PPC in client code

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANC-621?page=comments#action_12418688 ] 

David Bertoni commented on XALANC-621:
--------------------------------------

This is client code that's using Xalan-C, not building it.  When the client code includes a Xalan-C header file, PlatformDefinitions.hpp does not select the right compiler include file, so it ends up in the #error section.

> Selection of compiler definitions file fails on Linux PPC in client code
> ------------------------------------------------------------------------
>
>          Key: XALANC-621
>          URL: http://issues.apache.org/jira/browse/XALANC-621
>      Project: XalanC
>         Type: Bug

>   Components: XalanC
>     Versions: CurrentCVS
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>  Attachments: patch.diff
>
> PlatformDefinitions.hpp needs to be patched to allow for proper compiler selection in client code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANC-621) Selection of compiler definitions file fails on Linux PPC in client code

Posted by "Dmitry Hayes (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANC-621?page=comments#action_12418686 ] 

Dmitry Hayes commented on XALANC-621:
-------------------------------------

This looks better , but it still unclear for me how XalanC is built in this case . Does the client surpass runConfigure and goes directly to the configure script ? 

> Selection of compiler definitions file fails on Linux PPC in client code
> ------------------------------------------------------------------------
>
>          Key: XALANC-621
>          URL: http://issues.apache.org/jira/browse/XALANC-621
>      Project: XalanC
>         Type: Bug

>   Components: XalanC
>     Versions: CurrentCVS
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>  Attachments: patch.diff
>
> PlatformDefinitions.hpp needs to be patched to allow for proper compiler selection in client code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANC-621) Selection of compiler definitions file fails on Linux PPC in client code

Posted by "Dmitry Hayes (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANC-621?page=comments#action_12418656 ] 

Dmitry Hayes commented on XALANC-621:
-------------------------------------

in the same file we have now : 

#elif defined(_AIX)
#include "AIXDefinitions.hpp"
...

#elif defined(__IBMCPP__)
#include "AIXDefinitions.hpp"

In the same time in Makefile.incl.in we have : 
#=============== LINUX SPECIFIC OPTIONS =========================

ifeq ($(PLATFORM), LINUX)

	SUPPORTED = TRUE
	
  ifeq (${CXX}, xlC_r)

			PLATFORM_COMPILE_OPTIONS = -qpic -D_AIX -D_THREAD_SAFE

I'm not sure the patch would work. That's our traditional OS/compiler macros mess. 
I tried to find where form coming the symbol _AIX with no particuler luck. The modern IBM compiles sets _PPC_ for the the hardware platfrom and __TOS_LINUX__ for the Linux OS. __IBMCPP__ just means any IBM C++ compiler. 

> Selection of compiler definitions file fails on Linux PPC in client code
> ------------------------------------------------------------------------
>
>          Key: XALANC-621
>          URL: http://issues.apache.org/jira/browse/XALANC-621
>      Project: XalanC
>         Type: Bug

>   Components: XalanC
>     Versions: CurrentCVS
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>  Attachments: patch.diff
>
> PlatformDefinitions.hpp needs to be patched to allow for proper compiler selection in client code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Resolved: (XALANC-621) Selection of compiler definitions file fails on Linux PPC in client code

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-621?page=all ]
     
David Bertoni resolved XALANC-621:
----------------------------------

    Resolution: Fixed

Slightly modified patch applied.

> Selection of compiler definitions file fails on Linux PPC in client code
> ------------------------------------------------------------------------
>
>          Key: XALANC-621
>          URL: http://issues.apache.org/jira/browse/XALANC-621
>      Project: XalanC
>         Type: Bug

>   Components: XalanC
>     Versions: CurrentCVS
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>  Attachments: patch.diff
>
> PlatformDefinitions.hpp needs to be patched to allow for proper compiler selection in client code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org