Subject Compiling Firebird CS in Fedora Core 4
Author Fred_bo67
I'm having a problem compiling Firebird in Fedora Core 4; I believe
the reason is because FC4 uses GCC 4.0.

When I try to run 'make' I get the following error:

make[3]: Entering directory
`/home/orr/aaronk/Desktop/firebird-1.5.2.4731/src'
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i586
-fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC
-DPROD_BUILD -c ../src/common/classes/alloc.cpp -o
../temp/libfbcommon/common/classes/alloc.o
../src/common/classes/../../include/../common/classes/alloc.h:256:
error: 'void* operator new(size_t, Firebird::MemoryPool&)' may not be
declared as static
../src/common/classes/../../include/../common/classes/alloc.h:260:
error: 'void* operator new [](size_t, Firebird::MemoryPool&)' may not
be declared as static
make[3]: *** [../temp/libfbcommon/common/classes/alloc.o] Error 1

Further reading showed that GCC 3.2 is installed by default in FC4; so
I tried this (by setting environment variable CC=gcc32 and CPP=g++32)

Now when I run ./configure, I get the following error:

checking how to run the C preprocessor... g++32
configure: error: C preprocessor "g++32" fails sanity check
See `config.log' for more details.

Looking in config.log, we get the following:

conftest.cc: In function 'int main()':
conftest.cc:14: error: 'exit' was not declared in this scope
configure:3108: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LINUX 1
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }

~~~ SNIP ~~~

conftest.c:19: syntax error at end of input
configure:4014: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LINUX 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:4083: error: C preprocessor "g++32" fails sanity check
See `config.log' for more details.



Could anyone please tell me how to compile this in Fedora Core 4?

Thanks