(4.1p1) Building failure with libedit on FreeBSD 4.x-RELEASE

Norihiko Murase skeleten at shillest.net
Tue Aug 9 10:43:09 EST 2005


Hi,

I've noticed that building 4.1p1 fails on FreeBSD 4.x if the
libedit support is enabled by the "--with-libedit" configure
option.

I tried to build OpenSSH-4.1p1 under the following environment:
  CPU: i386 family
  OS: FreeBSD 4.11-RELEASE
  Compiler: gcc-2.95.4 (/usr/bin/gcc)
  ----
  libedit: (located at /usr/lib/)

Building fails with the following messages:
----------
gcc -g -O2 -Wall ...... -DHAVE_CONFIG_H -c sftp.c
sftp.c: In function `interactive_loop':
sftp.c:1247: too many arguments to function `el_init'
sftp.c:1251: `H_SETSIZE' undeclared (first use in this function)
sftp.c:1251: (Each undeclared identifier is reported only once
sftp.c:1251: for each function it appears in.)
sftp.c:1251: warning: passing arg 2 of `history' makes integer from pointer without a cast
sftp.c:1326: warning: passing arg 2 of `history' makes integer from pointer without a cast
gmake: *** [sftp.o] Error 1
----------

This is because of the spec-differences between the
following types of the libedit:
  [1] the version attached to FreeBSD-4.x
  [2] the version distributed at
      http://www.thrysoee.dk/editline/

# The version attached to FreeBSD-5.x is the same as [2],
# I think.

I think that it is no problem that you require the libedit
distributed at http://www.thrysoee.dk/editline/ ; however, I
would like to suggest that you should improve the configure
script.

The configure script should check whether the libedit on the
system can be used or not --- concretely,
  * the number of the arguments of el_init()
  * whether the macro H_SETSIZE is defined or not


Best Regards,
---
Norihiko Murase <skeleten at shillest.net>




More information about the openssh-unix-dev mailing list