• <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 閱讀(471) | 評論 (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 閱讀(15889) | 評論 (14)編輯 收藏

            久久久久黑人强伦姧人妻| 色婷婷久久综合中文久久蜜桃av| 久久97精品久久久久久久不卡| 97r久久精品国产99国产精| 51久久夜色精品国产| 亚洲国产精品无码久久九九| 亚洲午夜久久久影院伊人| 欧美亚洲国产精品久久蜜芽| 久久久久亚洲精品天堂久久久久久 | 久久久精品国产免大香伊| 亚洲午夜久久久久妓女影院| 色噜噜狠狠先锋影音久久| 伊人热热久久原色播放www| 91久久精品91久久性色| 香蕉99久久国产综合精品宅男自| 色综合久久中文字幕无码| 国产精品美女久久久免费| 亚洲AV日韩精品久久久久久久| 久久久久免费视频| 91精品国产乱码久久久久久| 久久精品日日躁夜夜躁欧美| 久久久久国产精品嫩草影院| 久久精品国产半推半就| 久久婷婷五月综合色高清| 伊人久久国产免费观看视频 | 天天爽天天爽天天片a久久网| 久久精品免费全国观看国产| 久久精品无码一区二区三区日韩 | 国产精品狼人久久久久影院| 久久青青草原精品国产| 中文字幕乱码人妻无码久久| 亚洲国产成人精品91久久久| 久久久精品久久久久久| 久久精品无码一区二区日韩AV| 日韩一区二区久久久久久 | 精品久久久久一区二区三区 | 伊人久久五月天| 国产香蕉久久精品综合网| 综合久久精品色| 精品熟女少妇AV免费久久| 精品久久亚洲中文无码|