Ticket #1 (closed defect)

Opened 12 years ago

Last modified 12 years ago

compile error

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: Version:
Keywords: Cc: sarag
Blocked By: Blocks:

Description

compiling on FreeBSD 4.9 gcc version 2.95.4
./configure
make
gcc -o hostkey.o hostkey.c -c -g -O2 -I/usr/include -I/usr/local/include -Wall -g -I../include/ -fPIC
hostkey.c: In function `libssh2_hostkey_method_ssh_rsa_signv':
hostkey.c:220: arithmetic on pointer to an incomplete type
hostkey.c:220: dereferencing pointer to incomplete type
hostkey.c:220: arithmetic on pointer to an incomplete type
hostkey.c:220: dereferencing pointer to incomplete type
hostkey.c: In function `libssh2_hostkey_method_ssh_dss_signv':
hostkey.c:444: arithmetic on pointer to an incomplete type
hostkey.c:444: dereferencing pointer to incomplete type
hostkey.c:444: arithmetic on pointer to an incomplete type
hostkey.c:444: dereferencing pointer to incomplete type
* Error code 1

in hostkey.c:220
SHA1_Update(&ctx, datavec[i].iov_base, datavec[i].iov_len);

datavec is array of iovec, but iovec not define in header files (libssh2.h)
#ifndef LIBSSH2_API
# ifdef LIBSSH2_WIN32
# ifdef LIBSSH2_LIBRARY
# define LIBSSH2_API declspec(dllexport)
# else
# define LIBSSH2_API
declspec(dllimport)
# endif /* LIBSSH2_LIBRARY */
# else /* !LIBSSH2_WIN32 */
# define LIBSSH2_API
# endif /* LIBSSH2_WIN32 */
#endif /* LIBSSH2_API */

Change History

comment:1 Changed 12 years ago by sarag

This bug has been fixed in CVS.
Watch for the 0.8 release or wait aprox 5 hours and grab the
source from CVS.

Note: See TracTickets for help on using tickets.