Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Why do I get an error about an undefined reference
(1 viewing) (1) Guest
All your queries regarding
Apache Installation,
Creating Virtual Domains Under Apache
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

Why do I get an error about an undefined reference

Why do I get an error about an undefined reference 1 year, 10 months ago #34

  • sabastian
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Why do I get an error about an undefined reference to "__inet_ntoa" or other __inet_* symbols? Please help me Out

Re: Why do I get an error about an undefined reference 1 year, 10 months ago #42

  • andrew
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 0
If you have installed BIND-8 then this is normally due to a conflict between your include files and your libraries. BIND-8 installs its include files and libraries /usr/local/include/ and /usr/local/lib/, while the resolver that comes with your system is probably installed in /usr/include/ and /usr/lib/. If your system uses the header files in /usr/local/include/ before those in /usr/include/ but you do not use the new resolver library, then the two versions will conflict.

To resolve this, you can either make sure you use the include files and libraries that came with your system or make sure to use the new include files and libraries. Adding -lbind to the EXTRA_LDFLAGS line in your Configuration file, then re-running Configure, should resolve the problem. (Apache versions 1.2.* and earlier use EXTRA_LFLAGS instead.)

Note:As of BIND 8.1.1, the bind libraries and files are installed under /usr/local/bind by default, so you should not run into this problem. Should you want to use the bind resolvers you'll have to add the following to the respective lines:

EXTRA_CFLAGS=-I/usr/local/bind/include
EXTRA_LDFLAGS=-L/usr/local/bind/lib
EXTRA_LIBS=-lbind
  • Page:
  • 1
Time to create page: 1.29 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download