I'm trying to build libssh 0.9.3 on RHEL7
The INSTALL document says that it requires cmake >= 2.6.0 but trying to
build with 2.8.1 it says the requirement is 3.3
Using an updated cmake, the build fails with:
[ 44%] Building C object src/CMakeFiles/ssh.dir/libcrypto.c.o
In file included from /tmp/libssh-0.9.3/src/libcrypto.c:31:0:
/tmp/libssh-0.9.3/include/libssh/priv.h:410:22: error: expected ‘)’
before ‘__attribute__’
# define __unused__ __attribute__((unused))
^
In file included from /tmp/libssh-0.9.3/src/libcrypto.c:59:0:
/usr/local/include/valgrind/valgrind.h:6238:56: error: expected ‘,’ or
‘;’ before ‘)’ token
__attribute__((format(__printf__, 1, 2), __unused__));
^
In file included from /tmp/libssh-0.9.3/src/libcrypto.c:31:0:
/tmp/libssh-0.9.3/include/libssh/priv.h:410:22: error: expected ‘)’
before ‘__attribute__’
# define __unused__ __attribute__((unused))
^
In file included from /tmp/libssh-0.9.3/src/libcrypto.c:59:0:
/usr/local/include/valgrind/valgrind.h:6277:56: error: expected ‘,’ or
‘;’ before ‘)’ token
__attribute__((format(__printf__, 1, 2), __unused__));
I'm guessing I need a newer compiler (gcc 4.8) or a newer version of one
of the libraries?
Neil Youngman
Neil Youngman
Developer
Wirefast Limited
Wirefast provides secure corporate messaging services.
See our messaging solutions at http://www.wirefast.com/
Please consider the environment.
Does this email or attachment need to be printed?
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this email. Please
notify the sender immediately by email if you have received this
email by mistake and delete this email from your system.
Any views or opinions are solely those of the author
and do not necessarily represent those of Wirefast Limited
Email transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of email transmission.
Wirefast Limited is registered in England & Wales
Company number: 03865860
Registered Office: 7/10 Chandos Street, Cavendish Square, London, W1G 9DQ
Wirefast definitions of classification can be found here:
www.wirefast.com/classifications