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 "Danushka Menikkumbura (JIRA)" <ji...@apache.org> on 2008/04/08 11:17:24 UTC

[jira] Created: (AXIS2C-1104) Name collision when using "axutil_dir_windows.h"

Name collision when using "axutil_dir_windows.h"
------------------------------------------------

                 Key: AXIS2C-1104
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1104
             Project: Axis2-C
          Issue Type: Bug
          Components: util
    Affects Versions: Current (Nightly)
            Reporter: Danushka Menikkumbura


This happened when I was trying to write an extension to PERL with the aid of SWIG. I came across two issues as mentioned below.

1. The struct name DIR declared in axutil_dir_windows.h collides with the DIR struct declared in dirent.h that comes with the standard PERL installation.

2. I get the following compile error as a result of the functions opendir, closedir, readdir and rewinddir declared in axutil_dir_windows.h.
     error C2059: syntax error : '('.

   This should also be due to name conflicts as the file "win32iop.h" that comes with the standard PERL installation has a set of macros defined with similar names.


-- 
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


[jira] Resolved: (AXIS2C-1104) Name collision when using "axutil_dir_windows.h"

Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

S.Uthaiyashankar resolved AXIS2C-1104.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.1
         Assignee: S.Uthaiyashankar

Fixed

> Name collision when using "axutil_dir_windows.h"
> ------------------------------------------------
>
>                 Key: AXIS2C-1104
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1104
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: Danushka Menikkumbura
>            Assignee: S.Uthaiyashankar
>             Fix For: 1.3.1
>
>         Attachments: AXIS2C-1104.patch
>
>
> This happened when I was trying to write an extension to PERL with the aid of SWIG. I came across two issues as mentioned below.
> 1. The struct name DIR declared in axutil_dir_windows.h collides with the DIR struct declared in dirent.h that comes with the standard PERL installation.
> 2. I get the following compile error as a result of the functions opendir, closedir, readdir and rewinddir declared in axutil_dir_windows.h.
>      error C2059: syntax error : '('.
>    This should also be due to name conflicts as the file "win32iop.h" that comes with the standard PERL installation has a set of macros defined with similar names.

-- 
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


[jira] Updated: (AXIS2C-1104) Name collision when using "axutil_dir_windows.h"

Posted by "Danushka Menikkumbura (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danushka Menikkumbura updated AXIS2C-1104:
------------------------------------------

    Attachment: AXIS2C-1104.patch

Please find the attached patch to fix the issue.

> Name collision when using "axutil_dir_windows.h"
> ------------------------------------------------
>
>                 Key: AXIS2C-1104
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1104
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: Danushka Menikkumbura
>         Attachments: AXIS2C-1104.patch
>
>
> This happened when I was trying to write an extension to PERL with the aid of SWIG. I came across two issues as mentioned below.
> 1. The struct name DIR declared in axutil_dir_windows.h collides with the DIR struct declared in dirent.h that comes with the standard PERL installation.
> 2. I get the following compile error as a result of the functions opendir, closedir, readdir and rewinddir declared in axutil_dir_windows.h.
>      error C2059: syntax error : '('.
>    This should also be due to name conflicts as the file "win32iop.h" that comes with the standard PERL installation has a set of macros defined with similar names.

-- 
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


[jira] Closed: (AXIS2C-1104) Name collision when using "axutil_dir_windows.h"

Posted by "Danushka Menikkumbura (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danushka Menikkumbura closed AXIS2C-1104.
-----------------------------------------


> Name collision when using "axutil_dir_windows.h"
> ------------------------------------------------
>
>                 Key: AXIS2C-1104
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1104
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: Danushka Menikkumbura
>            Assignee: S.Uthaiyashankar
>             Fix For: 1.4.0
>
>         Attachments: AXIS2C-1104.patch
>
>
> This happened when I was trying to write an extension to PERL with the aid of SWIG. I came across two issues as mentioned below.
> 1. The struct name DIR declared in axutil_dir_windows.h collides with the DIR struct declared in dirent.h that comes with the standard PERL installation.
> 2. I get the following compile error as a result of the functions opendir, closedir, readdir and rewinddir declared in axutil_dir_windows.h.
>      error C2059: syntax error : '('.
>    This should also be due to name conflicts as the file "win32iop.h" that comes with the standard PERL installation has a set of macros defined with similar names.

-- 
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


[jira] Commented: (AXIS2C-1104) Name collision when using "axutil_dir_windows.h"

Posted by "Danushka Menikkumbura (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586752#action_12586752 ] 

Danushka Menikkumbura commented on AXIS2C-1104:
-----------------------------------------------

Please note that I prefixed the method names scandir and readdir_r also with axis2_ to make them consistent with the others.

> Name collision when using "axutil_dir_windows.h"
> ------------------------------------------------
>
>                 Key: AXIS2C-1104
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1104
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: Danushka Menikkumbura
>         Attachments: AXIS2C-1104.patch
>
>
> This happened when I was trying to write an extension to PERL with the aid of SWIG. I came across two issues as mentioned below.
> 1. The struct name DIR declared in axutil_dir_windows.h collides with the DIR struct declared in dirent.h that comes with the standard PERL installation.
> 2. I get the following compile error as a result of the functions opendir, closedir, readdir and rewinddir declared in axutil_dir_windows.h.
>      error C2059: syntax error : '('.
>    This should also be due to name conflicts as the file "win32iop.h" that comes with the standard PERL installation has a set of macros defined with similar names.

-- 
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


[jira] Commented: (AXIS2C-1104) Name collision when using "axutil_dir_windows.h"

Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586774#action_12586774 ] 

S.Uthaiyashankar commented on AXIS2C-1104:
------------------------------------------

Patch applyed. Thanks Danushka for the patch.

> Name collision when using "axutil_dir_windows.h"
> ------------------------------------------------
>
>                 Key: AXIS2C-1104
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1104
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: Danushka Menikkumbura
>             Fix For: 1.3.1
>
>         Attachments: AXIS2C-1104.patch
>
>
> This happened when I was trying to write an extension to PERL with the aid of SWIG. I came across two issues as mentioned below.
> 1. The struct name DIR declared in axutil_dir_windows.h collides with the DIR struct declared in dirent.h that comes with the standard PERL installation.
> 2. I get the following compile error as a result of the functions opendir, closedir, readdir and rewinddir declared in axutil_dir_windows.h.
>      error C2059: syntax error : '('.
>    This should also be due to name conflicts as the file "win32iop.h" that comes with the standard PERL installation has a set of macros defined with similar names.

-- 
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