Re: openssh-3.8p1 compile problem

From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 03/23/04


Date: Tue, 23 Mar 2004 01:21:20 +0000 (UTC)

In article <c3n2ni$1nkl$1@news.dg.net.ua>,
Alexander Latenko <noname@bostonanimation.com> wrote:
>Linux, 2.4.24, opensll-0.9.7d
>I'm trying to compile openssh-3.8p1 with static flag
>
>CFLAGS="-static" LDFLAGS="-static" ./configure --with-ssl-dir=/usr/local/ssl
>make
>
>then at make time I got:
>gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o
>sshconnect2.o -L. -Lope
>nbsd-compat/ -L/usr/local/ssl/lib -static -lssh -lopenbsd-compat -lcrypto -l
>util -lz -lnsl -lcrypt
>openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o)(.text+0xe3): In
>function `getrrsetbyname':
>: undefined reference to `__res_query'
>openbsd-compat//libopenbsd-compat.a(getrrsetbyname.o)(.text+0x7ff): In
>function `parse_dns_qsection'
[snip]
>Any ideas how to avoid it?

Add "-lresolv" to LDFLAGS?

>I didn't expire such problems on openssh-3.7.1p2

In 3.7.x, DNS key verification was a compile-time option. In 3.8 it's
now a run-time option (ie it's always compiled in, but is off by default).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


Relevant Pages

  • Re: C99 Question
    ... avoid shadowing type names to avoid confusion. ... When I compile a C program as C++, I make a habit of also testing the ... I tend to constrain myself to the very large subset of C ... You must be glad you cought it. ...
    (comp.lang.c)
  • Re: Where does C++ fit in?
    ... code and compile it as C++. ... static constructors, memory allocation, exceptions). ... even there avoid stuff you don't need or can't afford. ... but watch out for static constructors if you're in the startup code. ...
    (comp.arch.embedded)
  • Re: Computer Shutsdown
    ... When I compile something big..kernel recompile, ... > Can anyone suggest me what do do, to avoid such shutdowns, Kernel ...
    (Fedora)
  • Re: Definition in Header files
    ... way I can avoid doing this. ... I suggest you to use macro to define const-like value. ... be a compile time constant in C, ... for a double you have to use a macro or a global const variable. ...
    (comp.lang.c)
  • Re: [RFC PATCH 26/26] UBIFS: include FS to compilation
    ... compile in all debug code and then have a module option to select the ... Surely that judgement should be made by people who actually debug UBIFS. ... switch on your brain and notice that a runtime/boottime switch is always ...
    (Linux-Kernel)