You should ask ARM experts. Tell them you have a program which calls
send and recv, and gets a warning. Maybe you need to #include an extra
header file, or maybe ARM doesn't support those calls.

You might also turn off the gcc switch to treat warnings as errors,
and see if it builds.

But don't just comment out the calls and expect the program to work!

Hal Finney

2010/8/8 ytz <[email protected]>:
>  hi,
> I want to cross-compile the trousers-0.3.3.2 :
> [r...@happy trousers-0.3.3.2]# sh bootstrap.sh
>
> [r...@happy trousers-0.3.3.2]# ./configure --host=arm-linux
> --with-openssl=/usr/local/openssl
> --prefix=/usr/tss
>
> [r...@happy trousers-0.3.3.2]# make
> -MT libtcs_a-rpc.o -MD -MP -MF .deps/libtcs_a-rpc.Tpo -c -o libtcs_a-rpc.o
> `test -f 'rpc/tcstp/rpc.c' || echo './'`rpc/tcstp/rpc.c
> rpc/tcstp/rpc.c: In function `recv_from_socket':
> rpc/tcstp/rpc.c:62: warning: implicit declaration of function `recv'
> rpc/tcstp/rpc.c: In function `send_to_socket':
> rpc/tcstp/rpc.c:85: warning: implicit declaration of function `send'
> make[2]: *** [libtcs_a-rpc.o] Error 1
> make[2]: Leaving directory `/home/ytz/files/trousers-0.3.3.2/src/tcs'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/ytz/files/trousers-0.3.3.2/src'
> make: *** [all-recursive] Error 1
>
> although it appears some errors, when I annotate
> ~/trousers-0.3.3.2/src/tcs/rpc/tcstp/rpc/tcstp/rpc.c:62 and
> ~/trousers-0.3.3.2/src/tcs/rpc/tcstp/rpc/tcstp/rpc.c:85
> like this:
> int
> recv_from_socket(int sock, void *buffer, int size)
> {
>         int recv_size = 0, recv_total = 0;
>
>       while (recv_total < size) {
>               errno = 0;
>               /*if ((recv_size = recv(sock, buffer+recv_total, 
> size-recv_total, 0)) <=
> 0) {      //line 62
>                       if (recv_size < 0) {
>                               if (errno == EINTR)
>                                       continue;
>                               LogError("Socket receive connection error: 
> %s.", strerror(errno));
>                       } else {
>                               LogDebug("Socket connection closed.");
>                       }
>
>                       return -1;
>               }*/
>               recv_total += recv_size;
>       }
>
>       return recv_total;
> }
>
> int
> send_to_socket(int sock, void *buffer, int size)
> {
>       int send_size = 0, send_total = 0;
>
>       while (send_total < size) {
>               /*if ((send_size = send(sock, buffer+send_total, 
> size-send_total, 0)) < 0)
> {         //line 85
>                       LogError("Socket send connection error: %s.", 
> strerror(errno));
>                       return -1;
>               }*/
>               send_total += send_size;
>       }
>
>       return send_total;
> }
>
> then it make successfully.
>
> why does it appear the error?
>
> how to resolve it?
>
> Thanks for suggestions.
>
> ytz
>
>
> ________________________________
> 您想拥有和网易免费邮箱一样强大的软件吗?
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> TrouSerS-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/trousers-users
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to