Included below is a diff between the output from configure on a 64 bit
SUse 11.1 (doesn't find libedit) and a 64 bit Suse 10.3 (does find
libedit) for otherwise identical setups.
1. How can I get the output set up to look at conftest.c?
2. I added a set -x to configure above LIBEDIT_MSG=no
3. ./configure --with-ldflags="-L/usr/lib64"
--with-cflags="-ggdb3
-I/usr/include/gssapi" --prefix=/ --exec-prefix=/usr
--libdir=/usr/lib64 --datadir=/usr --sysconfdir=/etc/ \
--with-ssl-engine --with-pam --with-rand-helper
--with-kerberos5=/usr/lib/mit --with-md5-passwords
--with-libedit=/usr/lib64 --with-tcp-
wrappers \
--disable-strip
a simpler ./configure -with-libedit=/usr/lib64 produces the same error..
Suse 11.1 Suse10.3
+ LIBEDIT_MSG=no +
LIBEDIT_MSG=no
+ test set = set +
test set = set
+ withval=/usr/lib64
+ withval=/usr/lib64
+ test x/usr/lib64 '!=' xno +
test x/usr/lib64 '!
+ test x/usr/lib64 '!=' xyes +
test x/usr/lib64 '!
+ CPPFLAGS=' -I/usr/lib64/include' +
CPPFLAGS=' -I/usr/l
+ test -n '' + test -n
''
+ LDFLAGS='-L/usr/lib64/lib -fstack-protector-all -L/usr/lib +
LDFLAGS='-L/usr/lib64/lib -fstack-protector-all -L
+ echo 'configure:12260: checking for el_init in -ledit' +
echo 'configure:12260: checking for el_in
+ echo -n 'checking for el_init in -ledit... ' +
echo -n 'checking for el_init in -ledit..
checking for el_init in -ledit... + test '' = set
checking for el_init in -ledit... + test ''
+ ac_check_lib_save_LIBS='-lutil -lz -lnsl ' +
ac_check_lib_save_LIBS='-lutil -lz -lnsl '
+ LIBS='-ledit -lcurses +
LIBS='-ledit -lcurses
-lutil -lz -lnsl '
-lutil -lz -lnsl '
+ cat + cat
+ cat confdefs.h +
cat confdefs.h
+ cat + cat
+ rm -f conftest.o conftest | +
rm conftest.o conftest
> rm: cannot remove `conftest.o': No such file or directory
> rm: cannot remove `conftest': No such file or directory
+ ac_try='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAG +
ac_try='$CC -o conftest$ac
+ case "(($ac_try" in +
case "(($ac_try"
+ ac_try_echo='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $L +
ac_try_echo='$CC
+ eval 'echo "$as_me:12296: $CC -o conftest$ac_exeext $CFLAGS + eval
'echo "$as_me:12296: $CC -o conftest$ac_exeext
++ echo 'configure:12296: gcc -o conftest -g -O2 -Wall -Wpoin ++ echo
'configure:12296: gcc -o conftest -g -O2 -Wal
-lutil -lz -lnsl >&5' -lutil
-lz -lnsl >&5'
+ ac_status=1 | + ac_status=0
+ grep -v '^ *+' conftest.er1 +
grep -v '^ *+' conftest.er1
+ rm -f conftest.er1 +
rm -f conftest.er1
+ cat conftest.err +
cat conftest.err
+ echo 'configure:12302: $? = 1' |
+ echo 'configure:12302: $? = 0'
+ exit 1 | + exit 0
+ echo 'configure: failed program was:' |
+ test -z ''
+ sed 's/^/| /' conftest.c |
+ test -s conftest
+ ac_cv_lib_edit_el_init=no |
+ test -x conftest
> + ac_cv_lib_edit_el_init=yes
+ rm -f core conftest.err conftest.o conftest_ipa8_conftest.o
+ rm -f core con
+ LIBS='-lutil -lz -lnsl '
+ LIBS='-lutil -
+ echo 'configure:12320: result: no' | +
echo 'configure:12320: result: yes'
+ echo no | + echo yes
no | yes
+ test no = yes | +
test yes = yes
+ echo 'configure:12333: error: libedit not found' <
+ echo 'configure: error: libedit not found' <
configure: error: libedit not found <
+ exit 1 <
+ exit 1 <
+ exit_status=1 <
+ echo <
+ cat + cat
+ echo |
+ LIBEDIT='-ledit -lcurses'
++ sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p' |
+ LIBEDIT_MSG=yes
+ for ac_var in '`(set) 2>&1 | sed -n
'\''s/^\([a-zA-Z_][a-zA |
+ echo 'configur
+ eval 'ac_val=$AR' |
+ echo -n 'check
++ ac_val=/usr/bin/ar |
checking if libe
+ case $ac_val in |
+ cat confdefs.h
+ for ac_var in '`(set) 2>&1 | sed -n
'\''s/^\([a-zA-Z_][a-zA | + cat
+ eval 'ac_val=$AWK' |
+ rm -f conftest
++ ac_val=gawk |
+ ac_try='$CC -c
+ case $ac_val in | +
case "(($ac_try" in
+ for ac_var in '`(set) 2>&1 | sed -n
'\''s/^\([a-zA-Z_][a-zA | +
ac_try_echo='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_
+ eval 'ac_val=$BASH' |
+ eval 'echo "$as_me:12362: $CC -c $CFL
++ ac_val=/bin/sh |
++ echo 'configure:12362: gcc -c -g -O2
+ case $ac_val in |
+ ac_status=0
+ for ac_var in '`(set) 2>&1 | sed -n
'\''s/^\([a-zA-Z_][a-zA |
+ grep -v '^ *+' conftest.e
+ eval 'ac_val=$BASH_ARGC' |
+ rm -f conftest.er1
++ ac_val=15 |
+ cat conftest.err
+ case $ac_val in |
+ echo 'configure:12368: $?
+ for ac_var in '`(set) 2>&1 | sed -n
'\''s/^\([a-zA-Z_][a-zA | + exit 0
+ eval 'ac_val=$BASH_ARGV' |
+ test -z ''
++ ac_val=--disable-strip |
+ test -s conftest.o
+ case $ac_val in |
+ echo 'configure:12373: re
+ for ac_var in '`(set) 2>&1 | sed -n
'\''s/^\([a-zA-Z_][a-zA | + echo yes
+ eval 'ac_val=$BASH_LINENO' |
yes
++ ac_val=0 |
+ rm -f core conftest.err c
+ case $ac_val in | + set +x
+
Ted Creedon wrote:> Included below is a diffSorry, it's not very legible to me.> between the output from configure on a 64 bit SUse 11.1 (doesn't > find libedit) and a 64 bit Suse 10.3 (does find libedit) for > otherwise identical setups.Does 10.3 also use /usr/lib64 ? //Peter
Forgot - the configure line.. same for all cases Debug (ddd ssh) was used to troubleshoot the gssapi problem previously described in the e-mails thanks ted On Thu, Apr 9, 2009 at 9:20 AM, Ted Creedon <tcreedon at easystreet.net> wrote:> included are a works and doesn't work config.log from SuSe 11.1 > > config.sh is included also. > > The difference between the two is a soft link: > > ln -s /lib64/libncurses.so.5.6 /lib64/libcurses.so > > If you want I can send a capture with set -x turned on at > LIBEDIT_MSG="no" in the configure script > > As you can see the log files don't pinpoint the correct missing library it > points to libedit when it should point to libcurses > >-------------- next part -------------- A non-text attachment was scrubbed... Name: config.sh Type: application/x-sh Size: 338 bytes Desc: not available Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20090409/dad7a5c9/attachment.sh
Ted Creedon wrote:> included are a works and doesn't work config.log from SuSe 11.1Thanks!> As you can see the log files don't pinpoint the correct missing > libraryI 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