You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Yukio Goto (JIRA)" <ax...@ws.apache.org> on 2006/02/27 18:05:36 UTC
[jira] Created: (AXISCPP-941) windows compilerarg
windows compilerarg
-------------------
Key: AXISCPP-941
URL: http://issues.apache.org/jira/browse/AXISCPP-941
Project: Axis-C++
Type: Bug
Components: Build - ANT
Environment: Java 1.5.0_06 ctasks 1.0b3
Reporter: Yukio Goto
buildInitialize.xml
<compiler id="VisualC++" name="msvc" if="windows">
<compilerarg value="/MD"/>
<define name="_DEBUG" if="debug"/>
<define name="NDEBUG" unless="debug"/>
<compilerarg value="/Zi" if="debug"/>
is not work collect on Debug build .
I think /MD _DEBUG NDEBUG Zi option is automatically added
by ctasks debug or not
so add debug property for compiler task
and delete
<compiler id="VisualC++" name="msvc" if="windows" debug="${debug}" >
and delete that options
<compilerarg value="/MD"/>
<define name="_DEBUG" if="debug"/>
<define name="NDEBUG" unless="debug"/>
<compilerarg value="/Zi" if="debug"/>
--
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
Re[2]: [jira] Created: (AXISCPP-941) windows compilerarg
Posted by byplayer <by...@s7.dion.ne.jp>.
I fund one more problem on windows debug version .
On windows, and use xerces, link Xerces_xxD.lib . But ant
build link Xerces_xx.lib .
so add buildInitialize.xml following property
<target name="checkIfDebug" if="debug">
<if>
<and>
<isset property="windows"/>
<equals arg1="${debug}" arg2="true" casesensitive="false"/>
</and>
<then>
...
<property name="HTTP.ChannelLibraryName_D" value="${HTTP.ChannelLibraryName}_D"/>
<property name="xerces.xmlParserLibrary_D" value="${xerces.xmlParserLibrary}D"/>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
<propertycopy property="HTTP.ChannelLibraryName" from="HTTP.ChannelLibraryName_D" override="true"/>
<propertycopy property="xerces.xmlParserLibrary" from="xerces.xmlParserLibrary_D" override="true"/>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</then>
</if>
</target>
On Wed, 1 Mar 2006 14:15:17 -0800
"Henrik Nordberg" <he...@jitterbit.com> wrote:
> It would good if this issue was fixed before releasing 1.6 Beta.
> As it is now, we can't debug on Windows because of this (VC++ reports
> "invalid heap" when delete is called, probably because we (jitterbit) link
> our debug libs with /MDd and Axis links debug code with /MD.
>
> Thanks
> - Henrik
>
> ----- Original Message -----
> From: "Yukio Goto (JIRA)" <ax...@ws.apache.org>
> To: <ax...@ws.apache.org>
> Sent: Monday, February 27, 2006 9:05 AM
> Subject: [jira] Created: (AXISCPP-941) windows compilerarg
>
>
> windows compilerarg
> -------------------
>
> Key: AXISCPP-941
> URL: http://issues.apache.org/jira/browse/AXISCPP-941
> Project: Axis-C++
> Type: Bug
> Components: Build - ANT
> Environment: Java 1.5.0_06 ctasks 1.0b3
> Reporter: Yukio Goto
>
>
> buildInitialize.xml
> <compiler id="VisualC++" name="msvc" if="windows">
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
>
> is not work collect on Debug build .
>
> I think /MD _DEBUG NDEBUG Zi option is automatically added
> by ctasks debug or not
>
> so add debug property for compiler task
> and delete
>
> <compiler id="VisualC++" name="msvc" if="windows" debug="${debug}" >
>
> and delete that options
>
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
>
>
> --
> 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
>
>
>
>
----
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
byplayer
E-mail : byplayer@s7.dion.ne.jp
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Re: [jira] Created: (AXISCPP-941) windows compilerarg
Posted by Henrik Nordberg <he...@jitterbit.com>.
It would good if this issue was fixed before releasing 1.6 Beta.
As it is now, we can't debug on Windows because of this (VC++ reports
"invalid heap" when delete is called, probably because we (jitterbit) link
our debug libs with /MDd and Axis links debug code with /MD.
Thanks
- Henrik
----- Original Message -----
From: "Yukio Goto (JIRA)" <ax...@ws.apache.org>
To: <ax...@ws.apache.org>
Sent: Monday, February 27, 2006 9:05 AM
Subject: [jira] Created: (AXISCPP-941) windows compilerarg
windows compilerarg
-------------------
Key: AXISCPP-941
URL: http://issues.apache.org/jira/browse/AXISCPP-941
Project: Axis-C++
Type: Bug
Components: Build - ANT
Environment: Java 1.5.0_06 ctasks 1.0b3
Reporter: Yukio Goto
buildInitialize.xml
<compiler id="VisualC++" name="msvc" if="windows">
<compilerarg value="/MD"/>
<define name="_DEBUG" if="debug"/>
<define name="NDEBUG" unless="debug"/>
<compilerarg value="/Zi" if="debug"/>
is not work collect on Debug build .
I think /MD _DEBUG NDEBUG Zi option is automatically added
by ctasks debug or not
so add debug property for compiler task
and delete
<compiler id="VisualC++" name="msvc" if="windows" debug="${debug}" >
and delete that options
<compilerarg value="/MD"/>
<define name="_DEBUG" if="debug"/>
<define name="NDEBUG" unless="debug"/>
<compilerarg value="/Zi" if="debug"/>
--
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
[jira] Commented: (AXISCPP-941) windows compilerarg
Posted by "John Hawkins (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-941?page=comments#action_12368502 ]
John Hawkins commented on AXISCPP-941:
--------------------------------------
byplayer <by...@s7.dion.ne.jp>
02/03/2006 13:57:
I fund one more problem on windows debug version .
On windows, and use xerces, link Xerces_xxD.lib . But ant
build link Xerces_xx.lib .
so add buildInitialize.xml following property
<target name="checkIfDebug" if="debug">
<if>
<and>
<isset property="windows"/>
<equals arg1="${debug}" arg2="true" casesensitive="false"/>
</and>
<then>
...
<property name="HTTP.ChannelLibraryName_D" value="${HTTP.ChannelLibraryName}_D"/>
<property name="xerces.xmlParserLibrary_D" value="${xerces.xmlParserLibrary}D"/>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
<propertycopy property="HTTP.ChannelLibraryName" from="HTTP.ChannelLibraryName_D" override="true"/>
<propertycopy property="xerces.xmlParserLibrary" from="xerces.xmlParserLibrary_D" override="true"/>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</then>
</if>
</target>
> windows compilerarg
> -------------------
>
> Key: AXISCPP-941
> URL: http://issues.apache.org/jira/browse/AXISCPP-941
> Project: Axis-C++
> Type: Bug
> Components: Build - ANT
> Environment: Java 1.5.0_06 ctasks 1.0b3
> Reporter: Yukio Goto
>
> buildInitialize.xml
> <compiler id="VisualC++" name="msvc" if="windows">
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
> is not work collect on Debug build .
> I think /MD _DEBUG NDEBUG Zi option is automatically added
> by ctasks debug or not
> so add debug property for compiler task
> and delete
> <compiler id="VisualC++" name="msvc" if="windows" debug="${debug}" >
> and delete?that options
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
--
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
[jira] Commented: (AXISCPP-941) windows compilerarg
Posted by "Henrik Nordberg (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-941?page=comments#action_12369922 ]
Henrik Nordberg commented on AXISCPP-941:
-----------------------------------------
I changed buildInitialize.xml to add the proper /MDd flag for debugging, like so:
<compilerarg value="/MD" unless="debug"/>
<compilerarg value="/MDd" if="debug"/>
but then when I build with buildWithTraceAndDebug I get:
[cc] cl : Command line warning D4025 : overriding '/MDd' with '/MD'
Ant or cpptasks experts, any clues?
- Henrik
> windows compilerarg
> -------------------
>
> Key: AXISCPP-941
> URL: http://issues.apache.org/jira/browse/AXISCPP-941
> Project: Axis-C++
> Type: Bug
> Components: Build - ANT
> Environment: Java 1.5.0_06 ctasks 1.0b3
> Reporter: Yukio Goto
>
> buildInitialize.xml
> <compiler id="VisualC++" name="msvc" if="windows">
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
> is not work collect on Debug build .
> I think /MD _DEBUG NDEBUG Zi option is automatically added
> by ctasks debug or not
> so add debug property for compiler task
> and delete
> <compiler id="VisualC++" name="msvc" if="windows" debug="${debug}" >
> and delete?that options
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
--
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
[jira] Commented: (AXISCPP-941) windows compilerarg
Posted by "Adrian Dick (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-941?page=comments#action_12370128 ]
Adrian Dick commented on AXISCPP-941:
-------------------------------------
Hi,
Henrik:
You can add the location attribute, you'll need to experiment to find the correct position (start, mid or end).
Yukio:
I agree that it will look neater by simply using the debug="" attribute on the compiler.
However, we need to be careful that by doing this change we don't leave any occurances of ... if="debug or unless="debug" as these test for the presence of a property, not it's value, so will give false positives.
Adrian
> windows compilerarg
> -------------------
>
> Key: AXISCPP-941
> URL: http://issues.apache.org/jira/browse/AXISCPP-941
> Project: Axis-C++
> Type: Bug
> Components: Build - ANT
> Environment: Java 1.5.0_06 ctasks 1.0b3
> Reporter: Yukio Goto
>
> buildInitialize.xml
> <compiler id="VisualC++" name="msvc" if="windows">
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
> is not work collect on Debug build .
> I think /MD _DEBUG NDEBUG Zi option is automatically added
> by ctasks debug or not
> so add debug property for compiler task
> and delete
> <compiler id="VisualC++" name="msvc" if="windows" debug="${debug}" >
> and delete?that options
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
--
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
[jira] Commented: (AXISCPP-941) windows compilerarg
Posted by "Yukio Goto (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-941?page=comments#action_12370075 ]
Yukio Goto commented on AXISCPP-941:
------------------------------------
cpptasks add /MDd or /MD if compiler tasik is debug or not .
so, change buildInitialize.xml to
<compilerarg value="/MD" unless="debug"/>
<compilerarg value="/MDd" if="debug"/>
don't work just as you designed .
You delete
<compilerarg value="/MD" unless="debug"/>
line from buildInitialize.xml and change
<compiler id="VisualC++" name="msvc" if="windows">
line to
<compiler id="VisualC++" name="msvc" if="windows" debug="${debug}" >
.
and if you use xerces, you change buildInitialize.xml one more . see
Comment by John Hawkins [02/Mar/06 03:08 PM]
Thanks .
> windows compilerarg
> -------------------
>
> Key: AXISCPP-941
> URL: http://issues.apache.org/jira/browse/AXISCPP-941
> Project: Axis-C++
> Type: Bug
> Components: Build - ANT
> Environment: Java 1.5.0_06 ctasks 1.0b3
> Reporter: Yukio Goto
>
> buildInitialize.xml
> <compiler id="VisualC++" name="msvc" if="windows">
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
> is not work collect on Debug build .
> I think /MD _DEBUG NDEBUG Zi option is automatically added
> by ctasks debug or not
> so add debug property for compiler task
> and delete
> <compiler id="VisualC++" name="msvc" if="windows" debug="${debug}" >
> and delete?that options
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
--
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
[jira] Closed: (AXISCPP-941) windows compilerarg
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXISCPP-941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nadir amra closed AXISCPP-941.
------------------------------
Resolution: Incomplete
I guess I am not sure what has or has not been done. So I will close issue and if poblems arise, please open new issue.
> windows compilerarg
> -------------------
>
> Key: AXISCPP-941
> URL: https://issues.apache.org/jira/browse/AXISCPP-941
> Project: Axis-C++
> Issue Type: Bug
> Components: Build - ANT
> Environment: Java 1.5.0_06 ctasks 1.0b3
> Reporter: Yukio Goto
>
> buildInitialize.xml
> <compiler id="VisualC++" name="msvc" if="windows">
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
> is not work collect on Debug build .
> I think /MD _DEBUG NDEBUG Zi option is automatically added
> by ctasks debug or not
> so add debug property for compiler task
> and delete
> <compiler id="VisualC++" name="msvc" if="windows" debug="${debug}" >
> and delete?that options
> <compilerarg value="/MD"/>
> <define name="_DEBUG" if="debug"/>
> <define name="NDEBUG" unless="debug"/>
> <compilerarg value="/Zi" if="debug"/>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org