I'm trying to install the rcssserver3d on FC5 platform and have had no trouble untill it came to installing the spades library.
I'm installing spades 1.1 the configure seemes to go fine apart from 1 warning "configure: WARNING: I have to compile Test.class from scratch" i dont think this is a problem tho. The issues is when i run make i get these errors
override.cpp:313:3: error: #error I do not know how to handle a clone with anything besides 4 arguments
make[2]: *** [override.lo] Error 1
make[2]: Leaving directory /home/Amphlett/Source/spades-1.10/agent_intercept'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory/home/Amphlett/Source/spades-1.10'
make: *** [all] Error 2
i'm a bit of a linux noob so ive no idea how to fix thisany help would be much apreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
now when i run make for rcssserver3d i get this error
/usr/bin/ld: /home/Amphlett/Source/rcssserver3d-0.5.2/utility/sfsexp/libsexp.a(parser.o): relocation R_X86_64_32 against a local symbol' can not be used when making a shared object; recompile with -fPIC
/home/Amphlett/Source/rcssserver3d-0.5.2/utility/sfsexp/libsexp.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [sexpparser.la] Error 1
make[3]: Leaving directory/home/Amphlett/Source/rcssserver3d-0.5.2/plugin/sexpparser'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /home/Amphlett/Source/rcssserver3d-0.5.2/plugin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory/home/Amphlett/Source/rcssserver3d-0.5.2'
make: *** [all] Error 2
i took a look in the plugins dir and the file "sexpparser.la" does not exist. anyone have any ideas? is this anything to do with the changes i made to the spades source?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
so i commented out 3 lines from testforker.cpp In the function "pthread_func" from line 122. the library has now installed.
It seems like a bit of an ugly hack tho to go slashing lines of code from the source surely the code will be needed at some point and hence the program will not run correctly. is thier not a better solution?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to install the rcssserver3d on FC5 platform and have had no trouble untill it came to installing the spades library.
I'm installing spades 1.1 the configure seemes to go fine apart from 1 warning "configure: WARNING: I have to compile Test.class from scratch" i dont think this is a problem tho. The issues is when i run make i get these errors
override.cpp:313:3: error: #error I do not know how to handle a clone with anything besides 4 arguments
make[2]: *** [override.lo] Error 1
make[2]: Leaving directory
/home/Amphlett/Source/spades-1.10/agent_intercept' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/Amphlett/Source/spades-1.10'make: *** [all] Error 2
i'm a bit of a linux noob so ive no idea how to fix thisany help would be much apreciated.
now when i run make for rcssserver3d i get this error
/usr/bin/ld: /home/Amphlett/Source/rcssserver3d-0.5.2/utility/sfsexp/libsexp.a(parser.o): relocation R_X86_64_32 against
a local symbol' can not be used when making a shared object; recompile with -fPIC /home/Amphlett/Source/rcssserver3d-0.5.2/utility/sfsexp/libsexp.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[3]: *** [sexpparser.la] Error 1 make[3]: Leaving directory/home/Amphlett/Source/rcssserver3d-0.5.2/plugin/sexpparser'make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
/home/Amphlett/Source/rcssserver3d-0.5.2/plugin' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/Amphlett/Source/rcssserver3d-0.5.2'make: *** [all] Error 2
i took a look in the plugins dir and the file "sexpparser.la" does not exist. anyone have any ideas? is this anything to do with the changes i made to the spades source?
I had this problem.
You should comment some lines in file spades-1.10/agent_intercept/override.cpp. Comment using /comands ... comands/
Go to line 313 and to do this:
ifdef SPADES_HAVE_CLONE
/*#if SPADES_NUM_CLONE_ARGS != 4
error I do not know how to handle a clone with anything besides 4 arguments
else*/
pid_t
clone(int (fn) (void arg), void child_stack, int flags, void arg)
{
ifdef CLONE_SYSCALL_SEVEN_ARGS
else
endif
}
/#endif/
endif // SPADES_HAVE_CLONE
This functioned with me .
Bye
I commented out the lines you sujested but now it just throws up a new error
make[2]: Entering directory
/home/Amphlett/Source/spades-1.10/agent_intercept' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DSPADES_PKGLIB=\"/usr/local/lib/spades\" -I../shared -I../libltdl -DNO_ACTION_LOG -Wnon-virtual-dtor -Wall -g -O2 -MT testforker.o -MD -MP -MF ".deps/testforker.Tpo" -c -o testforker.o testforker.cpp; \ then mv -f ".deps/testforker.Tpo" ".deps/testforker.Po"; else rm -f ".deps/testforker.Tpo"; exit 1; fi testforker.cpp: In function ‘void* pthread_func(void*)’: testforker.cpp:122: error: cast from ‘void*’ to ‘int’ loses precision make[2]: *** [testforker.o] Error 1 make[2]: Leaving directory/home/Amphlett/Source/spades-1.10/agent_intercept'make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Amphlett/Source/spades-1.10'
make: *** [all] Error 2
so i commented out 3 lines from testforker.cpp In the function "pthread_func" from line 122. the library has now installed.
It seems like a bit of an ugly hack tho to go slashing lines of code from the source surely the code will be needed at some point and hence the program will not run correctly. is thier not a better solution?