error on compile
Hello,
we're trying to install wso2 (1.3.2) for php (5.2.6) on a gentoo server (64bits).
configure works well, but the make throws an error :
rosteig wso2-wsf-php-src-1.3.2 # make
make all-recursive
make[1]: Entering directory `/opt/wso2-wsf-php-src-1.3.2'
Making all in wsf_c
make[2]: Entering directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c'
make all-recursive
make[3]: Entering directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c'
Making all in axis2c
make[4]: Entering directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c'
make all-recursive
make[5]: Entering directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c'
Making all in util
make[6]: Entering directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util'
make all-recursive
make[7]: Entering directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util'
Making all in src
make[8]: Entering directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util/src'
Making all in platforms/unix
make[9]: Entering directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util/src/platforms/unix'
if /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -MT uuid_gen_unix.lo -MD -MP -MF ".deps/uuid_gen_unix.Tpo" -c -o uuid_gen_unix.lo uuid_gen_unix.c; \
then mv -f ".deps/uuid_gen_unix.Tpo" ".deps/uuid_gen_unix.Plo"; else rm -f ".deps/uuid_gen_unix.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -I../../../include/platforms -I../../../include/platforms/unix -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -MT uuid_gen_unix.lo -MD -MP -MF .deps/uuid_gen_unix.Tpo -c uuid_gen_unix.c -fPIC -DPIC -o .libs/uuid_gen_unix.o
uuid_gen_unix.c: In function 'axutil_uuid_get_mac_addr':
uuid_gen_unix.c:218: error: storage size of 'ifr' isn't known
uuid_gen_unix.c:220: error: storage size of 'ifc' isn't known
uuid_gen_unix.c:236: error: invalid application of 'sizeof' to incomplete type 'struct ifreq'
uuid_gen_unix.c:236: error: increment of pointer to unknown structure
uuid_gen_unix.c:236: error: arithmetic on pointer to an incomplete type
uuid_gen_unix.c:238: error: dereferencing pointer to incomplete type
uuid_gen_unix.c:242: error: 'IFF_LOOPBACK' undeclared (first use in this function)
uuid_gen_unix.c:242: error: (Each undeclared identifier is reported only once
uuid_gen_unix.c:242: error: for each function it appears in.)
uuid_gen_unix.c:220: warning: unused variable 'ifc'
uuid_gen_unix.c:218: warning: unused variable 'ifr'
make[9]: *** [uuid_gen_unix.lo] Error 1
make[9]: Leaving directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util/src/platforms/unix'
make[8]: *** [all-recursive] Error 1
make[8]: Leaving directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util/src'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c/axis2c'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/wso2-wsf-php-src-1.3.2/wsf_c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/wso2-wsf-php-src-1.3.2'
make: *** [all] Error 2
Can you help us?
Thanks
- Login or register to post comments
- Printer friendly version
- 204 reads











Easiest solution for this is
Easiest solution for this is (notice the comment out line):
vi /usr/include/linux/if.h
/*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* Global definitions for the INET interface module.
*
* Version: @(#)if.h 1.0.2 04/18/93
*
* Authors: Original taken from Berkeley UNIX 4.3, (c) UCB 1982-1988
* Ross Biro
* Fred N. van Kempen,
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#ifndef _LINUX_IF_H
# include
/* # define _LINUX_IF_H */ <-- Comment out this line
#endif
it works?
I've tried and compilation fails in the same way.
That solution worked for
That solution worked for version 1.3.2. For version 2.0.0 I am back to:
#ifndef _LINUX_IF_H
# include
# define _LINUX_IF_H
#endif
#ifndef _LINUX_IF_H
#define _LINUX_IF_H
I encountered some issues compiling 2.0.0 but I cannot recall what they were at this time. It may be as simple as changing back to what is above.