Gregor Mosheh <[EMAIL PROTECTED]> wrote:

> Can your C compiler do small test programs? e.g.:
>
> #include <stdio.h>
> main() {
>    printf("hello world");
> }
>
> If not, then the problem is with your compiler and you'll need to get
> that straightened out.

As I wrote recently, I've had the exact same error messages, both from
SSH2 and OpenSSH,
using either GCC or the DEC OSF compiler.
What's really bizarre is that I _can_ compile simple and complex
programs of other sorts.
For instance, apache compiles perfectly fine, as do many programs of my
own.  There's
something odd around line 1166 in the SSH2 configure script where it
does the check to see
if the compiler works:

===========================================

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp
options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS
conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext << EOF

#line 1162 "configure"
#include "confdefs.h"

main(){return(0);}
EOF
if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross
compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi

============================================

That's where I get lost.  It appears to be making very simple code
(basically just a return call) and I
presume trying to compile it?  I don't get the "eval echo
configure:1167:\"$ac_link\") 1>&5;".

Not sure where the configure script is going wrong, but it is making a
mistake about the status of the compiler.

Anyone have any ideas?

Michael


Reply via email to