天嵌 ARM开发社区

 找回密码
 注册
查看: 1764|回复: 3

编译PPP2。4。5和2。4。4出错!!

[复制链接]
L143007 发表于 2011-1-12 16:34:35 | 显示全部楼层 |阅读模式
用天嵌的编译环境编译PPP2。4。5和2。4。4出错!!
arm-linux-gcc -o radius.so -shared radius.o libradiusclient.a
libradiusclient.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make[2]: *** [radius.so] Error 1
make[2]: Leaving directory `/opt/EmbedSky/ppp-2.4.4/pppd/plugins/radius'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/EmbedSky/ppp-2.4.4/pppd/plugins'
make: *** [all] Error 2
什么原因导致的啊!!!!!!!大家帮我看看 谢谢
天嵌_support1 发表于 2011-1-13 16:03:17 | 显示全部楼层
把你的makefile内容贴来看看
 楼主| L143007 发表于 2011-1-25 09:09:15 | 显示全部楼层
# PPP top-level Makefile for Linux.

DESTDIR = $(INSTROOT)/usr/local
BINDIR = $(DESTDIR)/sbin
INCDIR = $(DESTDIR)/include
MANDIR = $(DESTDIR)/share/man
ETCDIR = $(INSTROOT)/etc/ppp

# uid 0 = root
INSTALL= install

all:
        cd chat; $(MAKE) $(MFLAGS) all
        cd pppd/plugins; $(MAKE) $(MFLAGS) all
        cd pppd; $(MAKE) $(MFLAGS) all
        cd pppstats; $(MAKE) $(MFLAGS) all
        cd pppdump; $(MAKE) $(MFLAGS) all

install: $(BINDIR) $(MANDIR)/man8 install-progs install-devel

install-progs:
        cd chat; $(MAKE) $(MFLAGS) install
        cd pppd/plugins; $(MAKE) $(MFLAGS) install
        cd pppd; $(MAKE) $(MFLAGS) install
        cd pppstats; $(MAKE) $(MFLAGS) install
        cd pppdump; $(MAKE) $(MFLAGS) install

install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
        $(ETCDIR)/chap-secrets

install-devel:
        cd pppd; $(MAKE) $(MFLAGS) install-devel

$(ETCDIR)/options:
        $(INSTALL) -c -m 644 etc.ppp/options $@
$(ETCDIR)/pap-secrets:
        $(INSTALL) -c -m 600 etc.ppp/pap-secrets $@
$(ETCDIR)/chap-secrets:
        $(INSTALL) -c -m 600 etc.ppp/chap-secrets $@

$(BINDIR):
        $(INSTALL) -d -m 755 $@
$(MANDIR)/man8:
        $(INSTALL) -d -m 755 $@
$(ETCDIR):
        $(INSTALL) -d -m 755 $@

clean:
        rm -f `find . -name '*.[oas]' -print`
        rm -f `find . -name 'core' -print`
        rm -f `find . -name '*~' -print`
        cd chat; $(MAKE) clean
        cd pppd/plugins; $(MAKE) clean
        cd pppd; $(MAKE) clean
        cd pppstats; $(MAKE) clean
        cd pppdump; $(MAKE) clean

dist-clean:     clean
        rm -f Makefile `find . -name Makefile -print`

#kernel:
#       cd linux; ./kinstall.sh

# no tests yet, one day...
installcheck:
        true
 楼主| L143007 发表于 2011-1-25 09:11:16 | 显示全部楼层
Makefile贴出来了!!!
我先./configure
然后make CC=arm-linux-gcc
最后就出现上述现象!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-5 14:27 , Processed in 1.011654 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表