[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compilation problem under SuSE Linux
Hi,
I'm trying to compile PDP++ V 2.1 for a SuSE Linux machine in my home
directory (as opposed to /usr/local). The compile goes just fine until
"maketa" processes "pdp++/src/netstru.h" when it gives the following
error:
Syntax Error, line 1362: static pthread_attr_t thread_attr
^
After that things appear to go smoothly up until it is making libtamisc.so:
When it tries to compile the file "ta_misc_TA.cc" I get the following
errors:
Compiling: ta_misc_TA.cc on kvasir in directory /users1/james/pdp++/src/ta_misc/LINUX in directory /users1/james/pdp++/src/ta_misc/LINUX at Tue Jan 15 18:46:04 MET 2002
g++ -fPIC -fno-implicit-templates -fno-exceptions -fno-rtti -o ta_misc_TA.o -I/usr/include/g++ -I./src_include -I./src_include/ta_misc -I/users1/james/pdp++/include/LINUX -I/usr/local/include -I/users1/james/interviews/include -DHAVE_POSIX_SIGNALS=1 -DRETSIGTYPE=void -DLINUX -c ta_misc_TA.cc
In file included from /users1/james/pdp++/include/LINUX/iv_graphic/graphic_objs.h:44,
from /users1/james/pdp++/include/LINUX/iv_graphic/graphic.h:55,
from src_include/ta_misc/datatable_iv.h:46,
from ta_misc_TA.cc:21:
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h: In function `int min(int, int)':
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h:34: redefinition of `int min(int, int)'
/usr/include/g++/minmax.h:35: `int min(int, int)' previously defined here
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h: In function `int max(int, int)':
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h:34: redefinition of `int max(int, int)'
/usr/include/g++/minmax.h:54: `int max(int, int)' previously defined here
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h: In function `unsigned int min(unsigned int, unsigned int)':
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h:35: redefinition of `unsigned int min(unsigned int, unsigned int)'
/usr/include/g++/minmax.h:36: `unsigned int min(unsigned int, unsigned int)' previously defined here
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h: In function `unsigned int max(unsigned int, unsigned int)':
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h:35: redefinition of `unsigned int max(unsigned int, unsigned int)'
/usr/include/g++/minmax.h:55: `unsigned int max(unsigned int, unsigned int)' previously defined here
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h: In function `float min(float, float)':
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h:36: redefinition of `float min(float, float)'
/usr/include/g++/minmax.h:41: `float min(float, float)' previously defined here
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h: In function `float max(float, float)':
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h:36: redefinition of `float max(float, float)'
/usr/include/g++/minmax.h:60: `float max(float, float)' previously defined here
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h: In function `double min(double, double)':
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h:37: redefinition of `double min(double, double)'
/usr/include/g++/minmax.h:43: `double min(double, double)' previously defined here
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h: In function `double max(double, double)':
/users1/james/interviews/include/IV-2_6/InterViews/minmax.h:37: redefinition of `double max(double, double)'
/usr/include/g++/minmax.h:62: `double max(double, double)' previously defined here
make[3]: *** [ta_misc_TA.o] Error 1
make[3]: Leaving directory `/users1/james/pdp++/src/ta_misc/LINUX'
make[2]: *** [optLib_impl] Error 2
make[2]: Leaving directory `/users1/james/pdp++/src/ta_misc/LINUX'
make[1]: *** [optLib] Error 2
make[1]: Leaving directory `/users1/james/pdp++/src/ta_misc'
make: *** [Libs] Error 1
There appears to be a clash between g++ and the interviews library! It
is not immediately clear to me what I should do about this, even after
looking at the code...
Typing "g++ -v" to get the version gives the following info:
james@kvasir:~/pdp++ > g++ -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)
Cheers,
James