Re: /usr/lib/libz.so: could not read symbols: File in wrong format

1,094 views
Skip to first unread message

Avery Pennarun

unread,
Sep 30, 2008, 1:28:18 PM9/30/08
to wvstrea...@googlegroups.com
2008/9/30 henr...@gmail.com <henr...@gmail.com>:
> Sorry...Avery
> Previous mail's question was solved, becouse some Makefile i don't
> modify correctly.
> This mail's question FITH, i also encounter and i fix it by the mail's
> solution.

Hi Henry,

Please change the subject line when you ask an entirely new question.
This thread is already getting far too long and unwieldy, and that
makes it hard for people to find in a search engine.

Anyway, it seems to me that your problem is this message:

> --> Back in /root/wvstreams...
> linking libwvutils.so...
> /usr/lib/libz.so: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> make: *** [libwvutils.so] Error 1

You need to install zlib somewhere in your cross-compiler environment.
The linker is picking up your native zlib, which of course won't work
for your target platform.

One way to do this is to get the wvbuild.git project:
http://repo.or.cz/w/wvstreams/wvbuild.git/

wvbuild includes all the library dependencies WvStreams might need,
making it easier to build for other platforms. However, your platform
probably already has a zlib, so you might want to just figure out why
wvstreams isn't seeing it.

Good luck.

Avery

henr...@gmail.com

unread,
Oct 1, 2008, 7:36:24 AM10/1/08
to WvStreams Mailing List
Dear Avery,

Thanks your help.

I find libz.so in my BSP (/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
lib/libz.so)
So i use "ln -s /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/lib/
libz.so /usr/lib/libz.so"
and "ln -s /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/lib/libcrypt.so /
usr/lib/libcrypt.so"

Question1:
Do you have other good method let library search to my bsp path .../
arm-uclibc-3.4.6/lib/ first?

Question2:
But it has error..

[root@localhost wvstreams]# make
make -C xplc
make[1]: Entering directory `/root/wvstreams-4.4.1/xplc'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/root/wvstreams-4.4.1/xplc'
linking libwvutils.so...
linking libwvutils.a...
ar: creating libwvutils.a
compiling configfile/cfgentry.o...
compiling configfile/cfgsection.o...
compiling configfile/wvconf.o...
compiling crypto/wvblowfish.o...
compiling crypto/wvcountermode.o...
compiling crypto/wvcrl.o...
compiling crypto/wvcrypto.o...
compiling crypto/wvdiffiehellman.o...
compiling crypto/wvdigest.o...
compiling crypto/wvdsa.o...
compiling crypto/wvoakley.o...
compiling crypto/wvrsa.o...
compiling crypto/wvsslhacks.o...
compiling crypto/wvsslstream.o...
compiling crypto/wvtripledes.o...
compiling crypto/wvx509.o...
compiling crypto/wvx509mgr.o...
compiling crypto/wvxor.o...
compiling ipstreams/wvaddr.o...
compiling ipstreams/wvipraw.o...
compiling ipstreams/wvresolver.o...
compiling ipstreams/wvstreamsdebuggerserver.o...
compiling ipstreams/wvtcp.o...
compiling ipstreams/wvudp.o...
compiling ipstreams/wvunixdgsocket.o...
compiling ipstreams/wvunixsocket.o...
compiling ipstreams/wvurl.o...
compiling linuxstreams/wvdsp.o...
compiling linuxstreams/wvinterface.o...
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:26:1:
warning: "IFNAMSIZ" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:128:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:30:1:
warning: "IFF_UP" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:46:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:31:1:
warning: "IFF_BROADCAST" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:48:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:32:1:
warning: "IFF_DEBUG" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:50:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:33:1:
warning: "IFF_LOOPBACK" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:52:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:34:1:
warning: "IFF_POINTOPOINT" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:54:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:35:1:
warning: "IFF_NOTRAILERS" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:56:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:36:1:
warning: "IFF_RUNNING" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:58:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:37:1:
warning: "IFF_NOARP" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:60:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:38:1:
warning: "IFF_PROMISC" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:62:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:39:1:
warning: "IFF_ALLMULTI" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:66:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:41:1:
warning: "IFF_MASTER" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:69:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:42:1:
warning: "IFF_SLAVE" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:71:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:44:1:
warning: "IFF_MULTICAST" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:74:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:48:1:
warning: "IFF_PORTSEL" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:77:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:49:1:
warning: "IFF_AUTOMEDIA" redefined
In file included from ./include/wvaddr.h:35,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:79:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/netdevice.h:28,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:95:
error: redefinition of `struct ifmap'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:111:
error: previous definition of `struct ifmap'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:131:
error: redefinition of `struct ifreq'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:126:
error: previous definition of `struct ifreq'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/if.h:181:
error: redefinition of `struct ifconf'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if.h:176:
error: previous definition of `struct ifconf'
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:12,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/
netdevice.h:74:1: warning: "MAX_ADDR_LEN" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/netinet/if_ether.h:62,
from ./include/wvaddr.h:38,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/net/if_arp.h:
34:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:4,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
In function `long unsigned int do_div_llr(long long int, long int,
long int*)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
23: error: `u64' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
23: error: expected `;' before "result"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
25: error: `result' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
25: error: expected asm body before "__asmeq"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
25: error: `__asmeq' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
25: error: expected `;' before "__asmeq"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
25: warning: unused variable '__base'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
25: warning: unused variable '__n'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
25: warning: unused variable '__asmeq'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
26: error: `result' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
23: warning: unused variable 'u64'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
26: warning: unused variable 'result'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
In function `long int div_long_long_rem_signed(long long int, long
int, long int*)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
40: error: `unlikely' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/calc64.h:
40: warning: unused variable 'unlikely'
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:7,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h: At
global scope:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:12:
error: redefinition of `struct timespec'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/time.h:119:
error: previous definition of `struct timespec'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:18:
error: redefinition of `struct timeval'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/bits/time.h:74:
error: previous definition of `struct timeval'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:23:
error: redefinition of `struct timezone'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/sys/time.h:57:
error: previous definition of `struct timezone'
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:7,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
155:1: warning: "FD_SET" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/sys/types.h:215,
from ./include/wvaddr.h:18,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/sys/select.h:
83:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:7,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
156:1: warning: "FD_CLR" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/sys/types.h:215,
from ./include/wvaddr.h:18,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/sys/select.h:
84:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:7,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
157:1: warning: "FD_ISSET" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/sys/types.h:215,
from ./include/wvaddr.h:18,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/sys/select.h:
85:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:7,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
158:1: warning: "FD_ZERO" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/sys/types.h:215,
from ./include/wvaddr.h:18,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/sys/select.h:
86:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:7,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
164:1: warning: "ITIMER_REAL" redefined
In file included from ./include/wvxplc.h:21,
from ./include/wvtypetraits.h:10,
from ./include/wvlinklist.h:10,
from ./include/wvhashtable.h:12,
from ./include/wvinterface.h:12,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/sys/time.h:95:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:7,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
165:1: warning: "ITIMER_VIRTUAL" redefined
In file included from ./include/wvxplc.h:21,
from ./include/wvtypetraits.h:10,
from ./include/wvlinklist.h:10,
from ./include/wvhashtable.h:12,
from ./include/wvinterface.h:12,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/sys/time.h:98:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:7,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
166:1: warning: "ITIMER_PROF" redefined
In file included from ./include/wvxplc.h:21,
from ./include/wvtypetraits.h:10,
from ./include/wvlinklist.h:10,
from ./include/wvhashtable.h:12,
from ./include/wvinterface.h:12,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/sys/time.h:
102:1: warning: this is the location of the previous definition
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
168: error: redefinition of `struct itimerspec'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/time.h:162:
error: previous definition of `struct itimerspec'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
173: error: redefinition of `struct itimerval'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/sys/time.h:108:
error: previous definition of `struct itimerval'
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/jiffies.h:7,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/time.h:
197:1: warning: "TIMER_ABSTIME" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/time.h:42,
from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/pthread.h:21,
from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/bits/uClibc_mutex.h:19,
from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/bits/uClibc_stdio.h:119,
from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/stdio.h:72,
from ./include/wvaddr.h:16,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/bits/time.h:
59:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
75: error: expected initializer before "jiffies_64"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
79: error: `u64' does not name a type
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/dst.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
250:47: division by zero in #if
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `unsigned int jiffies_to_msecs(long unsigned int)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
253: error: `MSEC_PER_SEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
253: warning: unused variable 'MSEC_PER_SEC'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
261:47: division by zero in #if
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `unsigned int jiffies_to_usecs(long unsigned int)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
264: error: `USEC_PER_SEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
264: warning: unused variable 'USEC_PER_SEC'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
274:47: division by zero in #if
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `long unsigned int msecs_to_jiffies(unsigned int)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
277: error: `MSEC_PER_SEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
287:47: division by zero in #if
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `long unsigned int usecs_to_jiffies(unsigned int)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
290: error: `USEC_PER_SEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `long unsigned int timespec_to_jiffies(const timespec*)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
311: error: `u64' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
311: error: `NSEC_PER_SEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
315: error: `u64' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
315: error: expected `)' before "sec"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
317: error: expected `)' before ';' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
315: warning: unused variable 'u64'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `void jiffies_to_timespec(long unsigned int, timespec*)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
328: error: `u64' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
328: error: expected `;' before "nsec"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
329: error: `nsec' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
329: error: `NSEC_PER_SEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
328: warning: unused variable 'u64'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
329: warning: unused variable 'nsec'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
329: warning: unused variable 'NSEC_PER_SEC'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `long unsigned int timeval_to_jiffies(const timeval*)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
350: error: `u64' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
350: error: `NSEC_PER_SEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
354: error: `u64' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
354: error: expected `)' before "sec"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
356: error: expected `)' before ';' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
354: warning: unused variable 'u64'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `void jiffies_to_timeval(long unsigned int, timeval*)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
366: error: `u64' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
366: error: expected `;' before "nsec"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
369: error: `nsec' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
369: error: `NSEC_PER_SEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
370: error: `NSEC_PER_USEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
366: warning: unused variable 'u64'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
369: warning: unused variable 'nsec'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
369: warning: unused variable 'NSEC_PER_SEC'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
370: warning: unused variable 'NSEC_PER_USEC'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
379:41: division by zero in #if
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
379:42: division by zero in #if
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `clock_t jiffies_to_clock_t(long int)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
382: error: `u64' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
382: error: expected `;' before "tmp"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: error: `NSEC_PER_SEC' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: error: `USER_HZ' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: error: `tmp' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: error: expected asm body before "__asmeq"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: error: `__asmeq' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: error: expected `;' before "__asmeq"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: warning: unused variable '__base'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: warning: unused variable 'NSEC_PER_SEC'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: warning: unused variable 'USER_HZ'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: warning: unused variable '__n'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
383: warning: unused variable '__asmeq'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
384: error: `tmp' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
382: warning: unused variable 'u64'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
384: warning: unused variable 'tmp'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
390:18: division by zero in #if
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
In function `long unsigned int clock_t_to_jiffies(long unsigned int)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
395: error: `u64' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
395: error: expected `;' before "jif"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
398: error: `USER_HZ' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
398: warning: unused variable 'USER_HZ'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
402: error: `jif' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
402: error: expected `;' before numeric constant
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
403: error: `USER_HZ' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
403: error: expected asm body before "__asmeq"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
403: error: `__asmeq' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
403: error: expected `;' before "__asmeq"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
403: warning: unused variable '__base'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
403: warning: unused variable 'USER_HZ'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
403: warning: unused variable '__n'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
403: warning: unused variable '__asmeq'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
At global scope:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
408: error: `u64' does not name a type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
410:41: division by zero in #if
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
410:42: division by zero in #if
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
424: error: `u64' does not name a type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/jiffies.h:
426:28: division by zero in #if
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:28,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/dst.h:42:
error: `atomic_t' does not name a type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/dst.h:60:
error: `u32' does not name a type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/dst.h:78:
error: field `rcu_head' has incomplete type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/dst.h:97:
error: `u32' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/dst.h:97:
error: ISO C++ forbids declaration of `mtu' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/dst.h:100:
error: `atomic_t' does not name a type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/dst.h:101:
error: ISO C++ forbids declaration of `kmem_cache_t' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/dst.h:101:
error: expected `;' before '*' token
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/thread_info.h:20,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/preempt.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/linux/spinlock.h:50,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/inetpeer.h:15,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:29,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
In function `int generic_fls64(__u64)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
84: error: `fls' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
84: warning: unused variable 'fls'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
85: error: `fls' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
85: warning: unused variable 'fls'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
In function `int get_bitmask_order(unsigned int)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
92: error: `fls' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
92: warning: unused variable 'fls'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
In function `int get_count_order(unsigned int)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
100: error: `fls' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/bitops.h:
100: warning: unused variable 'fls'
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:29,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
In function `void inet_putpeer(inet_peer*)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
43: error: `local_bh_disable' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
43: warning: unused variable 'local_bh_disable'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
44: error: `atomic_dec_and_test' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
44: warning: unused variable 'atomic_dec_and_test'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
51: error: `local_bh_enable' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
51: warning: unused variable 'local_bh_enable'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
In function `__u16 inet_getid(inet_peer*, int)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
60: error: `local_bh_disable' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
60: warning: unused variable 'local_bh_disable'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
63: error: `local_bh_enable' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/inetpeer.h:
63: warning: unused variable 'local_bh_enable'
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h: At
global scope:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:31:
error: redefinition of `struct in6_addr'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/netinet/in.h:
191: error: previous definition of `struct in6_addr'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:54:
error: redefinition of `struct sockaddr_in6'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/netinet/in.h:
231: error: previous definition of `struct sockaddr_in6'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:62:
error: redefinition of `struct ipv6_mreq'
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/netinet/in.h:
241: error: previous definition of `struct ipv6_mreq'
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
131:1: warning: "IPPROTO_HOPOPTS" redefined
In file included from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/netinet/in.h:
35:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
132:1: warning: "IPPROTO_ROUTING" redefined
In file included from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/netinet/in.h:
57:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
133:1: warning: "IPPROTO_FRAGMENT" redefined
In file included from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/netinet/in.h:
59:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
134:1: warning: "IPPROTO_ICMPV6" redefined
In file included from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/netinet/in.h:
69:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
135:1: warning: "IPPROTO_NONE" redefined
In file included from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/netinet/in.h:
71:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
136:1: warning: "IPPROTO_DSTOPTS" redefined
In file included from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/netinet/in.h:
73:1: warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
166:1: warning: "IPV6_ADD_MEMBERSHIP" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/netinet/in.h:250,
from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/bits/in.h:127:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
167:1: warning: "IPV6_DROP_MEMBERSHIP" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/netinet/in.h:250,
from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/bits/in.h:128:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
208:1: warning: "IPV6_PKTINFO" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/netinet/in.h:250,
from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/bits/in.h:99:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
210:1: warning: "IPV6_HOPLIMIT" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/netinet/in.h:250,
from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/bits/in.h:105:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
212:1: warning: "IPV6_HOPOPTS" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/netinet/in.h:250,
from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/bits/in.h:100:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
215:1: warning: "IPV6_RTHDR" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/netinet/in.h:250,
from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/bits/in.h:102:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/flow.h:10,
from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/linux/in6.h:
217:1: warning: "IPV6_DSTOPTS" redefined
In file included from /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
bin/../lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/sys-
include/netinet/in.h:250,
from ./include/wvaddr.h:41,
from ./include/wvinterface.h:11,
from linuxstreams/wvinterface.cc:8:
/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/bin/../lib/gcc/arm-linux-
uclibc/3.4.6/../../../../arm-linux-uclibc/sys-include/bits/in.h:101:1:
warning: this is the location of the previous definition
In file included from /root/STAR8100-LSDK/kernels/linux-2.6.16-star/
include/net/route.h:30,
from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:81:
error: expected `)' before '/' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:81:
error: requested alignment is not a constant
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:88:
error: `u32' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:88:
error: `u16' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:88:
error: `u8' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:89:
error: ISO C++ forbids declaration of `sk_sid' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:89:
error: ISO C++ forbids declaration of `family' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:89:
error: ISO C++ forbids declaration of `dir' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:91:
error: `u32' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:91:
error: `u16' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:91:
error: `u8' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:92:
error: ISO C++ forbids declaration of `sk_sid' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:92:
error: ISO C++ forbids declaration of `family' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/flow.h:92:
error: ISO C++ forbids declaration of `dir' with no type
In file included from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:
38:2: warning: #warning This file is not supposed to be used outside
of kernel.
In file included from linuxstreams/wvinterface.cc:19:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:112:
warning: `ip_rt_redirect' initialized and declared `extern'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:112:
error: variable or field `ip_rt_redirect' declared void
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:112:
error: `u32' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:112:
error: `u32' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:112:
error: `u32' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:113:
error: `u32' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:113:
error: `u8' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:113:
error: expected primary-expression before "struct"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:113:
error: initializer expression list treated as compound expression
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:119:
error: `u32' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:119:
error: `u32' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:119:
error: `u8' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:119:
error: ISO C++ forbids declaration of `dst' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:119:
error: ISO C++ forbids declaration of `src' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:119:
error: ISO C++ forbids declaration of `tos' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:123:
warning: `inet_addr_type' initialized and declared `extern'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:123:
error: `u32' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:126:
warning: `ip_rt_get_source' initialized and declared `extern'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:126:
error: variable or field `ip_rt_get_source' declared void
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:126:
error: `u8' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:126:
error: `src' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:126:
error: expected primary-expression before "struct"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:126:
error: initializer expression list treated as compound expression
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h: In
function `void ip_rt_put(rtable*)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:135:
error: `dst_release' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:135:
warning: unused variable 'dst_release'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h: At
global scope:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:142:
error: `rt_tos2priority' declared as an `inline' variable
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:142:
error: `u8' was not declared in this scope
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:143:
error: expected `,' or `;' before '{' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:147:
error: `u32' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:148:
error: `u32' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:148:
error: `u32' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:148:
error: `u8' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:149:
error: `u16' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:149:
error: `u16' has not been declared
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:150:
error: ISO C++ forbids declaration of `dst' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:150:
error: ISO C++ forbids declaration of `src' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:150:
error: ISO C++ forbids declaration of `tos' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:150:
error: ISO C++ forbids declaration of `protocol' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:150:
error: ISO C++ forbids declaration of `sport' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:150:
error: ISO C++ forbids declaration of `dport' with no type
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h: In
function `int ip_route_connect(rtable**, int, int, int, int, int, int,
int, sock*)':
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:151:
error: expected primary-expression before '.' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:152:
error: expected primary-expression before '.' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:152:
error: expected primary-expression before '{' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:152:
error: expected `}' before '{' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:152:
error: expected `,' or `;' before '{' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:154:
error: expected primary-expression before ',' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:155:
error: expected primary-expression before '.' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:156:
error: expected primary-expression before '.' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:156:
error: expected primary-expression before '{' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:156:
error: expected `;' before '{' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:151:
warning: unused variable 'fl'
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:158:
warning: no return statement in function returning non-void
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h: At
global scope:
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:161:
error: expected unqualified-id before "if"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:170:
error: expected unqualified-id before "return"
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:171:
error: expected declaration before '}' token
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:142:
warning: 'rt_tos2priority' defined but not used
/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:
24:1: unterminated #ifndef
linuxstreams/wvinterface.cc:9:1: unterminated #if
make: *** [linuxstreams/wvinterface.o] Error 1

Question3:
And i want to download wvstreams.git, but can not succeed.The message
like below:

[root@localhost testall]# git clone git://repo.or.cz/wvstreams.git
Initialized empty Git repository in /root/testall/wvstreams/.git/
repo.or.cz[0: 62.24.64.27]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
fetch-pack from 'git://repo.or.cz/wvstreams.git' failed.

But i use "git clone http://repo.or.cz/r/wvstreams.git"
I can get a directory wvstreams.
Command of "git clone git://repo.or.cz/wvstreams.git" and
"git clone http://repo.or.cz/r/wvstreams.git", does they get the same
thing?

Thanks again.
Henry

On 10月1日, 上午1時28分, "Avery Pennarun" <apenw...@gmail.com> wrote:
> 2008/9/30 henry3...@gmail.com <henry3...@gmail.com>:

Avery Pennarun

unread,
Oct 1, 2008, 12:52:36 PM10/1/08
to wvstrea...@googlegroups.com
On Wed, Oct 1, 2008 at 7:36 AM, henr...@gmail.com <henr...@gmail.com> wrote:
> I find libz.so in my BSP (/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
> lib/libz.so)
> So i use "ln -s /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/lib/
> libz.so /usr/lib/libz.so"
> and "ln -s /root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/lib/libcrypt.so /
> usr/lib/libcrypt.so"
>
> Question1:
> Do you have other good method let library search to my bsp path .../
> arm-uclibc-3.4.6/lib/ first?

Well, doing it the way you did is kind of scary, but I guess it'll
work. Probably all you needed was the right option when running the
wvstreams ./configure.

> Question2:
> But it has error..

[...]


> global scope:
> /root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:161:
> error: expected unqualified-id before "if"
> /root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:170:
> error: expected unqualified-id before "return"
> /root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:171:
> error: expected declaration before '}' token
> /root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:142:
> warning: 'rt_tos2priority' defined but not used
> /root/STAR8100-LSDK/kernels/linux-2.6.16-star/include/net/route.h:
> 24:1: unterminated #ifndef
> linuxstreams/wvinterface.cc:9:1: unterminated #if
> make: *** [linuxstreams/wvinterface.o] Error 1

Note that you probably don't need to include *all* those log messages.
The last few is fine :)

It looks like the headers provided with your BSP are somewhat broken
compared to a normal Linux system. The particular file we're trying
to compile, is not used for very many things so you probably don't
even need it; if you delete linuxstreams/wvinterface.cc, the
compilation will (hopefully) proceed without a problem and you
probably won't miss it.

> Question3:
> And i want to download wvstreams.git, but can not succeed.The message
> like below:
>
> [root@localhost testall]# git clone git://repo.or.cz/wvstreams.git
> Initialized empty Git repository in /root/testall/wvstreams/.git/
> repo.or.cz[0: 62.24.64.27]: errno=Connection timed out
> fatal: unable to connect a socket (Connection timed out)
> fetch-pack from 'git://repo.or.cz/wvstreams.git' failed.
>
> But i use "git clone http://repo.or.cz/r/wvstreams.git"
> I can get a directory wvstreams.

This sounds like you have a firewall that's blocking the git port.
Unfortunately it means you will have to use http. But there's no
difference between the files you get; http is just slower, that's all.

Note that the project you'll need if you're following my earlier
advice is wvstreams/wvbuild.git, not just wvstreams.git.

Good luck.

Avery

henr...@gmail.com

unread,
Oct 2, 2008, 7:41:31 AM10/2/08
to WvStreams Mailing List
Dear Avery,

Thank you!

I downland wvbuild and wvstreams, and copy wvstream under wvbuild\.

I build xplc first, below is my step. I don't know this is correct or
have more easy method to build all wvstreams need things?

1.wvbuild/wvports/xplc/make
2.cd /build/xplc
3.make clean
4../configure --build=arm-linux --host=i686-pc-linux-gnu CC="arm-linux-
gcc" CXX="arm-linux-g++" CXXCPP="arm-linux-g++ -E" CPPFLAGS="-I/root/
STAR8100-LSDK/tools/arm-uclibc-3.4.6/include/ -I/root/STAR8100-LSDK/
kernels/linux-2.6.16-star/include" LDFLAGS="-L/root/STAR8100-LSDK/
tools/arm-uclibc-3.4.6/arm-linux/lib -L/root/STAR8100-LSDK/tools/arm-
uclibc-3.4.6/lib -L/usr/local/lib"
5.make AR="arm-linux-ar" RANLIB="arm-linux-ranlib"
6.the file libxplc.a, libxplc-cxx.a and libxplc.so be created. It's
look like ok, right?
7.But the message: make: warning: Clock skew detected. Your build
may be incomplete.(is it harmful??)

Second, build zlib
1.wvbuild/wvports/zlib/make
2.cd /build/zlib
3.make clean
4.CC="arm-linux-gcc" CXX="arm-linux-g++" CPP="arm-linux-gcc -E"
CXXCPP="arm-linux-g++ -E" AR="arm-linux-ar" RANLIB="arm-linux-ranlib"
LDSHARED="arm-linux-gcc" make
5.the file libz.a be created. It's look like ok, right?

Third, build openssl
1.wvbuild/wvports/openssl/make
2.cd /build/openssl
3.make clean
4.export cross=arm-linux- ./Configure dist make CC="${cross}gcc" AR="$
{cross}ar r" RANLIB="${cross}ranlib"
5.the file libcrypto.a and libssl.a be created. It's look like ok,
right?

Fourth, build argp
1.wvbuild/wvports/argp/make
2.cd /build/argp
3.make clean
4../configure --build=arm-linux --host=i686-pc-linux-gnu CC="arm-linux-
gcc" CXX="arm-linux-g++" CPP="arm-linux-gcc -E" CXXCPP="arm-linux-g++ -
E" AR="arm-linux-ar r" RANLIB="arm-linux-ranlib" CPPFLAGS="-I/root/
STAR8100-LSDK/tools/arm-uclibc-3.4.6/include/ -I/root/STAR8100-LSDK/
kernels/linux-2.6.16-star/include" LDFLAGS="-L/root/STAR8100-LSDK/
tools/arm-uclibc-3.4.6/arm-linux/lib -L/root/STAR8100-LSDK/tools/arm-
uclibc-3.4.6/lib -L/usr/local/lib"
5.make AR="arm-linux-ar"
6.the file libargp.a be created. It's look like ok, right?
7.In there, I go to /wvbuild/wvstreams/ and enter
8.CC="arm-linux-gcc" CXX="arm-linux-g++" CPP="arm-linux-gcc -E"
CXXCPP="arm-linux-g++ -E" AR="arm-linux-ar r" RANLIB="arm-linux-
ranlib" CPPFLAGS="-I/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
include/ -I/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include"
LDFLAGS="-L/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/arm-linux/lib -L/
root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/lib -L/usr/local/lib" ./
configure --build=arm-linux --host=i686-pc-linux-gnu --target=arm-
linux --with-argp=/root/test1002/wvbuild/wvports/argp/build/argp --
with-zlib=/root/test1002/wvbuild/wvports/zlib/build/zlib --with-
openssl=/root/test1002/wvbuild/wvports/openssl/build/openssl --with-
xplc=/root/test1002/wvbuild/wvports/xplc/build/xplc
9.But the message:
configure: WARNING: DBUS is missing.
configure: WARNING: PAM is missing.
configure: WARNING: Qt is missing.
configure: WARNING: readline is missing.
configure: WARNING: argp is missing.
configure: WARNING: both tr1/functional and boost/function.hpp are
missing. configure: error: Required dependencies missing: argp boost/
function.hppp

Why the argp is missing??

Fith, build dbus.
1.wvbuild/wvports/dbus/make
2.cd /build/dbus
3.make clean
4../configure --build=arm-linux --host=i686-pc-linux-gnu --target=arm-
linux CC="arm-linux-gcc" CXX="arm-linux-g++" CPP="arm-linux-gcc -E"
CXXCPP="arm-linux-g++ -E" AR="arm-linux-ar" RANLIB="arm-linux-ranlib"
CPPFLAGS="-I/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/include/ -I/
root/STAR8100-LSDK/kernels/linux-2.6.16-star/include" LDFLAGS="-L/root/
STAR8100-LSDK/tools/arm-uclibc-3.4.6/arm-linux/lib -L/root/STAR8100-
LSDK/tools/arm-uclibc-3.4.6/lib -L/usr/local/lib"
ac_cv_have_abstract_sockets=yes
5.make
6.It's fail, the message:
arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include/libxml2 -
DDBUS_SYSTEM_CONFIG_FILE=\""/usr/local/etc/dbus-1/system.conf"\" -
DDAEMON_NAME=\"dbus-daemon\" -DDBUS_COMPILATION -I/root/STAR8100-
LSDK/tools/arm-uclibc-3.4.6/include/ -I/root/STAR8100-LSDK/kernels/
linux-2.6.16-star/include -ffunction-sections -fdata-sections -g -O2 -
Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -
Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-
compare -Wdeclaration-after-statement -fno-common -fPIC -MT utils.o -
MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.c mv -f .deps/
utils.Tpo .deps/utils.Po arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -
I/usr/include/libxml2 -DDBUS_SYSTEM_CONFIG_FILE=\""/usr/local/etc/
dbus-1/system.conf"\" -DDAEMON_NAME=\"dbus-daemon\" -
DDBUS_COMPILATION -I/root/STAR8100-LSDK/tools/arm-uclibc-3.4.6/
include/ -I/root/STAR8100-LSDK/kernels/linux-2.6.16-star/include -
ffunction-sections -fdata-sections -g -O2 -Wall -Wchar-subscripts -
Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-
arith -Wcast-align -Wfloat-equal -Wsign-compare -Wdeclaration-after-
statement -fno-common -fPIC -MT config-loader-libxml.o -MD -MP -
MF .deps/config-loader-libxml.Tpo -c -o config-loader-libxml.o config-
loader-libxml.c In file included from /usr/include/libxml2/libxml/
parser.h:796, from /usr/include/libxml2/libxml/globals.h:18,
from /usr/include/libxml2/libxml/threads.h:35,
from /usr/include/libxml2/libxml/xmlmemory.h:216,
from /usr/include/libxml2/libxml/tree.h:1209,
from /usr/include/libxml2/libxml/xmlreader.h:14,
from config-loader-libxml.c:26: /usr/include/libxml2/
libxml/encoding.h:28:19: iconv.h: No such file or directory In file
included from /usr/include/libxml2/libxml/parser.h:796, from /usr/
include/libxml2/libxml/globals.h:18,
from /usr/include/libxml2/libxml/threads.h:35,
from /usr/include/libxml2/libxml/xmlmemory.h:216,
from /usr/include/libxml2/libxml/tree.h:1209,
from /usr/include/libxml2/libxml/xmlreader.h:14,
from config-loader-libxml.c:26: /usr/include/libxml2/
libxml/encoding.h:136: error: syntax error before "iconv_t" /usr/
include/libxml2/libxml/encoding.h:136: warning: no semicolon at end of
struct or union /usr/include/libxml2/libxml/encoding.h:137: warning:
type defaults to `int' in declaration of `iconv_out' /usr/include/
libxml2/libxml/encoding.h:137: warning: data definition has no type or
storage class make[2]: *** [config-loader-libxml.o] Error 1 make[2]:
Leaving directory `/root/test1002/wvbuild/wvports/dbus/build/
dbus-1.1.2/bus' make[1]: *** [all-recursive] Error 1 make[1]: Leaving
directory `/root/test1002/wvbuild/wvports/dbus/build/dbus-1.1.2' make:
*** [all] Error 2

Henry


On 10月2日, 上午12時52分, "Avery Pennarun" <apenw...@gmail.com> wrote:
> > But i use "git clonehttp://repo.or.cz/r/wvstreams.git"
> > I can get a directory wvstreams.
>
> This sounds like you have a firewall that's blocking the git port.
> Unfortunately it means you will have to use http. But there's no
> difference between the files you get; http is just slower, that's all.
>
> Note that the project you'll need if you're following my earlier
> advice is wvstreams/wvbuild.git, not just wvstreams.git.
>
> Good luck.
>
> Avery- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Avery Pennarun

unread,
Oct 2, 2008, 1:40:35 PM10/2/08
to wvstrea...@googlegroups.com
On Thu, Oct 2, 2008 at 7:41 AM, henr...@gmail.com <henr...@gmail.com> wrote:
> I build xplc first, below is my step. I don't know this is correct or
> have more easy method to build all wvstreams need things?

Why not configure and make from the top level? That should build all
the pieces automatically.

You'll have to provide some options for your platform, probably. Look
in the configure-mingw32 script for an example.

Avery

henr...@gmail.com

unread,
Oct 3, 2008, 4:58:38 AM10/3/08
to WvStreams Mailing List
Dear Avery,

Thank you!
I refer configure-mingw32, and create file configure-armlinux.


1.Add file wvbuild/configure-armlinux
------------------------------------------------------
set -e
test -e wvstreams/Makefile || ./get-git-modules
rm -f config.mk cat >config.mk <<-EOF CONFIGHOST=--host=arm-linux
CC=arm-linux-gcc
AR=arm-linux-ar
ARRC=\$(AR) rc
RANLIB=arm-linux-ranlib
WV_BUILD_MINGW=1
export CC AR RANLIB EOF
make wvports/zlib wvports/xplc wvports/openssl wvports/dbus wvports/
boost wvports/argp wvports/win32api
echo "--> Configuring WvStreams..." (cd wvstreams; [ ! -e include/
wvautoconf.h.in ] && autoheader; \ [ ! -e ./configure ] && autoconf)
(set -x; cd wvstreams && \ XCPPFLAGS="-I../wvports/boost/build/boost"
\
./configure-armlinux \
--disable-debug \
--disable-optimization \
--with-xplc=../wvports/xplc/build/xplc \
--with-openssl=../wvports/openssl/build/openssl \
--with-zlib=../wvports/zlib/build/zlib \
--with-dbus=../wvports/dbus/build/dbus \
"$@") || exit $?
------------------------------------------------------


2.Add file wvbuild/wvstreams/configure-armlinux
------------------------------------------------------
#!/bin/bash PORTS=$PWD/../wvports ./configure \
--build=$(./config.guess) \
--host=arm-linux \
--enable-exceptions \
--with-xplc=$PORTS/xplc/build/xplc \
--with-argp=$PORTS/argp/build/argp \
CPPFLAGS=" \
-I$PORTS/xplc/build/xplc/include \
-I$PORTS/zlib/build/zlib \
-I$PORTS/openssl/build/openssl/include $XCPPFLAGS \
-I$PORTS/argp/build/argp \
-I$PORTS/win32api/build/w32api/include" \ LDFLAGS="\
-L$PORTS/xplc/build/xplc \
-L$PORTS/zlib/build/zlib \
-L$PORTS/openssl/build/openssl \
-L$PORTS/argp/build/argp \
-L$PORTS/win32api/build/w32api/lib" \ LIBS="-lxplc-cxx -lwsock32 -
lgdi32" \
$@
------------------------------------------------------


3.Modify /wvbuild/wvports/openssl/Makefile, because have error

Configured for mingw.
*** Compiling... make -C build/openssl CC="arm-linux-gcc" RANLIB="arm-
linux-ranlib" AR="arm-linux-ar rc" CFLAG="-DL_ENDIAN -DDSO_WIN32 -O3 -
march=i486 -Wall -DBN_ASM -DMD5_ASM -DSHA1_ASM -
DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_RC5 -
DOPENSSL_NO_MDC2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_DYNAMIC_ENGINE -
DNO_WINDOWS_BRAINDEATH" making all in crypto... arm-linux-gcc -I. -I..
-I../include -DL_ENDIAN -DDSO_WIN32 -O3 -march=i486 -Wall -DBN_ASM -
DMD5_ASM -DSHA1_ASM -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_NO_CAMELLIA -
DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_KRB5 -
DOPENSSL_NO_DYNAMIC_ENGINE -DNO_WINDOWS_BRAINDEATH -c -o cryptlib.o
cryptlib.c cryptlib.c:1: error: bad value (i486) for -march= switch
make[3]: *** [cryptlib.o] Error 1 make[2]: *** [build_crypto] Error 1
make[1]: *** [.stamp-compile] Error 2 make: *** [wvports/openssl]
Error 2


My Makefile is
------------------------------------------------------
include ../../config.mk include ../wvports.mk
define unpack ln -s openssl-0.9.8g $(BUILDDIR)/openssl endef
# for 'make diff' EXCLUDE=opensslconf.h buildinf.h \
*.s *.bak *.0 *.so *.so.* *.a *.pc \
openssl Makefile *test
ifeq ($(WV_BUILD_MINGW),1)
# MINGW32 build # arm-linux build
define prepare cd build/openssl && ./Configure dist endef
define compile make -C build/openssl \ CC="$(CC)" RANLIB="$(RANLIB)"
AR="$(ARRC)" \
CFLAG="-DL_ENDIAN" endef
else
# Normal Unix build
define prepare cd build/openssl && ./config -DPURIFY -shared -g endef
define compile make -C build/openssl endef
endif
------------------------------------------------------


4.Run following command
cd wvbuild
./configure-armlinux

the result of message are

...
+ echo '--> Configuring WvStreams...'
--> Configuring WvStreams...
+ cd wvstreams
+ '[' '!' -e include/wvautoconf.h.in ']'
+ '[' '!' -e ./configure ']'
+ set -x
+ cd wvstreams
+ XCPPFLAGS=-I../wvports/boost/build/boost
+ ./configure-armlinux --disable-debug --disable-optimization --with-
xplc=../wvports/xplc/build/xplc --with-openssl=../wvports/openssl/
build/openssl --with-zlib=../wvports/zlib/build/zlib --with-dbus=../
wvports/dbus/build/dbus
Package xplc-0.3.13 was not found in the pkg-config search path.
Perhaps you should add the directory containing `xplc-0.3.13.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xplc-0.3.13' found
checking for arm-linux-gcc... arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ISO C89... none needed
checking for arm-linux-g++... arm-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-linux-g++ accepts -g... yes
checking how to run the C preprocessor... arm-linux-gcc -E
checking how to run the C++ preprocessor... arm-linux-g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for arm-linux-ranlib... arm-linux-ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for __attribute__ ((deprecated))... yes
checking for working alloca.h... yes
checking for alloca... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for error_t... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking for net/ethernet.h... yes
checking for netinet/if_ether.h... yes
checking whether ETHER_ADDR_LEN is declared... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking for netinet/ip.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking linux/serial.h usability... yes
checking linux/serial.h presence... yes
checking for linux/serial.h... yes
checking for cfmakeraw... yes
checking whether ln works...... yes
checking whether __libc_stack_end is public... yes
checking for pkg-config... /usr/bin/pkg-config
checking dbus/dbus.h usability... yes
checking dbus/dbus.h presence... yes
checking for dbus/dbus.h... yes
checking for bind in -lsocket... no
checking for openssl/ssl.h... yes
checking for X509_free in -lcrypto... yes
checking for SSL_has_matching_session_id in -lssl... yes
checking for POLICY_MAPPING_new in -lssl... yes
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking for readline in -lreadline... no
checking security/pam_appl.h usability... no
checking security/pam_appl.h presence... no
checking for security/pam_appl.h... no
checking for pam_start in -lpam... no
checking for sane PAM implementation... no
checking tcl.h usability... no
checking tcl.h presence... no
checking for tcl.h... no
checking for TclInterpInit in -ltcl8.3... no
checking for Qt... no
checking for moc... moc not found
checking for valgrind... valgrind
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking for xplc/core.h... yes
checking for XPLC_getServiceManager in -lxplc... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress in -lz... yes
checking argp.h usability... yes
checking argp.h presence... yes
checking for argp.h... yes
checking tr1/functional usability... no
checking tr1/functional presence... no
checking for tr1/functional... no
checking boost/function.hpp usability... yes
checking boost/function.hpp presence... yes
checking for boost/function.hpp... yes
checking boost/throw_exception.hpp usability... yes
checking boost/throw_exception.hpp presence... yes
checking for boost/throw_exception.hpp... yes
configure: WARNING: PAM is missing.
configure: WARNING: Qt is missing.
configure: WARNING: XPLC is missing.
configure: WARNING: readline is missing.
configure: error: Required dependencies missing: XPLC
+ exit 1
[root@localhost wvbuild]#

I check /wvbuild/wvports/xplc/build/xplc has files

-rw-r--r-- 1 root root 199768 2008-10-03 16:32 libxplc.a
-rw-r--r-- 1 root root 47188 2008-10-03 16:32 libxplc-cxx.a
lrwxrwxrwx 1 root root 9 2008-10-03 16:32 libxplc_s.a ->
libxplc.a

Why XPLC missing??
Need your support. Thanks.

Henry


On 10月3日, 上午1時40分, "Avery Pennarun" <apenw...@gmail.com> wrote:

henr...@gmail.com

unread,
Oct 3, 2008, 5:04:58 AM10/3/08
to WvStreams Mailing List
Dear Avery,

I have another question.
If i can build wvstreams successfully, but i can use it on my target
board??
My target board use uClibc.

thanks
Henry
> ...
>
> 閱讀更多 >>- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Avery Pennarun

unread,
Oct 3, 2008, 2:44:09 PM10/3/08
to wvstrea...@googlegroups.com
2008/10/3 henr...@gmail.com <henr...@gmail.com>:

> Package xplc-0.3.13 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `xplc-0.3.13.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'xplc-0.3.13' found

As it turns out, the above happens to everybody, and it's harmless. I
didn't notice that until now. Sorry. But it's not the problem. This
is:

> checking for xplc/core.h... yes
> checking for XPLC_getServiceManager in -lxplc... no

Can you check the wvstreams/config.log file and see what error it's
getting when trying to find XPLC_getServiceManager?

It might be that libxplc.a is being built with the wrong compiler or something.

> I have another question.
> If i can build wvstreams successfully, but i can use it on my target
> board??
> My target board use uClibc.

Yes, this should theoretically work, although I haven't tried it
myself. If you can get it to build, then it should run fine.

Have fun,

Avery

henr...@gmail.com

unread,
Oct 6, 2008, 7:43:16 AM10/6/08
to WvStreams Mailing List
Dear Avery,

Thank you very much! Hope this week is a lucky week.

In wvstreams/config.log, there are many errors, this below:

conftest.c:8:28: ac_nonexistent.h: No such file or directory

conftest.c:54:22: execinfo.h: No such file or directory

conftest.c:54:18: argz.h: No such file or directory

conftest.cpp:76:31: readline/readline.h: No such file or directory

conftest.cpp:76:31: security/pam_appl.h: No such file or directory

conftest.cpp:77:17: tcl.h: No such file or directory

conftest.cpp:44:21: qstring.h: No such file or directory
conftest.cpp: In function `int main()':
conftest.cpp:48: error: `QString' was not declared in this scope
conftest.cpp:48: error: expected `;' before "x"

conftest.cpp:77:31: valgrind/memcheck.h: No such file or directory

conftest.cpp:81:26: tr1/functional: No such file or directory
----------------------------------------------------------------------------------------------------

So I enter /wvbuild/wvports/xplc/build/xplc to recompile it. The
following command can succeed for wvstreams

./configure --build=i686-pc-linux-gnu --host=arm-linux CC="arm-linux-
gcc" CXX="arm-linux-g++" CXXCPP="arm-linux-g++ -E" CPPFLAGS="-I/root/
STAR8100-LSDK/tools/arm-uclibc-3.4.6/include/ -I/root/STAR8100-LSDK/
kernels/linux-2.6.16-star/include" LDFLAGS="-L/root/STAR8100-LSDK/
tools/arm-uclibc-3.4.6/arm-linux/lib -L/root/STAR8100-LSDK/tools/arm-
uclibc-3.4.6/lib -L/usr/local/lib"

make AR="arm-linux-ar" RANLIB="arm-linux-ranlib"


[root@localhost wvbuild]# ./configure-armlinux
+ set -e
+ test -e wvstreams/Makefile
+ rm -f config.mk
+ cat
+ make wvports/zlib wvports/xplc wvports/openssl wvports/dbus wvports/
boost wvports/argp wvports/win32api

--> Making wvports/zlib...
make[1]: Nothing to be done for `default'.
true

--> Making wvports/xplc...
make[1]: Nothing to be done for `default'.
cp -f wvports/xplc/build/xplc/libxplc.a lib/
cp -f wvports/xplc/build/xplc/libxplc-cxx.a lib/
true

--> Making wvports/openssl...
make[1]: Nothing to be done for `default'.
cp -f wvports/openssl/build/openssl/libssl.a lib/
cp -f wvports/openssl/build/openssl/libcrypto.a lib/
true

--> Making wvports/dbus...
make[1]: Nothing to be done for `default'.
cp -f wvports/dbus/build/dbus/dbus/.libs/libdbus-1.a lib/
true

--> Making wvports/boost...
make[1]: Nothing to be done for `default'.
true

--> Making wvports/argp...
make[1]: Nothing to be done for `default'.
true

--> Making wvports/win32api...
make[1]: Nothing to be done for `default'.
true
+ echo '--> Configuring WvStreams...'
--> Configuring WvStreams...
+ cd wvstreams
+ '[' '!' -e include/wvautoconf.h.in ']'
+ '[' '!' -e ./configure ']'
+ set -x
+ cd wvstreams
+ XCPPFLAGS=-I../wvports/boost/build/boost
+ ./configure-armlinux --disable-debug --disable-optimization --with-
xplc=../wvports/xplc/build/xplc --with-openssl=../wvports/openssl/
build/openssl --with-zlib=../wvports/zlib/build/zlib --with-dbus=../
wvports/dbus/build/dbus
Package xplc-0.3.13 was not found in the pkg-config search path.
Perhaps you should add the directory containing `xplc-0.3.13.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xplc-0.3.13' found
checking for xplc/core.h... yes
checking for XPLC_getServiceManager in -lxplc... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress in -lz... yes
checking argp.h usability... yes
checking argp.h presence... yes
checking for argp.h... yes
checking tr1/functional usability... no
checking tr1/functional presence... no
checking for tr1/functional... no
checking boost/function.hpp usability... yes
checking boost/function.hpp presence... yes
checking for boost/function.hpp... yes
checking boost/throw_exception.hpp usability... yes
checking boost/throw_exception.hpp presence... yes
checking for boost/throw_exception.hpp... yes
configure: WARNING: PAM is missing.
configure: WARNING: Qt is missing.
configure: WARNING: readline is missing.
configure: creating ./config.status
config.status: creating config.mk
config.status: WARNING: config.mk.in seems to ignore the --
datarootdir setting
config.status: creating pkgconfig/libuniconf.pc
config.status: creating pkgconfig/libuniconf-uninstalled.pc
config.status: creating pkgconfig/libwvbase.pc
config.status: creating pkgconfig/libwvbase-uninstalled.pc
config.status: creating pkgconfig/libwvdbus.pc
config.status: creating pkgconfig/libwvdbus-uninstalled.pc
config.status: creating pkgconfig/libwvqt.pc
config.status: creating pkgconfig/libwvqt-uninstalled.pc
config.status: creating pkgconfig/libwvstreams.pc
config.status: creating pkgconfig/libwvstreams-uninstalled.pc
config.status: creating pkgconfig/libwvutils.pc
config.status: creating pkgconfig/libwvutils-uninstalled.pc
config.status: creating pkgconfig/libwvtest.pc
config.status: creating pkgconfig/libwvtest-uninstalled.pc
config.status: creating include/wvautoconf.h
-------------------------------------------------------------------------------------------------

It's successful. And I type /wvbuild/make

[root@localhost wvbuild]# make

--> Making wvports/zlib...
make[1]: Nothing to be done for `default'.
true

--> Making wvports/openssl...
make[1]: Nothing to be done for `default'.
cp -f wvports/openssl/build/openssl/libssl.a lib/
cp -f wvports/openssl/build/openssl/libcrypto.a lib/
true

--> Making wvports/xplc...
make[1]: Nothing to be done for `default'.
cp -f wvports/xplc/build/xplc/libxplc.a lib/
cp -f wvports/xplc/build/xplc/libxplc-cxx.a lib/
true

--> Making wvports/dbus...
make[1]: Nothing to be done for `default'.
cp -f wvports/dbus/build/dbus/dbus/.libs/libdbus-1.a lib/
true

--> Making wvports/argp...
make[1]: Nothing to be done for `default'.
true

--> Making wvports/win32api...
make[1]: Nothing to be done for `default'.
true

--> Making wvstreams...
make[1]: Warning: File `/dev/null' has modification time 2.5e+04 s in
the future
* Generating CC
./gen-cc: line 5: tempfile: command not found
make[1]: *** [CC] Error 127
make: *** [wvstreams] Error 2

It's still not success.
Please help! Thanks.

Henry


On 10月4日, 上午2時44分, "Avery Pennarun" <apenw...@gmail.com> wrote:
> 2008/10/3 henry3...@gmail.com <henry3...@gmail.com>:

Avery Pennarun

unread,
Oct 6, 2008, 12:31:43 PM10/6/08
to wvstrea...@googlegroups.com
On Mon, Oct 6, 2008 at 7:43 AM, henr...@gmail.com <henr...@gmail.com> wrote:
> Thank you very much! Hope this week is a lucky week.

Me too!

> In wvstreams/config.log, there are many errors, this below: [...]

It's normal for config.log to find errors: it tries a bunch of things
to see what works, so that when you eventually do "make", it doesn't
run into the same errors. So all the ones you showed are normal.

But what did you do to make xplc start working? Last time you posted,
configure was having trouble finding xplc, but this time it seems to
be okay.

> --> Making wvstreams...
> make[1]: Warning: File `/dev/null' has modification time 2.5e+04 s in
> the future
> * Generating CC
> ./gen-cc: line 5: tempfile: command not found
> make[1]: *** [CC] Error 127
> make: *** [wvstreams] Error 2

Hmm, it seems that 'tempfile' is a Debian-specific command. I've now
changed the gen-cc script in the latest git version to not require it.
Can you try this?

cd wvstreams
git pull origin master
cd ..
make

And tell me if that helps?

Thanks,

Avery

henr...@gmail.com

unread,
Oct 7, 2008, 2:23:35 AM10/7/08
to WvStreams Mailing List
Dear Avery,

It's me..... Sorry trouble you again.

I do below command.

cd wvstreams
git pull origin master
cd ..
make


utils/wvtask.cc: In constructor `WvTaskMan::WvTaskMan()':
utils/wvtask.cc:202: error: `getcontext' was not declared in this
scope
utils/wvtask.cc:202: warning: unused variable 'getcontext'
utils/wvtask.cc: In static member function `static int
WvTaskMan::run(WvTask&, int)':
utils/wvtask.cc:268: error: `getcontext' was not declared in this
scope
utils/wvtask.cc:274: error: `setcontext' was not declared in this
scope
utils/wvtask.cc:274: warning: unused variable 'setcontext'
utils/wvtask.cc:268: warning: unused variable 'getcontext'
utils/wvtask.cc: In static member function `static int
WvTaskMan::yield(int)':
utils/wvtask.cc:322: error: `getcontext' was not declared in this
scope
utils/wvtask.cc:328: error: `setcontext' was not declared in this
scope
utils/wvtask.cc:328: warning: unused variable 'setcontext'
utils/wvtask.cc:322: warning: unused variable 'getcontext'
utils/wvtask.cc: In static member function `static void
WvTaskMan::get_stack(WvTask&, size_t)':
utils/wvtask.cc:344: error: `getcontext' was not declared in this
scope
utils/wvtask.cc:370: error: `setcontext' was not declared in this
scope
utils/wvtask.cc:370: warning: unused variable 'setcontext'
utils/wvtask.cc:344: warning: unused variable 'getcontext'
utils/wvtask.cc: In static member function `static void
WvTaskMan::_stackmaster()':
utils/wvtask.cc:408: error: `getcontext' was not declared in this
scope
utils/wvtask.cc:418: error: `setcontext' was not declared in this
scope
utils/wvtask.cc:418: warning: unused variable 'setcontext'
utils/wvtask.cc:408: warning: unused variable 'getcontext'
utils/wvtask.cc: In static member function `static void
WvTaskMan::do_task()':
utils/wvtask.cc:473: error: `getcontext' was not declared in this
scope
utils/wvtask.cc:517: error: `makecontext' was not declared in this
scope
utils/wvtask.cc:522: error: `setcontext' was not declared in this
scope
utils/wvtask.cc:522: warning: unused variable 'setcontext'
utils/wvtask.cc:517: warning: unused variable 'makecontext'
make[1]: *** [utils/wvtask.o] Error 1
make: *** [wvstreams] Error 2

Question1: Is this patch already?? happen again!!
So i use previous you teach us to modify some files (wvtask.h,
wvtask.cc wvassert.h wvcrashbase.cc wvcrash.cc)

But the file wvassert.h, i use from (git pull origin master)

#if !defined(__GLIBC__)

# define wvassert(expr, args...) assert(expr)
# define wvassert_perror(errnum) perror(errnum)

streams/wvistreamlist.cc: In member function `virtual bool
WvIStreamList::post_select(IWvStream::SelectInfo&)':
streams/wvistreamlist.cc:193: error: `__assert_fail' was not declared
in this scope
streams/wvistreamlist.cc:193: warning: unused variable '__assert_fail'
make[1]: *** [streams/wvistreamlist.o] Error 1
make: *** [wvstreams] Error 2

Question2:
Why? this means i use __GLIBC__ define, but i use uclibc not glibc?
how can i modify it?


utils/wvcrash.cc:31:35: warning: execinfo.h: No such file or directory
utils/wvcrash.cc: In function `void wvcrash_real(int, int, pid_t)':
utils/wvcrash.cc:273: error: `backtrace' was not declared in this
scope
utils/wvcrash.cc:273: error: `backtrace_symbols_fd' was not declared
in this scope
utils/wvcrash.cc:273: warning: unused variable 'backtrace'
utils/wvcrash.cc:273: warning: unused variable 'backtrace_symbols_fd'
make[1]: *** [utils/wvcrash.o] Error 1
make: *** [wvstreams] Error 2


I copy /usr/include/execinfo.h to wvstreams/include. i know it has
problem as you said before.
I do this, only want to compile it first.

./CXX -c utils/wvwordwrap
linking libwvutils.so...
utils/wvargs.o: In function `WvArgsData::parser(int, char*,
argp_state*)':
wvargs.cc:(.text+0x1070): undefined reference to `argp_usage'
wvargs.cc:(.text+0x1114): undefined reference to `argp_usage'
utils/wvargs.o: In function `.L152':
wvargs.cc:(.text+0x1268): undefined reference to `argp_failure'
wvargs.cc:(.text+0x12fc): undefined reference to
`argp_err_exit_status'
utils/wvargs.o: In function `WvArgs::process(int, char**,
WvStringList*)':
wvargs.cc:(.text+0x271c): undefined reference to `argp_parse'
utils/wvargs.o: In function `.L326':
wvargs.cc:(.text+0x296c): undefined reference to
`argp_program_version'
wvargs.cc:(.text+0x2970): undefined reference to
`argp_program_bug_address'
utils/wvargs.o: In function `WvArgs::print_usage(int, char**)':
wvargs.cc:(.text+0x2b04): undefined reference to `argp_help'
utils/wvargs.o: In function `WvArgs::print_help(int, char**)':
wvargs.cc:(.text+0x2bc4): undefined reference to `argp_help'
utils/wvcrash.o: In function `wvcrash_real(int, int, int)':
wvcrash.cc:(.text+0x9e8): undefined reference to `backtrace'
wvcrash.cc:(.text+0xa04): undefined reference to
`backtrace_symbols_fd'
collect2: ld returned 1 exit status
make[1]: *** [libwvutils.so] Error 1
make: *** [wvstreams] Error 2

Please help!!
Thanks.

Henry


On 10月7日, 上午12時31分, "Avery Pennarun" <apenw...@gmail.com> wrote:

Avery Pennarun

unread,
Oct 8, 2008, 3:40:55 PM10/8/08
to wvstrea...@googlegroups.com
On 10/7/08, henr...@gmail.com <henr...@gmail.com> wrote:
> Question1: Is this patch already?? happen again!!
> So i use previous you teach us to modify some files (wvtask.h,
> wvtask.cc wvassert.h wvcrashbase.cc wvcrash.cc)

Oh, right. The patch for that hasn't been merged into the mainline
WvStreams yet since it isn't integrated with autoconf.

I just looked at the patch and re-merged it. You can try this:

git pull origin revert-wvtask

> Question2:
> Why? this means i use __GLIBC__ define, but i use uclibc not glibc?
> how can i modify it?

Good question. Maybe grep for __GLIBC__ in your uclibc include files?

I guess we could add an autoconf entry to detect the assert-related problems.

> utils/wvcrash.cc:31:35: warning: execinfo.h: No such file or directory
> utils/wvcrash.cc: In function `void wvcrash_real(int, int, pid_t)':
> utils/wvcrash.cc:273: error: `backtrace' was not declared in this
> scope
> utils/wvcrash.cc:273: error: `backtrace_symbols_fd' was not declared
> in this scope
> utils/wvcrash.cc:273: warning: unused variable 'backtrace'
> utils/wvcrash.cc:273: warning: unused variable 'backtrace_symbols_fd'
> make[1]: *** [utils/wvcrash.o] Error 1
> make: *** [wvstreams] Error 2

I think we've made some improvements to the wvcrash stuff lately:
perhaps changing just the "ifdef __linux" part of wvcrash.cc to "if 0"
will fix it. (Apparently, because of uclibc, not all Linux systems
support execinfo, so it's a bad ifdef anyway.)

> ./CXX -c utils/wvwordwrap
> linking libwvutils.so...
> utils/wvargs.o: In function `WvArgsData::parser(int, char*,
> argp_state*)':
> wvargs.cc:(.text+0x1070): undefined reference to `argp_usage'

> [...etc...]

This sounds like we're forgetting to link with the argp library
somehow. Luke has been working on this lately... maybe he has a
suggestion.

> wvcrash.cc:(.text+0x9e8): undefined reference to `backtrace'
> wvcrash.cc:(.text+0xa04): undefined reference to
> `backtrace_symbols_fd'

This is caused by your fake execinfo.h. Following the advice above
should make it go away.

So close!

Avery

Lukasz Kosewski

unread,
Oct 8, 2008, 4:35:51 PM10/8/08
to WvStreams Mailing List
Hola,

On Oct 8, 3:40 pm, "Avery Pennarun" <apenw...@gmail.com> wrote:
> On 10/7/08, henry3...@gmail.com <henry3...@gmail.com> wrote:
> >  ./CXX -c utils/wvwordwrap
> >  linking libwvutils.so...
> >  utils/wvargs.o: In function `WvArgsData::parser(int, char*,
> >  argp_state*)':
> >  wvargs.cc:(.text+0x1070): undefined reference to `argp_usage'
> > [...etc...]
>
> This sounds like we're forgetting to link with the argp library
> somehow.  Luke has been working on this lately... maybe he has a
> suggestion.

Yep, this happens because uclibc doesn't contain argp, and the
Makefiles for wvstreams don't link argp unless we're building for
Win32. The *easiest* way to fix this problem is to 'git pull origin
master' in wvstreams, and grab all the newest fixes there; argp will
be linked in correctly.

If you don't want to update your wvstreams branch, the other option is
to add "LIBS += -largp" somewhere early in the Makefile chain (say,
near the top of wvrules.mk). This should work since you've already
defined "-I$PORTS/argp/build/argp" and "-L$PORTS/argp/build/argp" in
your wvstreams/configure-armlinux file.

Luke
Reply all
Reply to author
Forward
0 new messages