nanogui: cross-compile for mips
Subject:
Re: cross-compile for mips
From:
yi yang ####@####.####
Date:
15 Sep 2000 04:01:09 -0000
Message-Id: <20000915040246.10136.qmail@web511.mail.yahoo.com>
Ok, I've fixed the problem this way.
add the following lines to nanox/client.c,
nanox/srvnet.c, demos/vnc/vncviewer/sockets.c
#ifndef SOCK_STREAM
#define SOCK_STREAM 2 //#include <asm/socket.h>
#endif
because in asm-mips/socket.h the code is like this:
/* Nast libc5 fixup - bletch */
#if defined(__KERNEL__)
/* Socket types. */
#define SOCK_STREAM 2 /* stream (connection) socket */
#endif
--- Greg Haerr ####@####.#### wrote:
> : Actually, I've already find the SOCK_STREAM
> define.
> : It's in asm/socket.h
> : But I'm not sure if add it directly is right,
> because
> : there is a "#include <sys/socket.h>" exists.
>
> Remove or change that to <asm/socket.h>. Let me
> know what works, and I'll change it please.
>
>
> :
> : How about the other error?
> : *** No rule to make target
> : `/home/yy/microwin/src/lib/libnano-X.a'
>
> That will work when the above is fixed.
>
> Greg
>
>
>
>
> :
> : ???
> :
> :
> : --- Greg Haerr ####@####.#### wrote:
> : > : Compiling client.c ...
> : > : client.c: In function `GrOpen':
> : > : client.c:256: `SOCK_STREAM' undeclared (first
> use
> : > this
> : > : function)
> : >
> : > Search the cross-compiler's include directory
> and
> : > find SOCK_STREAM. Insert that include
> : > file into client.c. Do thse same for the
> sockets.c
> : > file below.
> : >
> : > Please let me know which include file defines
> : > SOCK_STREAM for mips. This problem
> : > has been on the list before, and I've forgotten
> : > the answer.
> : >
> : > Regards,
> : >
> : > Greg
> : >
> : >
> : >
> : > : Compiling sockets.c ...
> : > : sockets.c: In function `ConnectToTcpAddr':
> : > : sockets.c:110: `SOCK_STREAM' undeclared (first
> use
> : > : this function)
> : > : sockets.c:110: (Each undeclared identifier is
> : > reported
> : > : only once
> : > :
> : >
> :
> :
> : __________________________________________________
> : Do You Yahoo!?
> : Yahoo! Mail - Free email you can access from
> anywhere!
> : http://mail.yahoo.com/
> :
>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/