• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            MyVirgo

                        /ASM/C++/JAVA/JSP/SQL/逆向工程/密碼學/

              C++博客 :: 首頁 :: 聯系 :: 聚合  :: 管理
              2 Posts :: 2 Stories :: 14 Comments :: 0 Trackbacks

            常用鏈接

            留言簿(1)

            我參與的團隊

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            2005年12月4日 #

            今天在FreeBSD 5.4 Release中安裝Firefox, 先更新ports tree到最新版本:

            FreeBSD# cvsup -g -L 2 /root/ports-supfile

            然后到Firefox的目錄中去執行make:

            FreeBSD# cd /usr/ports/www/firefox
            FreeBSD# make

            沒多久,系統就爆出了編譯錯誤:

            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上會存在問題,無法通過編譯!
            需要安裝
            Port:  nspr-4.4.1_1
            Path:  /usr/ports/devel/nspr
            posted @ 2005-12-04 13:07 SkyFuture 閱讀(477) | 評論 (0)編輯 收藏

            2005年11月19日 #

            今天在看微軟關于fat格式的白皮書的時候看到了一個名詞:Little-Endian

            什么是Big?什么是Little?要理解這個問題,必須要知道數據在機器中存儲的規則.....

                所謂的Little-Endian,就是我們在學習匯編時候的高高低低原則,而Bit-Endian就是剛剛相反,例如:12345678h這個數據,在不同機器中存儲是不同的

                             Big-Endian                                      Little-Endian

            0字節            12h                                                    78h

            1字節            34h                                                    56h

            2字節            56h                                                    34h

            3字節            78h                                                    21h

            Little-Endian主要用在我們現在的PC的CPU中,Big-Endian則應用在目前的Mac機器中(注意:是指Power系列 處理器)

            關于優點和缺點,網上討論的很多, 自己去看一下吧...

             

            PS:關于Endian這個詞語,我在網上看到其意思和起源

            以下內容來自Pconline:

            “endian”這個詞出自《格列佛游記》。小人國的內戰就源于吃雞蛋時是究竟從大頭(Big-Endian)敲開還是從小頭(Little-Endian)敲開,由此曾發生過六次叛亂,其中一個皇帝送了命,另一個丟了王位。

            我們一般將endian翻譯成“字節序”,將big endian和little endian稱作“大尾”和“小尾”。
            posted @ 2005-11-19 10:09 SkyFuture 閱讀(15906) | 評論 (14)編輯 收藏

            久久久久亚洲精品无码网址| 亚洲AV无一区二区三区久久| 99久久国产主播综合精品| 夜夜亚洲天天久久| 久久亚洲天堂| 久久香蕉超碰97国产精品| 97精品伊人久久久大香线蕉| 亚洲国产成人精品91久久久 | 国内精品久久久久影院老司| 国产精品中文久久久久久久| 久久99中文字幕久久| 久久久久亚洲精品日久生情 | 色欲久久久天天天综合网精品| 99国产精品久久| 偷窥少妇久久久久久久久| 丰满少妇高潮惨叫久久久| 日本久久久久久久久久| 77777亚洲午夜久久多喷| 狠狠色噜噜色狠狠狠综合久久| 国产成人久久精品二区三区| 久久免费的精品国产V∧| 国产精品乱码久久久久久软件| 伊人久久综合热线大杳蕉下载| 欧美噜噜久久久XXX| 国产69精品久久久久9999APGF | 久久精品成人免费网站| 亚洲综合伊人久久综合| 久久久久久久精品妇女99| 欧美精品丝袜久久久中文字幕 | 2021国产精品午夜久久| 国产精久久一区二区三区| 久久中文娱乐网| 久久这里只精品国产99热| 久久福利青草精品资源站| 国产精品久久毛片完整版| 99久久超碰中文字幕伊人| 久久久久AV综合网成人| 波多野结衣中文字幕久久| 国产成人精品免费久久久久| 国产精品久久久久久| 亚洲国产成人久久综合一|