Compile failed on fedora 9 for wso2-wsf-php-src-1.3.2

View: New views
6 Messages — Rating Filter:   Alert me  

Compile failed on fedora 9 for wso2-wsf-php-src-1.3.2

by Marcel Bariou :: Rate this Message:

| View Threaded | Show Only this Message

Compile failure with following message

network_handler.c:81: error: 'struct hostent' has no member named 'h_addr'

Has somebody an idea ?

Thanks

_______________________________________________
Wsf-php-user mailing list
Wsf-php-user@...
http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user

Re: Compile failed on fedora 9 for wso2-wsf-php-src-1.3.2

by php nightly builds :: Rate this Message:

| View Threaded | Show Only this Message

Hi,
Can you please send us a bit more descriptive error message, so we can
have a look?

Marcel Bariou wrote:

> Compile failure with following message
>
> network_handler.c:81: error: 'struct hostent' has no member named
> 'h_addr'
>
> Has somebody an idea ?
>
> Thanks
>
> _______________________________________________
> Wsf-php-user mailing list
> Wsf-php-user@...
> http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.100 / Virus Database: 270.3.0/1498 - Release Date: 6/11/2008 7:13 PM
>  


_______________________________________________
Wsf-php-user mailing list
Wsf-php-user@...
http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user

Re: Compile failed on fedora 9 for wso2-wsf-php-src-1.3.2

by Marcel Bariou :: Rate this Message:

| View Threaded | Show Only this Message

Sorry for the poor information .... here I give you :
1 - Error messages for the total build  from the source *.tar.gz
2 - Error message for the PECL install with the *tgz

Hope that will help Thanks - Marcel

 From the complete source File ...src-1.3.2.tar.gz

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Istomp -g -O2
-D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -MT
class_loader.lo -MD -MP -MF .deps/class_loader.Tpo -c class_loader.c  
-fPIC -DPIC -o .libs/class_loader.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Istomp -g -O2
-D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -MT
class_loader.lo -MD -MP -MF .deps/class_loader.Tpo -c class_loader.c -o
class_loader.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I.. -I../include -Istomp    -g -O2 -D_LARGEFILE64_SOURCE -ansi
-Wall -Wno-implicit-function-declaration   -MT network_handler.lo -MD
-MP -MF ".deps/network_handler.Tpo" -c -o network_handler.lo
network_handler.c; \
       then mv -f ".deps/network_handler.Tpo"
".deps/network_handler.Plo"; else rm -f ".deps/network_handler.Tpo";
exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Istomp -g -O2
-D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -MT
network_handler.lo -MD -MP -MF .deps/network_handler.Tpo -c
network_handler.c  -fPIC -DPIC -o .libs/network_handler.o
network_handler.c: In function 'axutil_network_handler_open_socket':
network_handler.c:81: error: 'struct hostent' has no member named 'h_addr'
make[9]: *** [network_handler.lo] Error 1
make[9]: Leaving directory
`/usr/local/xtra_targz/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util/src'
make[8]: *** [all-recursive] Error 1
make[8]: Leaving directory
`/usr/local/xtra_targz/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util/src'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory
`/usr/local/xtra_targz/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util'
make[6]: *** [all] Error 2
make[6]: Leaving directory
`/usr/local/xtra_targz/wso2-wsf-php-src-1.3.2/wsf_c/axis2c/util'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/usr/local/xtra_targz/wso2-wsf-php-src-1.3.2/wsf_c/axis2c'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/usr/local/xtra_targz/wso2-wsf-php-src-1.3.2/wsf_c/axis2c'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/local/xtra_targz/wso2-wsf-php-src-1.3.2/wsf_c'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/local/xtra_targz/wso2-wsf-php-src-1.3.2/wsf_c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/xtra_targz/wso2-wsf-php-src-1.3.2'
make: *** [all] Error 2

======================================================
======================================================
======================================================

I make also a trial with the dedicated *tgz file to PECL , and I have
the following message :


gcc -I. -I/var/tmp/wso2_wsf_php -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/wso2_wsf_php-1.3.2/include
-I/var/tmp/pear-build-root/wso2_wsf_php-1.3.2/main
-I/var/tmp/wso2_wsf_php -I/usr/include/php -I/usr/include/php/main
-I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext
-I/usr/include/php/ext/date/lib -I/opt/wso2/wsf_c/include/axis2-1.4.0
-I/opt/wso2/wsf_c/include/sandesha2-0.91
-I/opt/wso2/wsf_c/include/rampart-1.2.0 -I/usr/include/libxml2
-DHAVE_CONFIG_H -g -O2 -c /var/tmp/wso2_wsf_php/src/wsf.c  -fPIC -DPIC
-o src/.libs/wsf.o
In file included from /var/tmp/wso2_wsf_php/src/wsf.h:36,
                from /var/tmp/wso2_wsf_php/src/wsf.c:24:
/var/tmp/wso2_wsf_php/src/wsf_worker.h:20:25: error: axis2_const.h: No
such file or directory
/var/tmp/wso2_wsf_php/src/wsf_worker.h:21:27: error: axis2_defines.h: No
such file or directory
/var/tmp/wso2_wsf_php/src/wsf_worker.h:22:24: error: axutil_env.h: No
such file or directory
/var/tmp/wso2_wsf_php/src/wsf_worker.h:23:28: error: axis2_conf_ctx.h:
No such file or directory
In file included from /var/tmp/wso2_wsf_php/src/wsf_worker.h:25,
                from /var/tmp/wso2_wsf_php/src/wsf.h:36,
                from /var/tmp/wso2_wsf_php/src/wsf.c:24:
/var/tmp/wso2_wsf_php/src/wsf_common.h:31:23: error: axis2_svc.h: No
such file or directory
/var/tmp/wso2_wsf_php/src/wsf_common.h:32:28: error: axis2_msg_recv.h:
No such file or directory
/var/tmp/wso2_wsf_php/src/wsf_common.h:33:19: error: axiom.h: No such
file or directory
In file included from /var/tmp/wso2_wsf_php/src/wsf_worker.h:25,
                from /var/tmp/wso2_wsf_php/src/wsf.h:36,
                from /var/tmp/wso2_wsf_php/src/wsf.c:24:




Marcus Dushshantha Chandradasa a écrit :

> Hi,
> Can you please send us a bit more descriptive error message, so we can
> have a look?
> Marcel Bariou wrote:
>> Compile failure with following message
>>
>> network_handler.c:81: error: 'struct hostent' has no member named
>> 'h_addr'
>>
>> Has somebody an idea ?
>>
>> Thanks
>>
>> _______________________________________________
>> Wsf-php-user mailing list
>> Wsf-php-user@...
>> http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1498 -
>> Release Date: 6/11/2008 7:13 PM
>>  
>
>
> _______________________________________________
> Wsf-php-user mailing list
> Wsf-php-user@...
> http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user
>


_______________________________________________
Wsf-php-user mailing list
Wsf-php-user@...
http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user

Re: Compile failed on fedora 9 for wso2-wsf-php-src-1.3.2

by Chintana Wilamuna-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Thu, 2008-06-12 at 13:18 +0200, Marcel Bariou wrote:

> Compile failure with following message
>
> network_handler.c:81: error: 'struct hostent' has no member named 'h_addr'
>
> Has somebody an idea ?

Hi Marcel,

You have to compile the package with -D_GNU_SOURCE.  A one line patch is
submitted to Apache Axis2/C [1].  I think the patch has not been applied
yet.  Since WSF/PHP includes Axis2/C it'll be fixed once the patch in.

Meanwhile try to compile the application like,

$ export CFLAGS="-D_GNU_SOURCE"
$ ./configure
$ make

[1] http://issues.apache.org/jira/browse/AXIS2C-1158

Bye,

    -Chintana



--
http://engwar.com/


_______________________________________________
Wsf-php-user mailing list
Wsf-php-user@...
http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user

Re: Compile failed on fedora 9 for wso2-wsf-php-src-1.3.2

by Marcel Bariou :: Rate this Message:

| View Threaded | Show Only this Message

Hi Chintana
It seems to work. I compile wso2-wsf-c and wso2-wsf_php-c in the sam way it's ok
Thanks for your help

Marcel

Chintana Wilamuna a écrit :
On Thu, 2008-06-12 at 13:18 +0200, Marcel Bariou wrote:

  
Compile failure with following message

network_handler.c:81: error: 'struct hostent' has no member named 'h_addr'

Has somebody an idea ?
    

Hi Marcel,

You have to compile the package with -D_GNU_SOURCE.  A one line patch is
submitted to Apache Axis2/C [1].  I think the patch has not been applied
yet.  Since WSF/PHP includes Axis2/C it'll be fixed once the patch in.

Meanwhile try to compile the application like,

$ export CFLAGS="-D_GNU_SOURCE"
$ ./configure
$ make

[1] http://issues.apache.org/jira/browse/AXIS2C-1158

Bye,

    -Chintana



  


_______________________________________________
Wsf-php-user mailing list
Wsf-php-user@...
http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user

Re: Compile failed on fedora 9 for wso2-wsf-php-src-1.3.2

by Chintana Wilamuna-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Thu, 2008-06-12 at 17:24 +0200, Marcel Bariou wrote:

> It seems to work. I compile wso2-wsf-c and wso2-wsf_php-c in the sam
> way it's ok
> Thanks for your help
>
Sure, you're welcome.

Bye,

    -Chintana

--
http://engwar.com/


_______________________________________________
Wsf-php-user mailing list
Wsf-php-user@...
http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user