Subject | Unable to compile Firebird 1.5 on Slackware Linux 8.1 in UML |
---|---|
Author | Carl Peto |
Post date | 2004-03-30T12:20:21Z |
I'm running a Slackware Linux 8.1 "box" in UML on my main Linux server.
Basically the problem is this...
I've downloaded gcc 2.95.3, automake, m4, make, binutils and glibc 2.2 but I
cannot get firebird to compile. Automake and configure seem to run ok.
Also I can't find a clear set of instructions anywhere on the website or in
the source package for building on linux or even just a clear list of what
firebird 1.5 needs installed in order to be able to compile.
Can anyone help please?
Here are the error messages...
carl@anomuran:~/firebird-1.5.0.4290$ make
make -C src firebird
make[1]: Entering directory `/home/carl/firebird-1.5.0.4290/src'
make boot_phase1_build
make[2]: Entering directory `/home/carl/firebird-1.5.0.4290/src'
make -f ../gen/Makefile.libfbcommon libfbcommon
make[3]: Entering directory `/home/carl/firebird-1.5.0.4290/src'
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686
-fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -DP
ROD_BUILD -c ../src/common/classes/alloc.cpp -o
../temp/libfbcommon/common/classes/alloc.o
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686
-fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -DP
ROD_BUILD -c ../src/common/classes/locks.cpp -o
../temp/libfbcommon/common/classes/locks.o
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686
-fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -DP
ROD_BUILD -c ../src/common/fb_exception.cpp -o
../temp/libfbcommon/common/fb_exception.o
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686
-fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -DP
ROD_BUILD -c ../src/common/config/config.cpp -o
../temp/libfbcommon/common/config/config.o
In file included from ../src/common/config/../../common/config/config.h:29,
from ../src/common/config/config.cpp:28:
../src/include/fb_string.h:31: `::char_traits' undeclared (first use here)
../src/include/fb_string.h:31: parse error before `>'
In file included from
../src/common/config/../../common/config/config_impl.h:33,
from ../src/common/config/config.cpp:29:
../src/common/config/../../common/config/../../common/config/config_file.h:5
4: ANSI C++ forbids declaration `string' with no type
../src/common/config/../../common/config/../../common/config/config_file.h:5
4: parse error before `;'
../src/common/config/../../common/config/../../common/config/config_file.h:8
8: type specifier omitted for parameter
../src/common/config/../../common/config/../../common/config/config_file.h:8
8: parse error before `&'
../src/common/config/../../common/config/../../common/config/config_file.h:8
9: type specifier omitted for parameter
../src/common/config/../../common/config/../../common/config/config_file.h:8
9: `int' is not an aggregate type
In file included from
../src/common/config/../../common/config/config_impl.h:34,
from ../src/common/config/config.cpp:29:
../src/include/../jrd/os/config_root.h:52: ANSI C++ forbids declaration
`string' with no type
../src/include/../jrd/os/config_root.h:52: parse error before `;'
In file included from ../src/common/config/config.cpp:29:
../src/common/config/../../common/config/config_impl.h:45: ANSI C++ forbids
declaration `string' with no type
../src/common/config/../../common/config/config_impl.h:45: parse error
before `;'
../src/common/config/config.cpp:38: syntax error before `;'
../src/common/config/config.cpp: In method `ConfigImpl::ConfigImpl()':
../src/common/config/config.cpp:163: initialization to `int' from `const
char *' lacks a cast
../src/common/config/config.cpp:164: no matching function for call to
`ConfigFile::setConfigFile (const char *)'
../src/common/config/../../common/config/../../common/config/config_file.h:7
3: candidates are: void ConfigFile::setConfigFile(const int &)
../src/common/config/config.cpp:173: request for member `length' in `value',
which is of non-aggregate type `int'
../src/common/config/config.cpp: At top level:
../src/common/config/config.cpp:229: new declaration `static class string
ConfigImpl::getValue(ConfigFile &, char *)'
../src/common/config/../../common/config/config_impl.h:68: ambiguates old
declaration `static int ConfigImpl::getValue(ConfigFile &, char *)'
../src/common/config/config.cpp: In function `static class string
ConfigImpl::getValue(ConfigFile &, char *)':
../src/common/config/config.cpp:230: no matching function for call to
`ConfigFile::doesKeyExist (char *&)'
../src/common/config/../../common/config/../../common/config/config_file.h:8
1: candidates are: bool ConfigFile::doesKeyExist(const int &)
../src/common/config/config.cpp:230: no matching function for call to
`ConfigFile::getString (char *&)'
../src/common/config/../../common/config/../../common/config/config_file.h:8
2: candidates are: int ConfigFile::getString(const int &)
../src/common/config/config.cpp: In function `static int
ConfigImpl::asInteger(const int &)':
../src/common/config/config.cpp:235: request for member `data' in `value',
which is of non-aggregate type `int'
../src/common/config/config.cpp: In function `static bool
ConfigImpl::asBoolean(const int &)':
../src/common/config/config.cpp:240: request for member `data' in `value',
which is of non-aggregate type `int'
../src/common/config/config.cpp: In function `static const char *
ConfigImpl::asString(const int &)':
../src/common/config/config.cpp:245: request for member `c_str' in `value',
which is of non-aggregate type `int'
make[3]: *** [../temp/libfbcommon/common/config/config.o] Error 1
make[3]: Leaving directory `/home/carl/firebird-1.5.0.4290/src'
make[2]: *** [libfbcommon] Error 2
make[2]: Leaving directory `/home/carl/firebird-1.5.0.4290/src'
make[1]: *** [../gen/firebird/bin/gpre_static] Error 2
make[1]: Leaving directory `/home/carl/firebird-1.5.0.4290/src'
make: *** [firebird] Error 2
carl@anomuran:~/firebird-1.5.0.4290$ gcc --version
2.95.3
carl@anomuran:~/firebird-1.5.0.4290$
Basically the problem is this...
I've downloaded gcc 2.95.3, automake, m4, make, binutils and glibc 2.2 but I
cannot get firebird to compile. Automake and configure seem to run ok.
Also I can't find a clear set of instructions anywhere on the website or in
the source package for building on linux or even just a clear list of what
firebird 1.5 needs installed in order to be able to compile.
Can anyone help please?
Here are the error messages...
carl@anomuran:~/firebird-1.5.0.4290$ make
make -C src firebird
make[1]: Entering directory `/home/carl/firebird-1.5.0.4290/src'
make boot_phase1_build
make[2]: Entering directory `/home/carl/firebird-1.5.0.4290/src'
make -f ../gen/Makefile.libfbcommon libfbcommon
make[3]: Entering directory `/home/carl/firebird-1.5.0.4290/src'
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686
-fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -DP
ROD_BUILD -c ../src/common/classes/alloc.cpp -o
../temp/libfbcommon/common/classes/alloc.o
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686
-fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -DP
ROD_BUILD -c ../src/common/classes/locks.cpp -o
../temp/libfbcommon/common/classes/locks.o
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686
-fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -DP
ROD_BUILD -c ../src/common/fb_exception.cpp -o
../temp/libfbcommon/common/fb_exception.o
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686
-fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -DP
ROD_BUILD -c ../src/common/config/config.cpp -o
../temp/libfbcommon/common/config/config.o
In file included from ../src/common/config/../../common/config/config.h:29,
from ../src/common/config/config.cpp:28:
../src/include/fb_string.h:31: `::char_traits' undeclared (first use here)
../src/include/fb_string.h:31: parse error before `>'
In file included from
../src/common/config/../../common/config/config_impl.h:33,
from ../src/common/config/config.cpp:29:
../src/common/config/../../common/config/../../common/config/config_file.h:5
4: ANSI C++ forbids declaration `string' with no type
../src/common/config/../../common/config/../../common/config/config_file.h:5
4: parse error before `;'
../src/common/config/../../common/config/../../common/config/config_file.h:8
8: type specifier omitted for parameter
../src/common/config/../../common/config/../../common/config/config_file.h:8
8: parse error before `&'
../src/common/config/../../common/config/../../common/config/config_file.h:8
9: type specifier omitted for parameter
../src/common/config/../../common/config/../../common/config/config_file.h:8
9: `int' is not an aggregate type
In file included from
../src/common/config/../../common/config/config_impl.h:34,
from ../src/common/config/config.cpp:29:
../src/include/../jrd/os/config_root.h:52: ANSI C++ forbids declaration
`string' with no type
../src/include/../jrd/os/config_root.h:52: parse error before `;'
In file included from ../src/common/config/config.cpp:29:
../src/common/config/../../common/config/config_impl.h:45: ANSI C++ forbids
declaration `string' with no type
../src/common/config/../../common/config/config_impl.h:45: parse error
before `;'
../src/common/config/config.cpp:38: syntax error before `;'
../src/common/config/config.cpp: In method `ConfigImpl::ConfigImpl()':
../src/common/config/config.cpp:163: initialization to `int' from `const
char *' lacks a cast
../src/common/config/config.cpp:164: no matching function for call to
`ConfigFile::setConfigFile (const char *)'
../src/common/config/../../common/config/../../common/config/config_file.h:7
3: candidates are: void ConfigFile::setConfigFile(const int &)
../src/common/config/config.cpp:173: request for member `length' in `value',
which is of non-aggregate type `int'
../src/common/config/config.cpp: At top level:
../src/common/config/config.cpp:229: new declaration `static class string
ConfigImpl::getValue(ConfigFile &, char *)'
../src/common/config/../../common/config/config_impl.h:68: ambiguates old
declaration `static int ConfigImpl::getValue(ConfigFile &, char *)'
../src/common/config/config.cpp: In function `static class string
ConfigImpl::getValue(ConfigFile &, char *)':
../src/common/config/config.cpp:230: no matching function for call to
`ConfigFile::doesKeyExist (char *&)'
../src/common/config/../../common/config/../../common/config/config_file.h:8
1: candidates are: bool ConfigFile::doesKeyExist(const int &)
../src/common/config/config.cpp:230: no matching function for call to
`ConfigFile::getString (char *&)'
../src/common/config/../../common/config/../../common/config/config_file.h:8
2: candidates are: int ConfigFile::getString(const int &)
../src/common/config/config.cpp: In function `static int
ConfigImpl::asInteger(const int &)':
../src/common/config/config.cpp:235: request for member `data' in `value',
which is of non-aggregate type `int'
../src/common/config/config.cpp: In function `static bool
ConfigImpl::asBoolean(const int &)':
../src/common/config/config.cpp:240: request for member `data' in `value',
which is of non-aggregate type `int'
../src/common/config/config.cpp: In function `static const char *
ConfigImpl::asString(const int &)':
../src/common/config/config.cpp:245: request for member `c_str' in `value',
which is of non-aggregate type `int'
make[3]: *** [../temp/libfbcommon/common/config/config.o] Error 1
make[3]: Leaving directory `/home/carl/firebird-1.5.0.4290/src'
make[2]: *** [libfbcommon] Error 2
make[2]: Leaving directory `/home/carl/firebird-1.5.0.4290/src'
make[1]: *** [../gen/firebird/bin/gpre_static] Error 2
make[1]: Leaving directory `/home/carl/firebird-1.5.0.4290/src'
make: *** [firebird] Error 2
carl@anomuran:~/firebird-1.5.0.4290$ gcc --version
2.95.3
carl@anomuran:~/firebird-1.5.0.4290$