Bug #45177 Usage of the -I. compiling option in maria
Submitted: 29 May 2009 0:30 Modified: 18 Mar 2010 10:39
Reporter: Marc ALFF Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Maria storage engine Severity:S1 (Critical)
Version:6.0-maria OS:Any
Assigned to: Marc ALFF CPU Architecture:Any

[29 May 2009 0:30] Marc ALFF
Description:
The Maria code uses one of:
#include <foo.h>
#include "foo.h"
depending on the location of foo.h (in the local directory or not),
as an "optimization".

Therefore, the include path should *not* contain '-I.', since this breaks
the #include <foo.h> "optimization".

The maria makefiles do contain -I., which is then a bug.

How to repeat:
storage/maria> make ha_maria.o
ccache g++ -DHAVE_CONFIG_H -I. -I../../include  -I../../include -I../../regex -I../../sql   -g -DSAFE_MUTEX -DSAFEMALLOC -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti  -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS  -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX   -fno-implicit-templates -fno-exceptions -fno-rtti  -MT ha_maria.o -MD -MP -MF .deps/ha_maria.Tpo -c -o ha_maria.o ha_maria.cc
[29 May 2009 5:58] Sveta Smirnova
Thank you for the report.

Verified as described.