struct iovec" when compiling under Linux?" /> struct iovec" when compiling under Linux?" />
ONLamp.com
oreilly.comSafari Books Online.Conferences.

FAQS
 FAQs
Apache FAQ
Linux FAQ
XML FAQ

Log in to particpate






   Apache FAQ > C. Building Apache
Question:  Why do I get complaints about redefinition of "struct iovec" when compiling under Linux?
Answer:

This is a conflict between your C library includes and your kernel includes. You need to make sure that the versions of both are matched properly. There are two workarounds, either one will solve the problem:

  • Remove the definition of struct iovec from your C library includes. It is located in /usr/include/sys/uio.h. Or,
  • Add -DNO_WRITEV to the EXTRA_CFLAGS line in your Configuration and reconfigure/rebuild. This hurts performance and should only be used as a last resort.

This FAQ is from Apache Server Frequently Asked Questions

Sponsored by: