1.android已经自带pppd程序,所以就不用移植pppd了
2.下载rp-pppoe代码
wget -c http://www.roaringpenguin.com/files/download/rp-pppoe-3.10.tar.gz
3.把rp-pppoe-3.10.tar.gz解压到android的 external目录下
4.cd external/rp-pppoe-3.10/src
1) ./configure --host=arm-linux
2) vi config.h
一、注释掉 #define HAVE_SYS_UIO_H 1 要不然会提示重定义的警告
二、如果提示 if.c:34:26: error: net/ethernet.h: No such file or directory
注释掉 #define HAVE_NET_ETHERNET_H 1
三、我的config.h 内容如下
-------------------- config.h ---------------------------------------------
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* LIC: GPL */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef pid_t */
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define if the setvbuf function takes the buffering type as its second
argument and the buffer pointer as the third, as on System V
before release 3. */
/* #undef SETVBUF_REVERSED */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you can safely in
2.下载rp-pppoe代码
wget -c http://www.roaringpenguin.com/files/download/rp-pppoe-3.10.tar.gz
3.把rp-pppoe-3.10.tar.gz解压到android的 external目录下
4.cd external/rp-pppoe-3.10/src
1) ./configure --host=arm-linux
2) vi config.h
一、注释掉 #define HAVE_SYS_UIO_H 1 要不然会提示重定义的警告
二、如果提示 if.c:34:26: error: net/ethernet.h: No such file or directory
注释掉 #define HAVE_NET_ETHERNET_H 1
三、我的config.h 内容如下
-------------------- config.h ---------------------------------------------
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* LIC: GPL */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef pid_t */
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define if the setvbuf function takes the buffering type as its second
argument and the buffer pointer as the third, as on System V
before release 3. */
/* #undef SETVBUF_REVERSED */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you can safely in