Compile error on version 2.1.1

130 views
Skip to first unread message

Ryan Tate

unread,
Aug 30, 2013, 12:19:36 PM8/30/13
to hamster...@googlegroups.com
I received an error when trying to compile with --no-remote that was resolved after installing protobuf. However now, after performing a "make distclean" my make command hangs on unit tests for cursor.o issuing the following error:

  CXX    cursor.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[2]: *** [cursor.o] Error 4
make[2]: Leaving directory `/root/ryan/hamsterdb-2.1.1/unittests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ryan/hamsterdb-2.1.1'
make: *** [all] Error 2

Christoph Rupp

unread,
Aug 30, 2013, 3:44:32 PM8/30/13
to hamster...@googlegroups.com
Hi Ryan,

the --no-remote build issue is fixed; you can download 2.1.2 from here: hamsterdb.com/public/dl/hamsterdb-2.1.2.tar.gz. (i released it today but did not yet have time to write a proper announcement).

I hope that this also fixes the internal compiler error. Can you send me a "uname -a" and "g++ -v" please?

Thanks
Christoph


2013/8/30 Ryan Tate <ryant...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "hamsterdb User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hamsterdb-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ryan Tate

unread,
Aug 30, 2013, 4:05:31 PM8/30/13
to hamster...@googlegroups.com
uname -a

Linux core 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux

g++ -v

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)

Ryan Tate

unread,
Aug 30, 2013, 4:08:03 PM8/30/13
to hamster...@googlegroups.com
I tried compiling version 2.1.2 and received this error:

checking for the Boost system library... no
configure: error: cannot find the flags to link with Boost system

I have installed libboost-dev for Debian.

Christoph Rupp

unread,
Aug 30, 2013, 4:13:41 PM8/30/13
to hamster...@googlegroups.com
does it include the boost-system library? it's sometimes installed as a separate package.

Ryan Tate

unread,
Aug 30, 2013, 4:22:33 PM8/30/13
to hamster...@googlegroups.com
I installed the separate library libboost-system-dev. Now error message is this:


  CXX    env_local.lo
In file included from device_disk.h:22:0,
                 from device_factory.h:17,
                 from env_local.cc:18:
aes.h:21:25: fatal error: openssl/evp.h: No such file or directory
compilation terminated.
make[3]: *** [env_local.lo] Error 1
make[3]: Leaving directory `/root/ryan/hamsterdb-2.1.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/ryan/hamsterdb-2.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ryan/hamsterdb-2.1.2'

Christoph Rupp

unread,
Aug 31, 2013, 3:43:19 AM8/31/13
to hamster...@googlegroups.com
Hi Ryan,

the openssl/libcrypto dependency is new in 2.1.2, and it seems the configure script does not handle the missing include file properly. I'll track this as a bug (https://github.com/cruppstahl/hamsterdb/issues/27).

As a workaround, either disable aes encryption (./configure --disable-encryption) or install the libssl-dev package.

Best regards
Christoph

Ryan Tate

unread,
Nov 26, 2013, 12:47:15 PM11/26/13
to hamster...@googlegroups.com
Thanks for your help. I am now getting the error below. I have installed libcurl4-openssl-dev.

Making all in samples
make[2]: Entering directory `/root/hamsterdb-2.1.1/samples'
CCLD db1
../src/.libs/libhamsterdb.so: undefined reference to `boost::system::system_category()'
../src/.libs/libhamsterdb.so: undefined reference to `boost::system::generic_category()'
collect2: error: ld returned 1 exit status
make[2]: *** [db1] Error 1
make[2]: Leaving directory `/root/hamsterdb-2.1.1/samples'

make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/hamsterdb-2.1.1'

make: *** [all] Error 2

Any ideas as to what could be the culprit?

Christoph Rupp

unread,
Nov 26, 2013, 2:04:38 PM11/26/13
to hamster...@googlegroups.com
Hi Ryan,

the missing symbols are in libboost_system. What is weird is that it compiled on some linux distributions, but not on others.

You should download hamsterdb-2.1.3, it always links against libboost_system.

bye
Christoph


2013/11/26 Ryan Tate <ryant...@gmail.com>

Ryan Tate

unread,
Nov 26, 2013, 5:54:17 PM11/26/13
to hamster...@googlegroups.com
Received a very similar error on 2.1.3-unstable


Making all in samples
make[2]: Entering directory `/root/hdb-2.1.3-unstable/samples'
CC db1.o

CCLD db1
../src/.libs/libhamsterdb.so: undefined reference to `boost::system::system_category()'
../src/.libs/libhamsterdb.so: undefined reference to `boost::system::generic_category()'
collect2: error: ld returned 1 exit status
make[2]: *** [db1] Error 1
make[2]: Leaving directory `/root/hdb-2.1.3-unstable/samples'

make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/hdb-2.1.3-unstable'

make: *** [all] Error 2

I have installed libboost-all-dev. Running Ubuntu 13.

uname - a
Linux Ubuntu13 3.11.0-8-generic #15-Ubuntu SMP Fri Sep 20 04:11:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Christoph Rupp

unread,
Nov 27, 2013, 2:14:29 AM11/27/13
to hamster...@googlegroups.com
Weird - i have the same system (ubuntu 13.10, 64bit)

Are the unittests compiling and linking? They link statically; the samples link with libtool.
Also, can you please send me your config.log file.

Thanks
Christoph
Reply all
Reply to author
Forward
0 new messages