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 "Olivier Mengué (JIRA)" <ji...@apache.org> on 2010/01/05 14:40:54 UTC

[jira] Created: (AXIS2C-1425) non-guarded use of getopt.h

non-guarded use of getopt.h
---------------------------

                 Key: AXIS2C-1425
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1425
             Project: Axis2-C
          Issue Type: Bug
          Components: platforms/unix
         Environment: AIX 5.2
./configure CC=cc CFLAGS=-qnolm CXX=xlC CXXFLAGS=-qnolm --enable-guththila=yes
            Reporter: Olivier Mengué


#include <getopt.h> does not work on AIX 5.2 because getopt.h does not exist.

util/include/platforms/unix/axutil_unix.h has a such include.

Here is the build log:

Making all in platforms/unix
/home/prodfs/otp/axis2c-src-1.6.0/util/src/platforms/unix
        source='uuid_gen_unix.c' object='uuid_gen_unix.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/sh ../../../depcomp /bin/sh ../../../libtool --tag=CC --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -o uuid_gen_unix.lo uuid_gen_unix.c
 cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -M uuid_gen_unix.c -DPIC -o .libs/uuid_gen_unix.o
"../../../include/platforms/unix/axutil_unix.h", line 119.10: 1506-296 (S) #include file <getopt.h> not found.
"../../../include/platforms/unix/axutil_unix.h", line 125.33: 1506-275 (S) Unexpected text __useconds encountered.
"../../../include/platforms/unix/axutil_unix.h", line 125.12: 1506-282 (S) The type of the parameters must be specified in a prototype.
make: The error code from the last command is 1.



For information, here is where getopt is defined on AIX:

# grep 'getopt(' /usr/include/*.h
/usr/include/stdio.h:extern int      getopt();
/usr/include/stdio.h:extern int      getopt(int, char * const [], const char*);
/usr/include/stdlib.h:  extern int                      getopt();
/usr/include/stdlib.h:  extern int                      getopt(int, char* const*, const char*);
/usr/include/unistd.h:  extern  int     getopt();
/usr/include/unistd.h:  extern  int     getopt(int, char* const*, const char*);



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AXIS2C-1425) non-guarded use of getopt.h

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

S.Uthaiyashankar resolved AXIS2C-1425.
--------------------------------------

    Resolution: Duplicate

This issue is fixed with AXIS2C-1422

> non-guarded use of getopt.h
> ---------------------------
>
>                 Key: AXIS2C-1425
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1425
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: platforms/unix
>    Affects Versions: 1.6.0
>         Environment: AIX 5.2
> ./configure CC=cc CFLAGS=-qnolm CXX=xlC CXXFLAGS=-qnolm --enable-guththila=yes
>            Reporter: Olivier Mengué
>            Assignee: S.Uthaiyashankar
>             Fix For: 1.7.0
>
>
> #include <getopt.h> does not work on AIX 5.2 because getopt.h does not exist.
> util/include/platforms/unix/axutil_unix.h has a such include.
> Here is the build log:
> Making all in platforms/unix
> /home/prodfs/otp/axis2c-src-1.6.0/util/src/platforms/unix
>         source='uuid_gen_unix.c' object='uuid_gen_unix.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/sh ../../../depcomp /bin/sh ../../../libtool --tag=CC --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -o uuid_gen_unix.lo uuid_gen_unix.c
>  cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -M uuid_gen_unix.c -DPIC -o .libs/uuid_gen_unix.o
> "../../../include/platforms/unix/axutil_unix.h", line 119.10: 1506-296 (S) #include file <getopt.h> not found.
> "../../../include/platforms/unix/axutil_unix.h", line 125.33: 1506-275 (S) Unexpected text __useconds encountered.
> "../../../include/platforms/unix/axutil_unix.h", line 125.12: 1506-282 (S) The type of the parameters must be specified in a prototype.
> make: The error code from the last command is 1.
> For information, here is where getopt is defined on AIX:
> # grep 'getopt(' /usr/include/*.h
> /usr/include/stdio.h:extern int      getopt();
> /usr/include/stdio.h:extern int      getopt(int, char * const [], const char*);
> /usr/include/stdlib.h:  extern int                      getopt();
> /usr/include/stdlib.h:  extern int                      getopt(int, char* const*, const char*);
> /usr/include/unistd.h:  extern  int     getopt();
> /usr/include/unistd.h:  extern  int     getopt(int, char* const*, const char*);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2C-1425) non-guarded use of getopt.h

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

Olivier Mengué updated AXIS2C-1425:
-----------------------------------

    Affects Version/s: 1.6.0

> non-guarded use of getopt.h
> ---------------------------
>
>                 Key: AXIS2C-1425
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1425
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: platforms/unix
>    Affects Versions: 1.6.0
>         Environment: AIX 5.2
> ./configure CC=cc CFLAGS=-qnolm CXX=xlC CXXFLAGS=-qnolm --enable-guththila=yes
>            Reporter: Olivier Mengué
>
> #include <getopt.h> does not work on AIX 5.2 because getopt.h does not exist.
> util/include/platforms/unix/axutil_unix.h has a such include.
> Here is the build log:
> Making all in platforms/unix
> /home/prodfs/otp/axis2c-src-1.6.0/util/src/platforms/unix
>         source='uuid_gen_unix.c' object='uuid_gen_unix.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/sh ../../../depcomp /bin/sh ../../../libtool --tag=CC --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -o uuid_gen_unix.lo uuid_gen_unix.c
>  cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -M uuid_gen_unix.c -DPIC -o .libs/uuid_gen_unix.o
> "../../../include/platforms/unix/axutil_unix.h", line 119.10: 1506-296 (S) #include file <getopt.h> not found.
> "../../../include/platforms/unix/axutil_unix.h", line 125.33: 1506-275 (S) Unexpected text __useconds encountered.
> "../../../include/platforms/unix/axutil_unix.h", line 125.12: 1506-282 (S) The type of the parameters must be specified in a prototype.
> make: The error code from the last command is 1.
> For information, here is where getopt is defined on AIX:
> # grep 'getopt(' /usr/include/*.h
> /usr/include/stdio.h:extern int      getopt();
> /usr/include/stdio.h:extern int      getopt(int, char * const [], const char*);
> /usr/include/stdlib.h:  extern int                      getopt();
> /usr/include/stdlib.h:  extern int                      getopt(int, char* const*, const char*);
> /usr/include/unistd.h:  extern  int     getopt();
> /usr/include/unistd.h:  extern  int     getopt(int, char* const*, const char*);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2C-1425) non-guarded use of getopt.h

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

S.Uthaiyashankar updated AXIS2C-1425:
-------------------------------------

    Fix Version/s: 1.7.0
         Assignee: S.Uthaiyashankar

> non-guarded use of getopt.h
> ---------------------------
>
>                 Key: AXIS2C-1425
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1425
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: platforms/unix
>    Affects Versions: 1.6.0
>         Environment: AIX 5.2
> ./configure CC=cc CFLAGS=-qnolm CXX=xlC CXXFLAGS=-qnolm --enable-guththila=yes
>            Reporter: Olivier Mengué
>            Assignee: S.Uthaiyashankar
>             Fix For: 1.7.0
>
>
> #include <getopt.h> does not work on AIX 5.2 because getopt.h does not exist.
> util/include/platforms/unix/axutil_unix.h has a such include.
> Here is the build log:
> Making all in platforms/unix
> /home/prodfs/otp/axis2c-src-1.6.0/util/src/platforms/unix
>         source='uuid_gen_unix.c' object='uuid_gen_unix.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/sh ../../../depcomp /bin/sh ../../../libtool --tag=CC --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -o uuid_gen_unix.lo uuid_gen_unix.c
>  cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -M uuid_gen_unix.c -DPIC -o .libs/uuid_gen_unix.o
> "../../../include/platforms/unix/axutil_unix.h", line 119.10: 1506-296 (S) #include file <getopt.h> not found.
> "../../../include/platforms/unix/axutil_unix.h", line 125.33: 1506-275 (S) Unexpected text __useconds encountered.
> "../../../include/platforms/unix/axutil_unix.h", line 125.12: 1506-282 (S) The type of the parameters must be specified in a prototype.
> make: The error code from the last command is 1.
> For information, here is where getopt is defined on AIX:
> # grep 'getopt(' /usr/include/*.h
> /usr/include/stdio.h:extern int      getopt();
> /usr/include/stdio.h:extern int      getopt(int, char * const [], const char*);
> /usr/include/stdlib.h:  extern int                      getopt();
> /usr/include/stdlib.h:  extern int                      getopt(int, char* const*, const char*);
> /usr/include/unistd.h:  extern  int     getopt();
> /usr/include/unistd.h:  extern  int     getopt(int, char* const*, const char*);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2C-1425) non-guarded use of getopt.h

Posted by "Olivier Mengué (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796659#action_12796659 ] 

Olivier Mengué commented on AXIS2C-1425:
----------------------------------------

Suggested fix:
1. configure.ac should check for the presence of getopt.h: AC_CHECK_HEADERS([getopt.h])
2. util/include/platforms/unix/axutil_unix.h should check for HAVE_GETOPT_H around the #include <getopt.h>

> non-guarded use of getopt.h
> ---------------------------
>
>                 Key: AXIS2C-1425
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1425
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: platforms/unix
>         Environment: AIX 5.2
> ./configure CC=cc CFLAGS=-qnolm CXX=xlC CXXFLAGS=-qnolm --enable-guththila=yes
>            Reporter: Olivier Mengué
>
> #include <getopt.h> does not work on AIX 5.2 because getopt.h does not exist.
> util/include/platforms/unix/axutil_unix.h has a such include.
> Here is the build log:
> Making all in platforms/unix
> /home/prodfs/otp/axis2c-src-1.6.0/util/src/platforms/unix
>         source='uuid_gen_unix.c' object='uuid_gen_unix.lo' libtool=yes DEPDIR=.deps depmode=aix /bin/sh ../../../depcomp /bin/sh ../../../libtool --tag=CC --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -o uuid_gen_unix.lo uuid_gen_unix.c
>  cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -D_LARGEFILE64_SOURCE -c -M uuid_gen_unix.c -DPIC -o .libs/uuid_gen_unix.o
> "../../../include/platforms/unix/axutil_unix.h", line 119.10: 1506-296 (S) #include file <getopt.h> not found.
> "../../../include/platforms/unix/axutil_unix.h", line 125.33: 1506-275 (S) Unexpected text __useconds encountered.
> "../../../include/platforms/unix/axutil_unix.h", line 125.12: 1506-282 (S) The type of the parameters must be specified in a prototype.
> make: The error code from the last command is 1.
> For information, here is where getopt is defined on AIX:
> # grep 'getopt(' /usr/include/*.h
> /usr/include/stdio.h:extern int      getopt();
> /usr/include/stdio.h:extern int      getopt(int, char * const [], const char*);
> /usr/include/stdlib.h:  extern int                      getopt();
> /usr/include/stdlib.h:  extern int                      getopt(int, char* const*, const char*);
> /usr/include/unistd.h:  extern  int     getopt();
> /usr/include/unistd.h:  extern  int     getopt(int, char* const*, const char*);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.