1. 先grep -nr PPP_EAP * 看看是在那個路徑.
2. 編譯參數加-I. 或 在1中找到的相對路徑.
3. ppp-2.4.5下應該有configure這script, 應該可以用
./configure --arch=mipsel-linux-uclibc, 不過mipsel路徑必須先加在PATH變數裡.
※ 引述《aher2600 (和)》之銘言:
: 小弟安裝tool chain 如下
: 安裝完後,在ppp-2.4.5目錄下執行
: make CC="mipsel-linux-uclibc-gcc -I/mips/uclibc.mips/usr/include -L/mips/uclibc.mips/usr/lib -msoft -float"
: 顯示如下的錯誤訊息
: .
: .
: .
: main.c: In function `get_input':
: main.c:1077: error: `PPP_EAP' undeclared (first use in this function)
: main.c:1077: error: (Each undeclared identifier is reported only once
: main.c:1077: error: for each function it appears in.)
: make[1]: *** [main.o] Error 1
: make[1]: Leaving directory `/pub/share/build/CH/ppp-2.4.5/pppd'
: 所以原始碼都沒更動過,有版友可以幫忙檢視一下問題出在哪邊嗎
: 多謝!!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 1.169.182.117