delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-Id: | <200002281737.LAA23633@hp2.xraylith.wisc.edu> |
To: | Kyle Downey <kyle DOT downey AT amberarcher DOT com> |
cc: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: postgres link failure on cygwin 1.0 |
In-reply-to: | Your message of "28 Feb 2000 11:32:28 EST." |
<20000228163228 DOT 4172 DOT qmail AT pb151 DOT postoffice DOT net> | |
Date: | Mon, 28 Feb 2000 11:37:11 -0600 |
From: | Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU> |
Kyle Downey <kyle DOT downey AT amberarcher DOT com> writes: > I'm getting a link failure looking for _sys_nerr (from errno.h) when compilin > g > postgresql 6.5.3 on cygwin 1.0 (CD distro, unmodified except for addition of > the CWilson /usr/local and cygipc 1.05 distros. I have notified the maintaine > r > about this, but since he says in the docs it compiles on b20.1, I wanted to > see if it was just a Cygwin b20.1 -> 1.0 change, esp. because it's a system > call that's missing. I may just have to add a library that I don't know > about. > > What puzzles me is that _sys_nerr is defined in libcgywin.dll, which is being > linked against: You've probably fallen into the trap of *declaring* _sys_nerr as an external variable without importing it from the DLL. Check for the following in your code: extern int _sys_nerr; which is incorrect. Remove that and use the definition from <errno.h>, which is: extern int _sys_nerr __declspec(dllimport); Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |