make does not run properly
Status: Alpha
Brought to you by:
messy
following errors occur on Mandrake 9.2
commandModule.C:24: error: default argument given for
parameter 4 of `int Command_Object::Add_Command(char*,
int, int, int, char*)'
commandModule.h:120: error: after previous
specification in `int
Command_Object::Add_Command(char*, int, int, int, char*)'
commandModule.C:24: error: default argument given for
parameter 5 of `int Command_Object::Add_Command(char*,
int, int, int, char*)'
commandModule.h:120: error: after previous
specification in `int
Command_Object::Add_Command(char*, int, int, int, char*)'
make[2]: *** [commandModule.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
Logged In: YES
user_id=956224
I am getting the exact same error. Compiling under Suse 9.0.
Logged In: NO
Has someone achieved to go through this problem ?
Pierre
Logged In: NO
I am: kevpatts@hotmail.com
I get a similar error in Fedora Core 2 (x86_64 version):
[kev@localhost lmme-0.6.3]# sh configure
loading cache ./config.cache
checking for a BSD compatible install... (cached)
/usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a
cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for pthread_create in -lpthread... (cached) yes
checking for initscr in -lncurses... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for termio.h... (cached) yes
checking for ncurses.h... (cached) yes
checking for pthread.h... (cached) yes
checking for working const... (cached) yes
checking whether time.h and sys/time.h may both be
included... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking for vprintf... (cached) yes
checking for mkdir... (cached) yes
checking for select... (cached) yes
checking for socket... (cached) yes
checking for strerror... (cached) yes
checking for strstr... (cached) yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
[kev@localhost lmme-0.6.3]# make
c++ -DHAVE_CONFIG_H -I. -I. -I. -DVERSION=\"0.6.3\"
-DVERSION_BRANCH=\"Alpha\"
-g -O2 -c commandModule.C
commandModule.C:24: error: default argument given for
parameter 4 of `int
Command_Object::Add_Command(char*, int, int, int, char*)'
commandModule.h:117: error: after previous specification in `int
Command_Object::Add_Command(char*, int, int, int, char*)'
commandModule.C:24: error: default argument given for
parameter 5 of `int
Command_Object::Add_Command(char*, int, int, int, char*)'
commandModule.h:117: error: after previous specification in `int
Command_Object::Add_Command(char*, int, int, int, char*)'
make: *** [commandModule.o] Error 1
any news on a fix for this?
Kev
Logged In: YES
user_id=1100517
you need to compile with older gcc c++ and libraries...
so clean up the install -
make clean
rm config.cache
Using Fedora Core 2 -
compat-gcc-7.3-2.96.118.i386.rpm
compat-gcc-c++-7.3-2.96.118.i386.rpm
compat-libstdc++-7.3-2.96.118.i386.rpm
compat-libstdc++-devel-7.3-2.96.118.i386.rpm
(and optionally ncurses and ncurses-devel)
export CC=/usr/bin/gcc296
export CXX=/usr/bin/g++296
./configure
make