锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
FreeBSD# cvsup -g -L 2 /root/ports-supfile
鐒跺悗鍒癋irefox鐨勭洰褰曚腑鍘繪墽琛宮ake:
FreeBSD# cd /usr/ports/www/firefox
FreeBSD# make
娌″涔咃紝緋葷粺灝辯垎鍑轟簡緙栬瘧閿欒錛?br>
nsHostResolver.h:95: error: ISO C++ forbids declaration of `PRAddrInfo' with no type
nsHostResolver.h:95: error: expected `;' before '*' token
nsHostResolver.h: In member function `PRBool nsHostRecord::HasResult() const':
nsHostResolver.h:99: error: `addr_info' undeclared (first use this function)
nsHostResolver.h:99: error: (Each undeclared identifier is reported only once for each function it appears in.)
nsHostResolver.h: At global scope:
nsHostResolver.h:209: error: `PRAddrInfo' has not been declared
nsHostResolver.h:209: error: ISO C++ forbids declaration of `parameter' with no type
nsDNSService2.cpp: In member function `virtual nsresult nsDNSRecord::GetCanonicalName(nsACString&)':
nsDNSService2.cpp:95: error: 'class nsDerivedSafe' has no member named 'addr_info'
nsDNSService2.cpp:96: error: 'class nsDerivedSafe' has no member named 'addr_info'
nsDNSService2.cpp:96: error: `PR_GetCanonNameFromAddrInfo' undeclared (first use this function)
nsDNSService2.cpp: In member function `virtual nsresult nsDNSRecord::GetNextAddr(PRUint16, PRNetAddr*)':
nsDNSService2.cpp:112: error: 'class nsDerivedSafe' has no member named 'addr_info'
nsDNSService2.cpp:113: error: 'class nsDerivedSafe' has no member named 'addr_info'
nsDNSService2.cpp:113: error: `PR_EnumerateAddrInfo' undeclared (first use this function)
nsDNSService2.cpp: In member function `PRUint16 nsDNSService::GetAFForLookup(const nsACString&)':
nsDNSService2.cpp:528: error: `PR_AF_UNSPEC' undeclared (first use this function)
gmake[4]: *** [nsDNSService2.o] Error 1
gmake[4]: Leaving directory `/usr/ports/www/firefox/work/mozilla/netwerk/dns/src'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla/netwerk/dns'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla/netwerk'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/usr/ports/www/firefox/work/mozilla'
gmake: *** [default] Error 2
*** Error code 2
寮曡搗榪欎釜闂鐨勫師鍥犳槸Firefox鍦ㄨ佺増鏈殑nspr涓婁細(xì)瀛樺湪闂錛屾棤娉曢氳繃緙栬瘧錛?br>
闇瑕佸畨瑁?br>
Port:銆 nspr-4.4.1_1
Path:銆 /usr/ports/devel/nspr
]]>
浠涔堟槸Big?浠涔堟槸Little?瑕佺悊瑙h繖涓棶棰?蹇呴』瑕佺煡閬撴暟鎹湪鏈哄櫒涓瓨鍌ㄧ殑瑙勫垯.....
鎵璋撶殑Little-Endian,灝辨槸鎴戜滑鍦ㄥ涔?fàn)姹嚲~栨椂鍊欑殑楂橀珮浣庝綆鍘熷垯,鑰孊it-Endian灝辨槸鍒氬垰鐩稿弽,渚嬪:12345678h榪欎釜鏁版嵁,鍦ㄤ笉鍚屾満鍣ㄤ腑瀛樺偍鏄笉鍚岀殑
Big-Endian Little-Endian
0瀛楄妭 12h 78h
1瀛楄妭 34h 56h
2瀛楄妭 56h 34h
3瀛楄妭 78h 21h
Little-Endian涓昏鐢ㄥ湪鎴戜滑鐜板湪鐨凱C鐨凜PU涓?Big-Endian鍒欏簲鐢ㄥ湪鐩墠鐨凪ac鏈哄櫒涓?娉ㄦ剰:鏄寚Power緋誨垪 澶勭悊鍣?
鍏充簬浼樼偣鍜岀己鐐?緗戜笂璁ㄨ鐨勫緢澶氾紝 鑷繁鍘葷湅涓涓嬪惂...
PS:鍏充簬Endian榪欎釜璇嶈,鎴戝湪緗戜笂鐪嬪埌鍏舵剰鎬濆拰璧鋒簮
浠ヤ笅鍐呭鏉ヨ嚜Pconline:
鈥渆ndian鈥濊繖涓瘝鍑鴻嚜銆婃牸鍒椾經(jīng)娓歌銆嬨傚皬浜哄浗鐨勫唴鎴樺氨婧愪簬鍚冮浮铔嬫椂鏄┒绔熶粠澶уご(Big-Endian)鏁插紑榪樻槸浠庡皬澶?Little-Endian)鏁插紑錛岀敱姝ゆ浘鍙戠敓榪囧叚嬈″彌涔憋紝鍏朵腑涓涓殗甯濋佷簡鍛斤紝鍙︿竴涓涪浜嗙帇浣嶃?/P>鎴戜滑涓鑸皢endian緲昏瘧鎴愨滃瓧鑺傚簭鈥濓紝灝哹ig endian鍜宭ittle endian縐頒綔鈥滃ぇ灝鋸濆拰鈥滃皬灝鋸濄?/DIV>