(4.1p1) Building failure with libedit on FreeBSD 4.x-RELEASE
Norihiko Murase
skeleten at shillest.net
Tue Aug 16 05:07:41 EST 2005
Hi,
I did check also the following change
> 20050810
> - (dtucker) [configure.ac] Test libedit library and headers for compatibility.
> Report from skeleten AT shillest.net, ok djm@
via the SNAP-20050811 version, which was available at
ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/snapshot/ .
Now the configure script does detect the non-compatible
version of libedit with the following messages:
------------------------------------------------------------
...(snip)...
checking for el_init in -ledit... yes
checking if libedit version is compatible... no
configure: error: libedit version is not compatible
------------------------------------------------------------
However, it may be better that you should change the
configure.ac file by applying EITHER OF the 2 patches
attached:
configure_ac_libedit1.diff
configure_ac_libedit2.diff
The config.log file contains the following; you can see the
curious test program, where the main() contains the main().
------------------------------------------------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by OpenSSH configure Portable, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/usr/local/OpenSSH --with-rpath --without-osfsia --with-zlib=/usr/local/zlib --without-skey --without-tcp-wrappers --with-libedit --without-audit --without-pam --with-ssl-dir=/usr/local/OpenSSL --without-rand-helper --with-privsep-user=sshd --with-privsep-path=/var/empty --without-sectok --without-opensc --without-kerberos5 --with-xauth=/usr/X11R6/bin/xauth --without-ipaddr-display --with-default-path=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin --with-superuser-path=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin --without-4in6 --with-pid-dir=/var/run
## --------- ##
## Platform. ##
## --------- ##
hostname = ********
uname -m = i386
uname -r = 4.11-RELEASE
uname -s = FreeBSD
uname -v = FreeBSD 4.11-RELEASE #0: Tue May 3 02:00:46 JST 2005 root@********:/usr/src/sys/compile/*****
/usr/bin/uname -p = i386
/bin/uname -X = unknown
...(snip)...
## ----------- ##
## Core tests. ##
## ----------- ##
...(snip)...
configure:10191: checking if libedit version is compatible
configure:10216: gcc -c -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -I/usr/local/zlib/include conftest.c >&5
conftest.c: In function `main':
conftest.c:65: warning: `main' is normally a non-static function
conftest.c: In function `main':
conftest.c:66: `H_SETSIZE' undeclared (first use in this function)
conftest.c:66: (Each undeclared identifier is reported only once
conftest.c:66: for each function it appears in.)
conftest.c:67: too many arguments to function `el_init'
conftest.c:66: warning: unused variable `i'
configure:10222: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "OpenSSH"
...(snip)...
| #define GLOB_HAS_ALTDIRFUNC 1
| #define USE_LIBEDIT
| /* end confdefs.h. */
| #include <histedit.h>
| int
| main ()
| {
|
| int main(void)
| {
| int i = H_SETSIZE;
| el_init("", NULL, NULL, NULL);
| exit(0);
| }
|
| ;
| return 0;
| }
configure:10243: result: no
configure:10245: error: libedit version is not compatible
...(snip)...
configure: exit 1
------------------------------------------------------------
I THINK that these patch fixes this curious test program,
but I can't be sure of that... UNABLE to test this because I
don't have the autoconf tools installed on the system of me.
X-)
Also, I am trying to install on the FreeBSD-4.x system
the libedit distributed at
http://www.thrysoee.dk/editline/ ,
but I haven't succeeded; I am going to contact the author of
it.
Thank you very much,
---
Norihiko Murase <skeleten at shillest.net>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: configure_ac_libedit2.diff
Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20050816/ae61b420/attachment.ksh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: configure_ac_libedit1.diff
Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20050816/ae61b420/attachment-0001.ksh
More information about the openssh-unix-dev
mailing list