www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/03/22:34:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: Fri, 3 Sep 2004 22:35:18 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: how to link without libutil.so? [repost]
Message-ID: <20040904023518.GA17453@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <chb8ej$enb$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <chb8ej$enb$1@sea.gmane.org>
User-Agent: Mutt/1.4.1i

On Fri, Sep 03, 2004 at 10:14:43PM -0400, Andrew Schulman wrote:
>I'm trying to build Unison version 2.9.99.??Compilation?succeeds,?but?
>the link step fails with
>
>/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: 
>cannot find -lutil
>
>after running a gcc command that includes '-lutil'.??I've?searched?the?
>Cygwin packages, and it does seem that there's no file libutil.a or 
>libutil.so in any of them.??On?other?platforms,?this?is?a?standard?
>library.
>
>So is there some other library that I should use in place of libutil.* 
>on Cygwin???I?tried?'ln?-s?libcygwin.a?/usr/lib/libutil.a'?(what?the?
>hell, it was worth a shot) but it failed.
>
>Other people have asked about this same problem in other forums, but I 
>haven't seen any of them get an answer.

As you noted, the file doesn't exist in the cygwin distribution.  It's
possible that you could just get by with removing it from the link line
entirely since it looks like most of the functions in this library are
in cygwin1.dll.

Otherwise, you'll have to come up with workarounds for the missing
functions.

cgf

--
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