[srs@c2ap-dev-01 goby2-2.0.6]$ uname -a
Linux c2ap-dev-01 2.6.32-431.20.3.el6.x86_64 #1 SMP Fri Jun 6 18:30:54 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[srs@c2ap-dev-01 goby2-2.0.6]$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
[srs@c2ap-dev-01 goby2-2.0.6]$ bash -i build.sh
Configuring Goby
cmake ..
Compiling from release tarball.
libprotobuf < 2.5.0
>> setting enable_wt to OFF ... if you need this functionality: 1) install libwt-dev, libwtdbo-dev, libwtdbosqlite-dev, and libwthttp-dev; 2) run cmake -Denable_wt=ON
-- GMP libs: GMP_LIBRARIES-NOTFOUND GMPXX_LIBRARIES-NOTFOUND
>> setting enable_gmp to OFF ... if you need this functionality: 1) install libgmp-dev; 2) run cmake -Denable_gmp=ON
-- Boost version: 1.41.0
-- Found the following Boost libraries:
-- system
-- date_time
-- thread
-- program_options
-- filesystem
-- regex
-- CMake is running /opt/moos10/core-moos/build/UseMOOS.cmake
-- MOOS_FOUND=TRUE time to dance
-- adding -DASYNCHRONOUS_CLIENT as required my MOOS
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/goby2-2.0.6/build
Building Goby
make
[ 14%] Built target goby_common
[ 19%] Built target goby_util
[ 57%] Built target goby_acomms
[ 58%] Built target goby_ccl_compat
[ 59%] Built target goby_dccl_arithmetic
[ 87%] Built target goby_moos
[ 91%] Built target goby_frontseat_bluefin
[ 92%] Built target abc_modem_simulator
[ 93%] Built target analyze_dccl
[ 94%] Built target serial2tcp_server
[ 95%] Building CXX object src/apps/moos/pAcommsHandler/CMakeFiles/pAcommsHandler.dir/pAcommsHandler.cpp.o
In file included from /opt/goby2-2.0.6/src/apps/moos/pAcommsHandler/pAcommsHandler.cpp:41:
/opt/goby2-2.0.6/include/goby/pb/pb_modem_driver.h:34:49: error: goby/pb/protobuf/pb_modem_driver.pb.h: No such file or directory
In file included from /opt/goby2-2.0.6/src/apps/moos/pAcommsHandler/pAcommsHandler.cpp:42:
/opt/goby2-2.0.6/include/goby/pb/iridium_driver.h:33:48: error: goby/pb/protobuf/iridium_driver.pb.h: No such file or directory
/opt/goby2-2.0.6/include/goby/pb/iridium_driver.h:34:46: error: goby/pb/protobuf/rudics_shore.pb.h: No such file or directory
In file included from /opt/goby2-2.0.6/include/goby/pb/iridium_driver.h:36,
from /opt/goby2-2.0.6/src/apps/moos/pAcommsHandler/pAcommsHandler.cpp:42:
/opt/goby2-2.0.6/include/goby/pb/iridium_driver_fsm.h: In constructor ‘goby::acomms::fsm::Configure::Configure(boost::statechart::state<goby::acomms::fsm::Configure, goby::acomms::fsm::Command, boost::mpl::list<mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, (boost::statechart::history_mode)0u>::my_context)’:
/opt/goby2-2.0.6/include/goby/pb/iridium_driver_fsm.h:207: error: ‘IridiumDriverConfig’ has not been declared
/opt/goby2-2.0.6/include/goby/pb/iridium_driver_fsm.h:212: error: ‘IridiumDriverConfig’ has not been declared
In file included from /opt/goby2-2.0.6/src/apps/moos/pAcommsHandler/pAcommsHandler.cpp:42:
/opt/goby2-2.0.6/include/goby/pb/iridium_driver.h: At global scope:
/opt/goby2-2.0.6/include/goby/pb/iridium_driver.h:58: error: expected unqualified-id before ‘&’ token
/opt/goby2-2.0.6/include/goby/pb/iridium_driver.h:58: error: expected ‘)’ before ‘&’ token
/opt/goby2-2.0.6/include/goby/pb/iridium_driver.h:58: error: expected ‘;’ before ‘&’ token
/opt/goby2-2.0.6/include/goby/pb/iridium_driver.h:84: error: ‘MTDataRequest’ in namespace ‘goby::acomms::protobuf’ does not name a type
make[2]: *** [src/apps/moos/pAcommsHandler/CMakeFiles/pAcommsHandler.dir/pAcommsHandler.cpp.o] Error 1
make[1]: *** [src/apps/moos/pAcommsHandler/CMakeFiles/pAcommsHandler.dir/all] Error 2
make: *** [all] Error 2
It's not obvious what dependency is missing from the top level error. Any ideas?
It looks like the protobuf compiler is doing things differently on RHEL than Ubuntu. I created symlinks from *.proto to *.pb.h in include/ goby/pb/ protobuf and was able to get a little bit further.
[srs@c2ap-dev-01 protobuf]$ pwd 2.0.6/include/ goby/pb/ protobuf
/opt/goby2-
[srs@c2ap-dev-01 protobuf]$ ls driver. pb.h notification. pb.h pb_modem_ driver. proto request. pb.h interprocess_ notification. proto rudics_shore.pb.h request. proto iridium_driver.pb.h rudics_shore.proto driver. proto
config.pb.h header.proto pb_modem_
config.proto interprocess_
database_
database_
header.pb.h iridium_
[srs@c2ap-dev-01 build]$ make arithmetic bluefin moos/pAcommsHan dler/CMakeFiles /pAcommsHandler .dir/pAcommsHan dler.cpp. o 2.0.6/include/ goby/pb/ pb_modem_ driver. h:34,
from /opt/goby2- 2.0.6/src/ apps/moos/ pAcommsHandler/ pAcommsHandler. cpp:41: 2.0.6/include/ goby/pb/ protobuf/ pb_modem_ driver. pb.h:1: error: expected constructor, destructor, or type conversion before string constant 2.0.6/include/ goby/pb/ protobuf/ pb_modem_ driver. pb.h:2: error: expected constructor, destructor, or type conversion before string constant 2.0.6/include/ goby/pb/ protobuf/ pb_modem_ driver. pb.h:4: error: expected constructor, destructor, or type conversion before string constant 2.0.6/include/ goby/pb/ protobuf/ pb_modem_ driver. pb.h:5: error: expected constructor, destructor, or type conversion before string constant 2.0.6/include/ goby/pb/ protobuf/ pb_modem_ driver. pb.h:7: error: ‘message’ does not name a type 2.0.6/include/ goby/pb/ protobuf/ pb_modem_ driver. pb.h:20: error: ‘message’ does not name a type 2.0.6/include/ goby/pb/ iridium_ driver. h:33,
from /opt/goby2- 2.0.6/src/ apps/moos/ pAcommsHandler/ pAcommsHandler. cpp:42: 2.0.6/include/ goby/pb/ protobuf/ iridium_ driver. pb.h:1: error: expected constructor, destructor, or type conversion before string constant 2.0.6/include/ goby/pb/ protobuf/ iridium_ driver. pb.h:2: error: expected constructor, destructor, or type conversion before string constant 2.0.6/include/ goby/pb/ protobuf/ iridium_ driver. pb.h:3: error: expected constructor, destructor, or type conversion before string constant 2.0.6/include/ goby/pb/ protobuf/ iridium_ driver. pb.h:5: error: ‘message’ does not name a type 2.0.6/include/ goby/pb/ iridium_ driver. h:34,
from /opt/goby2- 2.0.6/src/ apps/moos/ pAcommsHandler/ pAcommsHandler. cpp:42: 2.0.6/include/ goby/pb/ protobuf/ rudics_ shore.pb. h:1: error: expected constructor, destructor, or type conversion before string constant 2.0.6/include/ goby/pb/ protobuf/ rudic.. .
[ 14%] Built target goby_common
[ 19%] Built target goby_util
[ 57%] Built target goby_acomms
[ 58%] Built target goby_ccl_compat
[ 59%] Built target goby_dccl_
[ 87%] Built target goby_moos
[ 91%] Built target goby_frontseat_
[ 92%] Built target abc_modem_simulator
[ 93%] Built target analyze_dccl
[ 94%] Built target serial2tcp_server
[ 95%] Building CXX object src/apps/
In file included from /opt/goby2-
/opt/goby2-
/opt/goby2-
/opt/goby2-
/opt/goby2-
/opt/goby2-
/opt/goby2-
In file included from /opt/goby2-
/opt/goby2-
/opt/goby2-
/opt/goby2-
/opt/goby2-
In file included from /opt/goby2-
/opt/goby2-
/opt/goby2-