[Libssh] libssh 3.0 and FreeBSD

Alexander Logvinov avl at logvinov.com
Tue Jun 9 13:45:03 CEST 2009


Hello Andreas!

On 09.06.2009 21:27 Andreas Schneider wrote:
>> SYNOPSIS
>>      #include <arpa/inet.h>
> 
> does the attached patch fix it?
 Yes, thanks! Don't forget about libssh/agent.c and libssh/client.c. :)

Here is some another warnings:

[ 12%] Building C object libssh/CMakeFiles/ssh_shared.dir/agent.c.o
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/agent.c: In
function 'agent_sign_data':
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/agent.c:424:
warning: implicit declaration of function 'htonl'
[ 15%] Building C object libssh/CMakeFiles/ssh_shared.dir/client.c.o
[ 18%] Building C object libssh/CMakeFiles/ssh_shared.dir/connect.c.o
[ 21%] Building C object libssh/CMakeFiles/ssh_shared.dir/channels.c.o
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/client.c: In
function 'ssh_disconnect':
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/client.c:628:
warning: implicit declaration of function 'htonl'
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/auth.c: In
function 'ssh_userauth_kbdint':
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/auth.c:1081:
warning: 'method' may be used uninitialized in this function
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/auth.c:1081:
note: 'method' was declared here
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/auth.c:1080:
warning: 'service' may be used uninitialized in this function
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/auth.c:1080:
note: 'service' was declared here
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/auth.c:1079:
warning: 'sub' may be used uninitialized in this function
/home/incubus/Projects/libssh/work/libssh-0.3.0/libssh/auth.c:1079:
note: 'sub' was declared here

# gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]


-- 
Best regards,
Alexander Logvinov




More information about the Libssh mailing list