In MySQL 5.1 they've added 4 more defines in the error message files.
Those defines are the upper and lower limits for error codes.
mysql_xcr is extracting those defines and putting them into the enum type which control the error codes.
If a folder named apq is in ADA_INCLUDE_PATH configure assumes APQ is installed in the system and blocks the configure process.
This shouldn't happen as this folder could be created previously the build in order to receive the library.
ADA_INCLUDE_PATH and ADA_OBJECTS_PATH are being overwritten in the Makefile.
As the libraries aren't installed in the standard path in gentoo linux, the build fails with the following statement:
[quote]
ADA_INCLUDE_PATH=. ADA_OBJECTS_PATH=. gnatmake -c -gnata -gnatf -gnato -gnatwp -O0 comp_mysql
fatal error, run-time library not installed correctly
cannot locate file system.ads...
I've created this GNAT Project file so gnatmake can build AdaPlugin by itself.
I still got to make it build .so files instead of .o, but that's a start. :)
File Added: adaplugin.gpr.