I'm having difficulty compiling rcssserver 15.1.0 or 15.0.0 with the same error, something inside the Boost configuration is failing. Here is the tail end of configure output:
checking dynamic linker characteristics... darwin11.4.2 dyld
checking how to hardcode library paths into programs... immediate
checking for boostlib >= 1.32.0... yes
checking whether the Boost::System library is available... yes
checking whether the Boost::Filesystem library is available... yes
configure: error: Could not link against !
config.log says:
configure:16574: checking for boostlib >= 1.32.0
configure:16634: g++ -c -g -O2 -I/opt/local/include conftest.cpp >&5
configure:16634: $? = 0
configure:16636: result: yes
configure:16809: checking whether the Boost::System library is available
configure:16833: g++ -c -g -O2 -I/opt/local/include conftest.cpp >&5
configure:16833: $? = 0
configure:16848: result: yes
configure:17050: checking whether the Boost::Filesystem library is available
configure:17074: g++ -c -g -O2 -I/opt/local/include conftest.cpp >&5
configure:17074: $? = 0
configure:17088: result: yes
configure:17242: error: Could not link against !
That last error message is supremely unhelpful :). I've been trying to wade through configure to even begin to tell which library is not linking with no success.
som-gbeaver:rcssserver-15.0.0 gbeaver2$ uname -a
Darwin som-gbeaver.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
som-gbeaver:rcssserver-15.0.0 gbeaver2$ g++ -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
ok, next update: when I use the boost from mac ports, it fails every time. Building boost from source allows this line to work, but only with the latest 15.1.0:
./configure
progress!
However, the same compile error occurs, so there must be something wrong with my flex install?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try disabling parallel builds. I had an issue compiling rcssserver specifically with parallel builds and flex/bison.
I haven't really tried tracing it down, but it appeared that it was trying to build a file which depended on the parser, which hadn't finished compiling yet. It's almost as if the dependencies are not setup correctly in the makefiles.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm having difficulty compiling rcssserver 15.1.0 or 15.0.0 with the same error, something inside the Boost configuration is failing. Here is the tail end of configure output:
checking dynamic linker characteristics... darwin11.4.2 dyld
checking how to hardcode library paths into programs... immediate
checking for boostlib >= 1.32.0... yes
checking whether the Boost::System library is available... yes
checking whether the Boost::Filesystem library is available... yes
configure: error: Could not link against !
config.log says:
configure:16574: checking for boostlib >= 1.32.0
configure:16634: g++ -c -g -O2 -I/opt/local/include conftest.cpp >&5
configure:16634: $? = 0
configure:16636: result: yes
configure:16809: checking whether the Boost::System library is available
configure:16833: g++ -c -g -O2 -I/opt/local/include conftest.cpp >&5
configure:16833: $? = 0
configure:16848: result: yes
configure:17050: checking whether the Boost::Filesystem library is available
configure:17074: g++ -c -g -O2 -I/opt/local/include conftest.cpp >&5
configure:17074: $? = 0
configure:17088: result: yes
configure:17242: error: Could not link against !
That last error message is supremely unhelpful :). I've been trying to wade through configure to even begin to tell which library is not linking with no success.
Here is info on boost:
som-gbeaver:rcssserver-15.0.0 gbeaver2$ port info boost
boost @1.52.0, Revision 1 (devel)
Variants: debug, [+]no_single, [+]no_static, openmpi, python25, python26, [+]python27, python31,
python32, python33, regex_match_extra, universal
som-gbeaver:rcssserver-15.0.0 gbeaver2$ uname -a
Darwin som-gbeaver.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
som-gbeaver:rcssserver-15.0.0 gbeaver2$ g++ -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
I followed installation instructions from:
https://sourceforge.net/apps/mediawiki/sserver/index.php?title=Installing_server_server_system_on_Snow_Leopard
Thank you,
Greg
I got it to configure with this line:
./configure --with-boost-system=boost_system --with-boost-filesystem=boost_filesystem
Not to be too cheeky, but shouldn't it do that anyway???
Of course, my triumph was short-lived:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -W -Wall -g -O2 -MT coach_lang_tok.lo -MD -MP -MF .deps/coach_lang_tok.Tpo -c coach_lang_tok.cpp -fno-common -DPIC -o .libs/coach_lang_tok.o
coach_lang_tok.cpp:7176: error: prototype for ‘size_t RCSSCLangFLexLexer::LexerInput(char, size_t)’ does not match any in class ‘RCSSCLangFLexLexer’
/usr/include/FlexLexer.h:133: error: candidate is: virtual int RCSSCLangFLexLexer::LexerInput(char, int)
coach_lang_tok.cpp:7203: error: prototype for ‘void RCSSCLangFLexLexer::LexerOutput(const char, size_t)’ does not match any in class ‘RCSSCLangFLexLexer’
/usr/include/FlexLexer.h:134: error: candidate is: virtual void RCSSCLangFLexLexer::LexerOutput(const char, int)
make[3]: *** [coach_lang_tok.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
ok, next update: when I use the boost from mac ports, it fails every time. Building boost from source allows this line to work, but only with the latest 15.1.0:
./configure
progress!
However, the same compile error occurs, so there must be something wrong with my flex install?
Try disabling parallel builds. I had an issue compiling rcssserver specifically with parallel builds and flex/bison.
I haven't really tried tracing it down, but it appeared that it was trying to build a file which depended on the parser, which hadn't finished compiling yet. It's almost as if the dependencies are not setup correctly in the makefiles.