Installing OpenSSH-3.0.2p1 - Socklen_t ERROR

Installing OpenSSH-3.0.2p1 - Socklen_t ERROR

Post by Phil » Fri, 12 Apr 2002 06:52:15



I'm trying to install OpenSSH on Redhat6.2 at work here. Actually,
it's a re-installation from last year. I'm not exactly sure who set it
up before me. Looks like openSSL and zlib is already installed which
is good. I'm configuring OpenSSH with --PAM and -TCP wrapper support.

% ./configure --with-pam --with-tcp-wrappers

I get the following error message at the end of the configuration log:

checking for socklen_t... no
checking for socklen_t equivalent... configure: error: Cannot find a
type to use in place of socklen_t

I then try:

% make

make:***no-targets. Stop.

Does anyone know what the problem is? I checked for socklen.h file and
it is there. So not sure what the problem is.

Appreciate anyones help.

 
 
 

Installing OpenSSH-3.0.2p1 - Socklen_t ERROR

Post by dav.. » Fri, 12 Apr 2002 15:23:09



> checking for socklen_t... no
> checking for socklen_t equivalent... configure: error: Cannot find a
> type to use in place of socklen_t

See http://mail.gnome.org/archives/xml/2001-August/msg00061.html

Davide

 
 
 

Installing OpenSSH-3.0.2p1 - Socklen_t ERROR

Post by Phil » Sat, 13 Apr 2002 00:01:37




> > checking for socklen_t... no
> > checking for socklen_t equivalent... configure: error: Cannot find a
> > type to use in place of socklen_t

> See http://mail.gnome.org/archives/xml/2001-August/msg00061.html

> Davide

Well, that is really Solaris environment. I'm running Redhat 6.2 --
and I'm not an expert with C programming. Any suggestions?
 
 
 

Installing OpenSSH-3.0.2p1 - Socklen_t ERROR

Post by Phil » Sat, 13 Apr 2002 00:29:11


I cant seem to find config.h.in or config.h or config.in files
anywhere which seems rather odd. I am running autoconf 2.13 version,
and rather nervous about applying any patches on a production server
that also is used for company email.
 
 
 

Installing OpenSSH-3.0.2p1 - Socklen_t ERROR

Post by Phil » Sat, 13 Apr 2002 22:14:10


Well it looks like the config files are generated once I configure
openSSH. Still not sure what the problem is. Any help would be
appreciated.
 
 
 

Installing OpenSSH-3.0.2p1 - Socklen_t ERROR

Post by Nico Kadel-Garci » Sun, 14 Apr 2002 12:44:19



Quote:> Well it looks like the config files are generated once I configure
> openSSH. Still not sure what the problem is. Any help would be
> appreciated.

First, go to OpenSSH 3.1p1 immediately. Second, unless you are not running a
commercial distro there is little reason to recompile, just use the
packages. Third, make sure your OpenSSL is up to date....
 
 
 

Installing OpenSSH-3.0.2p1 - Socklen_t ERROR

Post by Phil » Wed, 17 Apr 2002 03:57:05


Ok, I'm providing additional info plus the config.log file. Hopefully,
someone can help this newbie out. Hehe (that would be me LOL)-- Check
the log file you'll see a few erros messages.

Redhat Linux 6.2
PentiumIII 1ghz
Kernel version: 2.2.12-20
OpenSSL-0.9.6a
OpenSSH-3.0.2p1
Glibc: not sure
zlib: 1.1.3
Autoconf: 2.13

Here is the config.log file for OpenSSH. It's pretty long.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.52d.  Invocation command line was

  $ ./configure --with-pam --with-tcp-wrappers

## --------- ##
## Platform. ##
## --------- ##

hostname = n/a
uname -m = i686
uname -r = 2.2.12-20
uname -s = Linux
uname -v = #1 Mon Sep 27 10:40:35 EDT 1999

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH = /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/dan/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1023: PATH=".;."; conftest.sh
./configure: conftest.sh: command not found
configure:1026: $? = 127
configure:1080: checking for gcc
configure:1095: found /usr/bin/gcc
configure:1103: result: gcc
configure:1331: checking for C compiler version
configure:1334: gcc --version </dev/null >&5
egcs-2.91.66
configure:1337: $? = 0
configure:1339: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
configure:1342: $? = 0
configure:1344: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:1347: $? = 1
configure:1373: checking for C compiler default output
configure:1376: gcc    conftest.c  >&5
configure:1379: $? = 0
configure:1408: result: a.out
configure:1413: checking whether the C compiler works
configure:1419: ./a.out
configure:1422: $? = 0
configure:1437: result: yes
configure:1444: checking whether we are cross compiling
configure:1446: result: no
configure:1449: checking for executable suffix
configure:1451: gcc -o conftest    conftest.c  >&5
configure:1454: $? = 0
configure:1476: result:
configure:1482: checking for object suffix
configure:1506: gcc -c   conftest.c >&5
configure:1509: $? = 0
configure:1528: result: o
configure:1532: checking whether we are using the GNU C compiler
configure:1559: gcc -c   conftest.c >&5
configure:1562: $? = 0
configure:1565: test -s conftest.o
configure:1568: $? = 0
configure:1580: result: yes
configure:1586: checking whether gcc accepts -g
configure:1610: gcc -c -g  conftest.c >&5
configure:1613: $? = 0
configure:1616: test -s conftest.o
configure:1619: $? = 0
configure:1629: result: yes
configure:1656: gcc -c -g -O2  conftest.c >&5
conftest.c:2: parse error before `me'
configure:1659: $? = 1
configure: failed program was:
#ifndef __cplusplus
  choke me
#endif
configure:1800: checking build system type
configure:1818: result: i686-pc-linux-gnu
configure:1825: checking host system type
configure:1839: result: i686-pc-linux-gnu
configure:1846: checking whether byte ordering is bigendian
configure:1876: gcc -c -g -O2  conftest.c >&5
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:30,
                 from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117,
                 from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7,
                 from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11,
                 from /usr/include/sys/param.h:23,
                 from configure:1855:
/usr/include/bits/local_lim.h:27: linux/limits.h: No such file or
directory
In file included from configure:1855:
/usr/include/sys/param.h:24: linux/limits.h: No such file or directory
/usr/include/sys/param.h:25: linux/param.h: No such file or directory
configure:1879: $? = 1
configure: failed program was:
#line 1853 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif

  ;
  return 0;

}

configure:2006: gcc -o conftest -g -O2   conftest.c  >&5
configure:2009: $? = 0
configure:2011: ./conftest
configure:2014: $? = 0
configure:2028: result: no
configure:2053: checking how to run the C preprocessor
configure:2079: gcc -E  conftest.c
configure:2085: $? = 0
configure:2112: gcc -E  conftest.c
configure:2109: ac_nonexistent.h: No such file or directory
configure:2118: $? = 1
configure: failed program was:
#line 2108 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:2155: result: gcc -E
configure:2170: gcc -E  conftest.c
configure:2176: $? = 0
configure:2203: gcc -E  conftest.c
configure:2200: ac_nonexistent.h: No such file or directory
configure:2209: $? = 1
configure: failed program was:
#line 2199 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:2286: checking for ranlib
configure:2301: found /usr/bin/ranlib
configure:2310: result: ranlib
configure:2334: checking for a BSD compatible install
configure:2383: result: /usr/bin/install -c
configure:2396: checking for ar
configure:2413: found /usr/bin/ar
configure:2424: result: /usr/bin/ar
configure:2435: checking for perl5
configure:2466: result: no
configure:2435: checking for perl
configure:2452: found /usr/bin/perl
configure:2463: result: /usr/bin/perl
configure:2475: checking for ent
configure:2506: result: no
configure:2514: checking for filepriv
configure:2545: result: no
configure:2555: checking for bash
configure:2572: found /bin/bash
configure:2583: result: /bin/bash
configure:2592: checking for ksh
configure:2620: result: /bin/bash
configure:2629: checking for sh
configure:2657: result: /bin/bash
configure:2672: checking for special C compiler options needed for
large files
configure:2752: result: no
configure:2758: checking for _FILE_OFFSET_BITS value needed for large
files
configure:2792: gcc -c -g -O2  conftest.c >&5
configure:2773: warning: left shift count >= width of type
configure:2773: warning: left shift count >= width of type
configure:2775: size of array `off_t_is_large' is negative
configure:2795: $? = 1
configure: failed program was:
#line 2766 "configure"
#include "confdefs.h"
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                       && LARGE_OFF_T % 2147483647 == 1)
                      ? 1 : -1];
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;

}

configure:2837: gcc -c -g -O2  conftest.c >&5
configure:2840: $? = 0
configure:2843: test -s conftest.o
configure:2846: $? = 0
configure:2857: result: 64
configure:2867: checking for _LARGE_FILES value needed for large files
configure:2901: gcc -c -g -O2  conftest.c >&5
configure:2904: $? = 0
configure:2907: test -s conftest.o
configure:2910: $? = 0
configure:2966: result: no
configure:2994: checking for login
configure:3011: found /bin/login
configure:3022: result: /bin/login
configure:3041: checking for gcc option to accept ANSI C
configure:3104: gcc  -c -g -O2  conftest.c >&5
configure:3107: $? = 0
configure:3110: test -s conftest.o
configure:3113: $? = 0
configure:3130: result: none needed
configure:3138: checking for inline
configure:3155: gcc -c -g -O2  conftest.c >&5
configure:3158: $? = 0
configure:3161: test -s conftest.o
configure:3164: $? = 0
configure:3175: result: inline
configure:4096: checking for ANSI C header files
configure:4110: gcc -E  conftest.c
configure:4116: $? = 0
configure:4203: gcc -o conftest -g -O2 -Wall -Wpointer-arith
-Wno-uninitialized   conftest.c  >&5
configure:4206: $? = 0
configure:4208: ./conftest
configure:4211: $? = 0
configure:4224: result: yes
configure:4240: checking for sys/types.h
configure:4253: gcc -c -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
 conftest.c >&5
configure:4256: $? = 0
configure:4259: test -s conftest.o
configure:4262: $? = 0
configure:4272: result: yes
configure:4240: checking for sys/stat.h
configure:4253: gcc -c -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
 conftest.c >&5
configure:4256: $? = 0
configure:4259: test -s conftest.o
configure:4262: $? = 0
configure:4272: result: yes
configure:4240: checking for stdlib.h
configure:4253: gcc -c -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
 conftest.c >&5
configure:4256: $? = 0
configure:4259: test -s conftest.o
configure:4262: $? = 0
configure:4272: result: yes
configure:4240: checking for string.h
configure:4253: gcc -c -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
 conftest.c >&5
configure:4256: $? = 0
configure:4259: test -s conftest.o
configure:4262: $? = 0
configure:4272: result: yes
configure:4240: checking for memory.h
configure:4253: gcc -c -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
 conftest.c >&5
configure:4256: $? = 0
configure:4259: test -s conftest.o
configure:4262: $? = 0
configure:4272: result: yes
configure:4240: checking for strings.h
configure:4253: gcc -c -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
 conftest.c >&5
configure:4256: $? = 0
configure:4259: test -s conftest.o
configure:4262: $? = 0
configure:4272: result: yes
configure:4240: checking for inttypes.h
configure:4253: gcc -c -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
 conftest.c >&5
configure:4256: $? = 0
configure:4259: test -s conftest.o
configure:4262: $? = 0 ...

read more »

 
 
 

1. openssh-3.0.2p1-1 and RedHat 7.1 and RPM hell

I'm not really familiar with RPMs, but due to some issues with trying
to get the OpenSSH tarball configured in the distant past, I used RPMS
on some of my RedHat 7.1 machines. I am currently running
openssh-2.9p2-1 and would like to upgrade to the latest version of
SSH. However, when I try to install the pre-built RPMs, I get errors
that it needs libraries like /usr/lib/libcrypto.so.2 and I have so.1
-- I guess they were made for RedHat 7.2 (as the directory says)..

Anyway, when I try to rebuild the RPMS, I get these errors:
perl   is needed by openssh-3.0.2p1-1
        XFree86-devel   is needed by openssh-3.0.2p1-1
        gnome-libs-devel   is needed by openssh-3.0.2p1-1

I can install the devel libraries (though they seem to need all kinds
of other RPMS, ad nauseum), but I am concerned about installing a new
perl, which I installed from the tarball and have all updated and
running the way I want.

So am I stuck with the source tarball?

2. Pass arguments to an executable

3. Upgrade OpenSSH 2.9p2 to OpenSSH-4.2p1 on Solaris 8 for SPARC

4. SOLUTION TO PPP 8-BIT CLEAN ERROR

5. openssh-1.2.2p1

6. FreeBSD on Slashdot

7. Problem with Openssh 4.2p1; libcrypto.so.0.9.8: Permission denied

8. Screenshots in WindowMaker

9. Problems compiling OpenSSH 3.0.2p1 on OpenBSD 3.0 i386

10. OpenSSH 3.0.2p1 binary pkg for Solaris

11. OpenSSH 3.0.2p1 configuration question

12. socklen_t errors

13. starting sshd(of openssh-3.5p1) on solaris 9