Dear All
this is my first try on compiling with GPH SDK
1. Gph SDK is installed in /gp2xsdk/Tool
2. Porting test with PPP source
First , env set
CODE
export GP2XDEV="/gp2xsdk/Tools"
export PATH="$PATHGP2XDEV/bin"
export CC='arm-gp2x-linux-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/gp2xsdk/Tools/include -I/gp2xsdk/Tools/include/libxml2 -L/gp2xsdk/Tools/lib'
export CXX='arm-gp2x-linux-g++ -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/gp2xsdk/Tools/include -I/gp2xsdk/Tools/include/libxml2 -L/gp2xsdk/Tools/lib -rpath,/gp2xsdk/Tools/lib'
export CFLAGS='-O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/gp2xsdk/Tools/include -I/gp2xsdk/Tools/include/libxml2'
export LDFLAGS='-L/gp2xsdk/Tools/lib'
export LD_LIBRARY_PATH='/gp2xsdk/Tools/lib'
export PKG_CONFIG_PATH='/gp2xsdk/Tools/lib/pkgconfig'
and
CODE
[root@kannel /]# cd /home/bino/ppp-2.4.4
[root@kannel ppp-2.4.4]#
[root@kannel ppp-2.4.4]# ./configure --prefix=/gp2xsdk/Tools/ --build=`uname -m` --host=gp2x --enable-static --enable-shared
Configuring for Linux
Creating Makefiles.
Makefile <= linux/Makefile.top
pppd/Makefile <= pppd/Makefile.linux
pppstats/Makefile <= pppstats/Makefile.linux
chat/Makefile <= chat/Makefile.linux
pppdump/Makefile <= pppdump/Makefile.linux
pppd/plugins/Makefile <= pppd/plugins/Makefile.linux
pppd/plugins/rp-pppoe/Makefile <= pppd/plugins/rp-pppoe/Makefile.linux
pppd/plugins/radius/Makefile <= pppd/plugins/radius/Makefile.linux
pppd/plugins/pppoatm/Makefile <= pppd/plugins/pppoatm/Makefile.linux
[root@kannel ppp-2.4.4]#make
the "make" part.
there is a problem when it start to compile the pppd
Starting from :
CODE
arm-gp2x-linux-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/gp2xsdk/Tools/include -I/gp2xsdk/Tools/include/libxml2 -L/gp2xsdk/Tools/lib -O2 -pipe -Wall -g -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -I../include '-DDESTDIR="/gp2xsdk/Tools/"' -DCHAPMS=1 -DMPPE=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DHAVE_MULTILINK -DUSE_TDB=1 -DPLUGIN -DMAXOCTETS -c -o sys-linux.o sys-linux.c
In file included from /gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/route.h:28,
from sys-linux.c:109:
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/dst.h:30: error: syntax error before "atomic_t"
<snip > ...
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/route.h:169: error: `oif' undeclared (first use in this function)
In file included from sys-linux.c:124:
pppd.h: At top level:
pppd.h:513: error: 'info' redeclared as different kind of symbol
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/dst.h:66: error: previous declaration of 'info' was here
pppd.h:516: error: 'error' redeclared as different kind of symbol
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/dst.h:52: error: previous declaration of 'error' was here
pppd.h:605: error: 'output' redeclared as different kind of symbol
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/dst.h:58: error: previous declaration of 'output' was here
make[1]: *** [sys-linux.o] Error 1
make[1]: Leaving directory `/home/bino/ppp-2.4.4/pppd'
make: *** [all] Error 2
[root@kannel ppp-2.4.4]#
Note : It's look fine when it compile for another part of PPP, i.e : chat, pppstats , pppdump. At least , no warning or error messages generated.
I tried to compile this ppp source for "plain" linux (not GP2X specific) , and it run well
any recomendation please ..
Sincerely
-bino-
this is my first try on compiling with GPH SDK
1. Gph SDK is installed in /gp2xsdk/Tool
2. Porting test with PPP source
First , env set
CODE
export GP2XDEV="/gp2xsdk/Tools"
export PATH="$PATHGP2XDEV/bin"
export CC='arm-gp2x-linux-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/gp2xsdk/Tools/include -I/gp2xsdk/Tools/include/libxml2 -L/gp2xsdk/Tools/lib'
export CXX='arm-gp2x-linux-g++ -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/gp2xsdk/Tools/include -I/gp2xsdk/Tools/include/libxml2 -L/gp2xsdk/Tools/lib -rpath,/gp2xsdk/Tools/lib'
export CFLAGS='-O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/gp2xsdk/Tools/include -I/gp2xsdk/Tools/include/libxml2'
export LDFLAGS='-L/gp2xsdk/Tools/lib'
export LD_LIBRARY_PATH='/gp2xsdk/Tools/lib'
export PKG_CONFIG_PATH='/gp2xsdk/Tools/lib/pkgconfig'
and
CODE
[root@kannel /]# cd /home/bino/ppp-2.4.4
[root@kannel ppp-2.4.4]#
[root@kannel ppp-2.4.4]# ./configure --prefix=/gp2xsdk/Tools/ --build=`uname -m` --host=gp2x --enable-static --enable-shared
Configuring for Linux
Creating Makefiles.
Makefile <= linux/Makefile.top
pppd/Makefile <= pppd/Makefile.linux
pppstats/Makefile <= pppstats/Makefile.linux
chat/Makefile <= chat/Makefile.linux
pppdump/Makefile <= pppdump/Makefile.linux
pppd/plugins/Makefile <= pppd/plugins/Makefile.linux
pppd/plugins/rp-pppoe/Makefile <= pppd/plugins/rp-pppoe/Makefile.linux
pppd/plugins/radius/Makefile <= pppd/plugins/radius/Makefile.linux
pppd/plugins/pppoatm/Makefile <= pppd/plugins/pppoatm/Makefile.linux
[root@kannel ppp-2.4.4]#make
the "make" part.
there is a problem when it start to compile the pppd
Starting from :
CODE
arm-gp2x-linux-gcc -O3 -ffast-math -fomit-frame-pointer -mcpu=arm920t -I/gp2xsdk/Tools/include -I/gp2xsdk/Tools/include/libxml2 -L/gp2xsdk/Tools/lib -O2 -pipe -Wall -g -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -I../include '-DDESTDIR="/gp2xsdk/Tools/"' -DCHAPMS=1 -DMPPE=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DHAVE_MULTILINK -DUSE_TDB=1 -DPLUGIN -DMAXOCTETS -c -o sys-linux.o sys-linux.c
In file included from /gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/route.h:28,
from sys-linux.c:109:
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/dst.h:30: error: syntax error before "atomic_t"
<snip > ...
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/route.h:169: error: `oif' undeclared (first use in this function)
In file included from sys-linux.c:124:
pppd.h: At top level:
pppd.h:513: error: 'info' redeclared as different kind of symbol
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/dst.h:66: error: previous declaration of 'info' was here
pppd.h:516: error: 'error' redeclared as different kind of symbol
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/dst.h:52: error: previous declaration of 'error' was here
pppd.h:605: error: 'output' redeclared as different kind of symbol
/gp2xsdk/Tools/lib/gcc/arm-gp2x-linux/3.4.6/../../../../arm-gp2x-linux/sys-include/net/dst.h:58: error: previous declaration of 'output' was here
make[1]: *** [sys-linux.o] Error 1
make[1]: Leaving directory `/home/bino/ppp-2.4.4/pppd'
make: *** [all] Error 2
[root@kannel ppp-2.4.4]#
Note : It's look fine when it compile for another part of PPP, i.e : chat, pppstats , pppdump. At least , no warning or error messages generated.
I tried to compile this ppp source for "plain" linux (not GP2X specific) , and it run well
any recomendation please ..
Sincerely
-bino-