[ 
https://issues.apache.org/jira/browse/AXIS2C-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Mengué updated AXIS2C-1423:
-----------------------------------

    Description: 
util/include/platforms/unix/axutil_unix.h contains the following block:

    /* for file access handling */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
extern int usleep (__useconds_t __useconds);
#endif                          /*HAVE_UNISTD_H */


The problem is that:
- usleep() is already declared in unistd.h : extern int              
usleep(useconds_t);
- __useconds_t does not exists on AIX

This error blocks the build on AIX 5.2.


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.

  was:
util/include/platforms/unix/axutil_unix.h contains the following block:

    /* for file access handling */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
extern int usleep (__useconds_t __useconds);
#endif                          /*HAVE_UNISTD_H */


The problem is that:
- usleep() is already declared in unistd.h : extern int              
usleep(useconds_t);
- __useconds_t does not exists on AIX

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.


> util/include/platforms/unix/axutil_unix.h: invalid duplicate declaration of 
> usleep
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1423
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1423
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: build system (Unix/Linux)
>    Affects Versions: 1.6.0
>         Environment: AIX 5.2
>            Reporter: Olivier Mengué
>
> util/include/platforms/unix/axutil_unix.h contains the following block:
>     /* for file access handling */
> #ifdef HAVE_UNISTD_H
> #include <unistd.h>
> extern int usleep (__useconds_t __useconds);
> #endif                          /*HAVE_UNISTD_H */
> The problem is that:
> - usleep() is already declared in unistd.h : extern int              
> usleep(useconds_t);
> - __useconds_t does not exists on AIX
> This error blocks the build on AIX 5.2.
> 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.

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

Reply via email to