Hi Denis,

i remember that sigar was a bit painfull to install...

if you download the sigar libraries, then the actual library for 64bit
linux is named libsigar-amd64-linux.so. But your Makefile links against
-lsigar, therefore maybe it doesn't find the library. You could test this
by renaming your /usr/local/lib/libsigar-amd64-linux.so to
/usr/local/lib/libsigar.so.

You can also look into the CMakeCache.txt in your build directory; it
should list the full sigar library path in the dependencies.

If the linker is not able to find the file then one of the cmake scripts
has an error.

Thanks
Christoph

2012/10/21 Denis Arnaud <[email protected]>

> Hi,
>
> when trying to compile Hypertable on Fedora 17+ (Fedora 17 and Fedora
> Rawhide), directly from the Git clone:
>  $ mkdir -p ~/dev/hypertable
>  $ cd ~/dev/hypertable
>  $ git clone git://github.com/hypertable/hypertable.git hypertablegit
>  $ rm -rf build && mkdir build
>  $ cd build
>  $ cmake ..
>
> The following Sigar-related linking error appears:
>  $ make VERBOSE=1
> Linking CXX executable bloom_filter_test
> cd /home/build/dev/hypertable/hypertablegit/build/src/cc/Common &&
> /usr/bin/cmake -E cmake_link_script
> CMakeFiles/bloom_filter_test.dir/link.txt --verbose=1
> /usr/lib/ccache/c++   -g
>  CMakeFiles/bloom_filter_test.dir/tests/bloom_filter_test.cc.o  -o
> bloom_filter_test -rdynamic libHyperCommon.a -lboost_iostreams
> -lboost_program_options -lboost_filesystem -lboost_thread-mt -lboost_system
> -lboost_chrono -lboost_python -lpython2.7 -llog4cpp -lz -lsnappy -lsigar
> -ldl -lncurses -lpthread -lre2
> libHyperCommon.a(SystemInfo.cc.o): In function
> `Hypertable::system_info_lib_version()':
> /home/build/dev/hypertable/hypertablegit/src/cc/Common/SystemInfo.cc:768:
> undefined reference to `sigar_version_get'
> libHyperCommon.a(SystemInfo.cc.o): In function
> `Hypertable::system_info_lib_version(std::ostream&)':
> /home/build/dev/hypertable/hypertablegit/src/cc/Common/SystemInfo.cc:773:
> undefined reference to `sigar_version_get'
> collect2: error: ld returned 1 exit status
> make[2]: *** [src/cc/Common/bloom_filter_test] Error 1
> make[2]: Leaving directory `/home/build/dev/hypertable/hypertablegit/build'
> make[1]: *** [src/cc/Common/CMakeFiles/bloom_filter_test.dir/all] Error 2
> make[1]: Leaving directory `/home/build/dev/hypertable/hypertablegit/build'
> make: *** [all] Error 2
>
>
> -----------------------------------------
> Note, for those interested in reproducing it, I have installed the
> following dependencies (as root):
>  yum -y install ant ant-contrib ant-scripts ant-commons-net
> ant-commons-logging \
>   boost-devel ceph-devel ceph-libs ceph-libcephfs ceph-fuse cronolog \
>   gperftools-devel gperftools-libs jemalloc-devel hoard \
>   java-1.7.0-openjdk-devel libdb-devel libdb-cxx-devel libdb-utils \
>   libevent-devel log4cpp-devel perl-Class-Accessor \
>   rrdtool-devel rrdtool-ruby ruby-RRDtool sigar-devel snappy-devel
>
>  debuginfo-install -y boost ceph cronolog db
> gperftools hoard java-1.7.0-openjdk \
>   jemalloc libevent log4cpp rrdtool ruby-RRDtool sigar snappy
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Hypertable Development" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hypertable-dev/-/YnSCrIRaWq8J.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/hypertable-dev?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Hypertable Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hypertable-dev?hl=en.

Reply via email to