This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to link without libutil.so? [repost]


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]