Re: openssh-3.8p1 compile problem

From: Bob Marcan (bob_at_interstudio.homeunix.net)
Date: 03/11/04


Date: Thu, 11 Mar 2004 11:45:15 +0100

Carlo Luciano Bianco wrote:
> dtucker@dodgy.net.au (Darren Tucker) wrote in
> news:c21n5q$kb6$1@gate.dodgy.net.au:
>
>
>>In article <Xns94A070CFA23A7clbiancotiscalinetit@127.0.0.1>,
>>Carlo Luciano Bianco <clbianco@tiscalinet.it> wrote:
>>
>>>In config.h there is the following line:
>>>#define BROKEN_GETADDRINFO 1
>>
>>Well, you could try commenting it out ("make clean && make").
>>If that works, there's possibly a bug in OpenSSH's getaddrinfo
>>replacement functions.
>
>
> Done, but still not working. Now the error when starting sshd is:
>
> bad addr or host: <NULL> (servname not supported for ai_socktype)
>

Try to compile with the -D_SOCKADDR_LEN.

Just for info (it works):

Compaq Tru64 UNIX V5.1B (Rev. 2650); Wed Nov 12 15:16:41 CET 2003
(OSF1 gin.interstudio.homeunix.net V5.1 2650 alpha)

CPPFLAGS="-I/usr/local/include \
           -DCUSTOM_SYS_AUTH_PASSWD" \
./configure --prefix=/usr/local/FAKE \
             --with-osfsia \
             --with-privsep-path=/usr/local/FAKE/empty

OpenSSH has been configured with the following options:
                      User binaries: /usr/local/FAKE/bin
                    System binaries: /usr/local/FAKE/sbin
                Configuration files: /usr/local/FAKE/etc
                    Askpass program: /usr/local/FAKE/libexec/ssh-askpass
                       Manual pages: /usr/local/FAKE/man/manX
                           PID file: /var/run
   Privilege separation chroot path: /usr/local/FAKE/empty
             sshd default user PATH:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/FAKE/bin
                     Manpage format: man
                        PAM support: no
                  KerberosV support: no
                  Smartcard support: no
                      S/KEY support: no
               TCP Wrappers support: no
               MD5 password support: no
        IP address in $DISPLAY hack: no
            Translate v4 in v6 hack: no
                   BSD Auth support: no
               Random number source: OpenSSL internal ONLY

               Host: alphaev56-dec-osf5.1
           Compiler: cc
     Compiler flags: -g
Preprocessor flags: -I/usr/local/include -DCUSTOM_SYS_AUTH_PASSWD
       Linker flags:
          Libraries: -lcrypto -lrt -lz -lsecurity -ldb -lm -laud

This was only test installation, so the /usr/local/FAKE.
I'm using vendor provided ssh.

Regards, Bob