Re: [PATCH] Fix compile errors on Debian systems

From: Arnaud Cornet <>
Date: Tue, 01 Jan 2008 22:49:40 +0100

Hi Willy,

> Also, I'd be very interested in knowing what CFLAGS used by Debian manage
> to break the build process. If there is a weakness anywhere, we should
> address it and not only the symptoms.

I have no idea of the work of Jean-Baptiste Quenot, but my guess is that this problem has nothing to do with building haproxy on debian but rather to build the debian *package* on debian (as this is a problem I encountered and fixed in debian haproxy package).

The problem is that CFLAGS variables a classically overriden in debian packages using commands such as

make CFLAGS="-O2 -g"

When using this, the following makefile line is overridden:


Hence, the COPTS variable is ignored. The COPTS variable has the -Iinclude flags, trying to builds without this obviously breaks.

Anyway, that's not a problem at all. I guess it would be slightly easier if you had CFLAGS only contain -Wall -Ox and -g flags and use another variable that has the other parameters, because your makefile would be more "classical".


Arnaud Cornet
Received on 2008/01/01 22:49

This archive was generated by hypermail 2.2.0 : 2008/01/01 23:00 CET