rp-pppoe移植问题

tmhill   2008-12-22 22:31 楼主
我现在是在PC机上交叉编译rp-pppoe-3.8.(mipsel-linux-gcc).但是很郁闷的是,下载下来的包里没有Makefile,只有configuer.
./configuer后生成不了Makefile。希望有谁能帮我解决,感激不尽!
我在编译内核时,把支持PPPOE的选项都选上了!
我的编译过程如下:
[root@localhost rp-pppoe-3.7]# ./configure --host=mipsel-linux --build=i386-pc-linux-gnu
checking for mipsel-linux-gcc... mipsel-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 mipsel-linux-gcc accepts -g... yes
checking for mipsel-linux-gcc option to accept ANSI C... none needed
checking for mipsel-linux-ranlib... mipsel-linux-ranlib
checking how to run the C preprocessor... mipsel-linux-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking net/if_arp.h usability... yes
checking net/if_arp.h presence... yes
checking for net/if_arp.h... yes
checking netinet/if_ether.h usability... yes
checking netinet/if_ether.h presence... yes
checking for netinet/if_ether.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for fcntl.h... (cached) yes
checking net/bpf.h usability... no
checking net/bpf.h presence... no
checking for net/bpf.h... no
checking netpacket/packet.h usability... yes
checking netpacket/packet.h presence... yes
checking for netpacket/packet.h... yes
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
checking asm/types.h usability... yes
checking asm/types.h presence... yes
checking for asm/types.h... yes
checking linux/if_packet.h usability... yes
checking linux/if_packet.h presence... yes
checking for linux/if_packet.h... yes
checking linux/if_ether.h usability... yes
checking linux/if_ether.h presence... yes
checking for linux/if_ether.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking net/if_ether.h usability... no
checking net/if_ether.h presence... no
checking for net/if_ether.h... no
checking net/if_types.h usability... no
checking net/if_types.h presence... no
checking for net/if_types.h... no
checking for netinet/if_ether.h... (cached) yes
checking for net/if_types.h... (cached) no
checking for net/if_dl.h... (cached) no
checking for linux/if.h... yes
checking for linux/if_pppox.h... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct sockaddr_ll... yes
checking for N_HDLC line discipline... yes
checking for working memcmp... no
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for strtol... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for unsigned short... yes
checking size of unsigned short... 2
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for pppd... /usr/sbin/pppd
checking for echo... /bin/echo
checking for setsid... /usr/bin/setsid
checking for id... /usr/bin/id
checking for Linux 2.4.X kernel-mode PPPoE support... cross-compiling, default:
no
checking packing order of bit fields... no defaults for cross-compiling


回复评论 (5)

    编译问题已经解决!!但是现在是把chat pppd pppdump pppstats pppoe等可执行程序移植到了开发板上,但是运行./pppoe-start后,显示的是超时。运行./pppoe-connect后,说是LCP连接失败。
   
    在机子上抓包一看,原来是在LCP阶段,是自己这边发了个什么拒绝验证发给服务器,然后服务器就马上发出终止信息。我不知道是什么什么原因,是没有读到pap还是chap吗?
   
    因为我是在/tmp文件夹下面建了个ppp文件夹,ppp里的配置文件和pc机里的是一样的。但是读取配置文件的路径时,我是把路径改在/tmp下的,是不是有些细节的地方没注意到吗?

    我现在的环境是:内核是下载在DRAM里的,还没有烧进flash里。文件系统是cramfs,看了一下/etc文件夹的属性是可读写的,我是在root下的。可是很郁闷的是在这个文件系统里,只有tmp文件里可以新建文件夹和其他操作,在/etc下什么都不能作,而且软连接到/etc下都不行。不知道是什么原因,是不是我的那些配置文件没有链接到/etc下,才有问题呢???
   
    所以请各位大侠看了这些问题后,能给我一些提示,教我怎么去解决这个难题!!!!在此现谢过了!!!
点赞  2008-12-27 21:36
看起来这问题还是有些复杂哦,最好发到专门讨论Linux的论坛上吧,那里专家会多一点
点赞  2008-12-27 23:12
帮顶。
点赞  2008-12-29 09:04
能告诉我你是怎么编译通过的吗?谢了,我遇到了和你一样的问题!./configure --host=arm-linux
如能告知,不胜感激!tianshuaipo@163.com
点赞  2009-2-18 17:35
./configure --host=arm-linux 这个不行的。我是这么做的,先用./configure  --prefix=$PWD/pub CC=linux-mipsel --host=mipsel-linux试了下,不行,直接进入rp-ppoe/src/下将Makefile文件里面的gcc用mipsel-linux-gcc强行写死,在将src目录下其他目录的Makefile都这么写死,make通过。
点赞  2009-4-2 17:45
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复