What should I do if "undefinedreferenceto" _ inet_ntoa "orother _ inet _ * symbols" appears during Apache compilation?

Source: Internet
Author: User
Article Title: What should I do if "undefinedreferenceto" _ inet_ntoa "orother _ inet _ * symbols" appears during Apache compilation. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
? If you have installed BIND8 using the source code package, this problem should be caused by conflicts between header files and library files. BIND8 installed in source code installs its header files and library files under/usr/local/include and/usr/local/lib by default, however, the BIND8 file in your system is installed under/usr/include and/usr/lib, if your system first uses the/usr/local/include file instead of the header file in/usr/include, and your system's BIND8 library file version is relatively low, a conflict will occur.
?? Solution: add the following parameters during compilation:
?? EXTRA_LDFLAGS =-lbind
?? Note: If BIND8.1.1 is used, the default header file and library file are placed under/usr/local/bind, so this problem will not occur, but for better use, it is best to add the following parameters during compilation:
EXTRA_CFLAGS =-I/usr/local/bind/include
EXTRA_LDFLAGS =-L/usr/local/bind/lib
EXTRA_LIBS =-lbind

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.