delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/11/00:06:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 11 Feb 2004 16:06:14 +1100 (EST)
From: King Lung Chiu <csklc AT farrer DOT hpc DOT csiro DOT au>
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: minires undefined '___res_search'
In-Reply-To: <Pine.GSO.4.56.0402102330400.27195@slinky.cs.nyu.edu>
Message-ID: <Pine.LNX.4.44.0402111559550.21497-100000@farrer.hpc.csiro.au>
MIME-Version: 1.0

> I don't believe the above command even attempts to link to the "resolv"
> library.  There is certainly no -lresolv anywhere on that line...

Oops, my mistake. Pasted the wrong line. It actually contained -lresolv as 
follows:

 gcc -o kx509 -lresolv -DUSE_KRB5 kx509.o debug.o getcert.o get_kca_list.o 
 get_realm.o store_in_cc.o store_tkt.o ../lib/libkx.a -L/usr/lib -L/usr 
 -lcrypto -L/opt/krb5-1.3.1//lib -lkrb5 -lk5crypto -lcom_err

It turned out that I just need to move -lresolv to the end of line so that 
the linker can find the library. So all is working now.

thanks, regards

King Lung Chiu


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019