arm-linux編譯ntpdate方法

來源:互聯網
上載者:User

標籤:linux   ntpdate   alex   伺服器   ntpd   

目的:在arm-linux下編譯可執行檔ntpdate工具

尚未完成目標:未能整個源碼包完整編譯,所以無法產生ntpd服務端工具

 

操作步驟如下:

 

(0) 只編譯用戶端 ntpdate,不編譯伺服器端 ntpd

(1) ./configure --host=arm-none-linux-gnueabi --with-yielding-select=yes

(2) cd ntp-dev-4.3.23/sntp/libopts
    make //產生 ntpdate 依賴目標檔案 libopts.la

(3) 拷貝缺失的必要標頭檔目錄
    cp -rf linux-devkit/arm-none-linux-gnueabi/usr/include/openssl ntp-dev-4.3.23/include

(4) cd ntp-dev-4.3.23/ntpdate
    vim Makefile
    - LDADD_NTP =    -lssl -lcrypto
    + LDADD_NTP =    -lssl -lcrypto -L$(top_builddir)/../linux-devkit/arm-none-linux-gnueabi/usr/lib
    make //產生ntpdate目標檔案

(5) x86直接 make 和 make install 可以編譯通過,但是 arm 編譯不能通過,所以不能直接執行這兩步。

   

歡迎各位有解決過編譯伺服器端的大蝦回複交流,謝謝!

arm-linux編譯ntpdate方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.