|
因为2.4.7和很多特殊的网络环境不兼容,希望能换成2.4.5,从dreambox搞来了整个PPP文件加上makefile文件,换了以后编译不能通过,望各位大侠帮忙看下。以下是错误信息。
flies直接替换后结果是无法运行。
mipsel-openwrt-linux-musl-gcc -o radius.so -shared radius.o libradiusclient.a
mipsel-openwrt-linux-musl-gcc -I. -I../.. -I../../../include -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fPIC -DRC_LOG_FACILITY=LOG_DAEMON -DCHAPMS=1 -DMPPE=1 -DMAXOCTETS=1 -c -o radattr.o radattr.c
mipsel-openwrt-linux-musl-gcc -o radattr.so -shared radattr.o
mipsel-openwrt-linux-musl-gcc -I. -I../.. -I../../../include -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fPIC -DRC_LOG_FACILITY=LOG_DAEMON -DCHAPMS=1 -DMPPE=1 -DMAXOCTETS=1 -c -o radrealms.o radrealms.c
mipsel-openwrt-linux-musl-gcc -o radrealms.so -shared radrealms.o
make[6]: Leaving directory '/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5/pppd/plugins/radius'
make[5]: Leaving directory '/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5/pppd/plugins'
cd pppd; make -w all
make[5]: Entering directory '/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5/pppd'
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o main.o main.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o magic.o magic.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o fsm.o fsm.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o lcp.o lcp.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o ipcp.o ipcp.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o upap.o upap.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o chap-new.o chap-new.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o md5.o md5.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o ccp.o ccp.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o ecp.o ecp.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o auth.o auth.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o options.o options.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o demand.o demand.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o utils.o utils.c
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5:ppp-2.4.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DHAVE_PATHS_H -DHAVE_MMAP -I../include '-DDESTDIR="/usr"' -DCHAPMS=1 -DMPPE=1 -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DPLUGIN -DPPP_FILTER -DPPP_PRECOMPILED_FILTER -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/usr/include -DINET6=1 -DMAXOCTETS -c -o sys-linux.o sys-linux.c
In file included from sys-linux.c:76:0:
/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.14/include/sys/errno.h:1:2: warning: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp]
#warning redirecting incorrect #include <sys/errno.h> to <errno.h>
^
sys-linux.c: In function 'make_ppp_unit':
sys-linux.c:665:17: error: 'SIOCSIFNAME' undeclared (first use in this function)
x = ioctl(s, SIOCSIFNAME, &ifr);
^
sys-linux.c:665:17: note: each undeclared identifier is reported only once for each function it appears in
sys-linux.c: In function 'sif6addr':
sys-linux.c:2584:22: error: storage size of 'rt6' isn't known
struct in6_rtmsg rt6;
^
<builtin>: recipe for target 'sys-linux.o' failed
make[5]: *** [sys-linux.o] Error 1
make[5]: Leaving directory '/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5/pppd'
Makefile:13: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5'
Makefile:253: recipe for target '/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5/.built' failed
make[3]: *** [/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/ppp-default/ppp-2.4.5/.built] Error 2
make[3]: Leaving directory '/home/openwrt/openwrt/package/network/services/ppp'
package/Makefile:195: recipe for target 'package/network/services/ppp/compile' failed
make[2]: *** [package/network/services/ppp/compile] Error 2
make[2]: Leaving directory '/home/openwrt/openwrt'
package/Makefile:192: recipe for target '/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/stamp/.package_compile' failed
make[1]: *** [/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_musl-1.1.14/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/openwrt/openwrt'
/home/openwrt/openwrt/include/toplevel.mk:192: recipe for target 'world' failed
make: *** [world] Error 2
|
|