Add a DNS library on armlinux

Source: Internet
Author: User
Add the DNS library-Linux Enterprise Application-Linux server application information on armlinux. For more information, see. The work needs to be embedded in linux to implement DNS. A dns is transplanted from Indy9 in Delphi and can be used for more than half a year.

Today, I accidentally saw the source code on the Internet (it was not found)

1. Find the bind-9.5.0.tar.gz source code, which contains the source code of the DNS protocol,./configure -- prefix =/home/hxs/lib -- host = arm-linux. Compile the command.

Checking for struct lifconf... no
Checking if unistd. h or sys/types. h defines fd_set... yes
Checking whether byte ordering is bigendian... no
Checking for OpenSSL library... using OpenSSL from/usr/lib and/usr/include
Checking whether linking with OpenSSL works... assuming it does work on target platform
Checking whether linking with OpenSSL requires-ldl... unknown
Configure: error: OpenSSL has unsupported dynamic loading

OpenSSL support was also required.

2. Download openssl http://www.openssl.org/I downloaded version I

./Config no-asm -- prefix =/home/hxs/lib # Remove asm

Modify Makefile and change gcc to arm-linux-gcc.

Make; make install

We can see that

Drwxr-xr-x 2 hxs users 4096 09-28 engines
-Rw-r -- 1 hxs users 2307146 09-28 libcrypto.
-Rw-r -- 1 hxs users 384152 09-28 libssl.
Drwxr-xr-x 2 hxs users 4096 09-28 pkgconfig

3. Continue to compile the dns package

./Configure -- prefix =/home/hxs/lib -- with-openssl =/home/hxs/lib host = arm-linux-gcc

Make; make install

Then there are several more

Libisc. a libisccfg. a libssl. a libbind9.a libdns. a libisccc. a liblwres.

It can be used for testing, but it is annoying to use static libraries. Change the ar in Makefile to arm-linux-ar, and the dynamic library will be compiled. If there is no test, it should be okay.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.