libedit not found on SUse 11.1

Peter Stuge peter at stuge.se
Fri Apr 10 07:45:33 EST 2009


Ted Creedon wrote:
> included are a works and doesn't work config.log from SuSe 11.1

Thanks!


> As you can see the log files don't pinpoint the correct missing
> library

I think it does. Look at the following snippet:

--8<-- config.log.doesnt.work.with.no.curses.link
configure:12735: checking for libwrap
configure:12764: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset -fstack-protector-all -std=gnu99 -ggdb3 -I/usr/include/gssapi   -fstack-protector-all -L/usr/lib64 conftest.c -lwrap -lutil -lz -lnsl  >&5
configure:12771: $? = 0
configure:12780: result: yes
configure:12826: checking for el_init in -ledit
configure:12862: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset -fstack-protector-all -std=gnu99 -ggdb3 -I/usr/include/gssapi  -I/usr/lib64/include -L/usr/lib64/lib  -fstack-protector-all -L/usr/lib64 conftest.c -ledit  -lcurses
		 -lutil -lz -lnsl  >&5
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
configure:12869: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "OpenSSH"
| #define PACKAGE_TARNAME "openssh"
| #define PACKAGE_VERSION "Portable"
| #define PACKAGE_STRING "OpenSSH Portable"
| #define PACKAGE_BUGREPORT "openssh-unix-dev at mindrot.org"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define LOGIN_PROGRAM_FALLBACK "/bin/login"
| #define _PATH_PASSWD_PROG "/usr/bin/passwd"
| #define HAVE_ATTRIBUTE__NONNULL__ 1
| #define HAVE_CRYPT_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_ENDIAN_H 1
| #define HAVE_FEATURES_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_GLOB_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_POLL_H 1
| #define HAVE_PTY_H 1
| #define HAVE_RPC_TYPES_H 1
| #define HAVE_SECURITY_PAM_APPL_H 1
| #define HAVE_SHADOW_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_BITYPES_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_SYS_DIR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_SYS_PRCTL_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_STROPTS_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_SYSMACROS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_TIME_H 1
| #define HAVE_TTYENT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_UTMP_H 1
| #define HAVE_UTMPX_H 1
| #define HAVE_LASTLOG_H 1
| #define PAM_TTY_KLUDGE 1
| #define LOCKED_PASSWD_PREFIX "!"
| #define SPT_TYPE SPT_REUSEARGV
| #define LINK_OPNOTSUPP_ERRNO EPERM
| #define _PATH_BTMP "/var/log/btmp"
| #define USE_BTMP 1
| #define HAVE_LINUX_IF_TUN_H 1
| #define SSH_TUN_LINUX 1
| #define SSH_TUN_COMPAT_AF 1
| #define SSH_TUN_PREPEND_AF 1
| #define HAVE_LIBNSL 1
| #define HAVE_DIRNAME 1
| #define HAVE_LIBGEN_H 1
| #define HAVE_BASENAME 1
| #define HAVE_LIBZ 1
| #define HAVE_UTIMES 1
| #define HAVE_LOGIN 1
| #define HAVE_LOGOUT 1
| #define HAVE_UPDWTMP 1
| #define HAVE_LOGWTMP 1
| #define HAVE_STRFTIME 1
| #define GLOB_HAS_ALTDIRFUNC 1
| #define HAVE_DECL_GLOB_NOMATCH 1
| #define HAVE_PROC_PID 1
| #define LIBWRAP 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char el_init ();
| int
| main ()
| {
| return el_init ();
|   ;
|   return 0;
| }
configure:12890: result: no
configure:12903: error: libedit not found
-->8--

After this, config.log has a dump of lots of internal autoconf state.

But this line is key:
--8<--
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lcurses
-->8--

It shows the actual error message, which was encountered during the
libedit probing.


//Peter


More information about the openssh-unix-dev mailing list