[ 
https://issues.apache.org/jira/browse/CASSANDRA-13615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16206658#comment-16206658
 ] 

Rei Odaira commented on CASSANDRA-13615:
----------------------------------------

Hello,

I found the libsigar-ppc64le-linux.so in Cassandra does not work.
{quote}2017-10-02 17:24:15,560 SigarLibrary.java:44 - Initializing SIGAR library
java: symbol lookup error: 
/home/rei/CassandraYCSB.work/capi-rowcache/cassandra/lib/sigar-bin/libsigar-ppc64le-linux.so:
 undefined symbol: sigar_skip_token
{quote}

The build steps [~amitkumar_ghatwal] proposed used to generate a correct 
binary, but it does not any more with gcc version 5 or later. This is because 
SIGAR assumes older gcc's {{inline}} semantics, but gcc 5 changed the default 
semantics. I created my own sigar branch with a necessary build option change, 
so that you can build a correct libsigar-ppc64le-linux.so binary.

Here are the new build steps:
$ git clone https://github.com/odaira/sigar.git
$ cd sigar/bindings/java
$ git checkout sigar-1.6.4-stdgnu89
$ ant

Please check these steps have built a correct binary. If the following command 
prints out a {{sigar>}} command prompt, then it is a correct binary:
$ java -jar sigar-bin/lib/sigar.jar
Loaded rc file: ./.sigar_shellrc
sigar> quit
Goodbye.

Please copy the generated binary to Cassandra's lib/sigar-bin:
$ cp sigar-bin/lib/libsigar-ppc64le-linux.so $CASSANDRA_HOME/lib/sigar-bin

Thanks,

> Include 'ppc64le' library for sigar-1.6.4.jar
> ---------------------------------------------
>
>                 Key: CASSANDRA-13615
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13615
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Libraries
>         Environment: # arch
> ppc64le
>            Reporter: Amitkumar Ghatwal
>            Assignee: Michael Shuler
>              Labels: easyfix
>             Fix For: 4.0
>
>         Attachments: libsigar-ppc64le-linux.so
>
>
> Hi All,
> sigar-1.6.4.jar does not include a ppc64le library, so we had to install 
> libsigar-ppc64le-linux.so.As the community has been inactive for long 
> (https://github.com/hyperic/sigar), requesting the community to include the 
> ppc64le library directly here.
> Attaching the ppc64le library ( *.so) file to be included under 
> "/lib/sigar-bin". let me know of issues/dependency if any.
> FYI - [~ReiOdaira],[~jjirsa], [~mshuler]
> Regards,
> Amit



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to