delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/28/11:22:29

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: <20000228163228.4172.qmail@pb151.postoffice.net>
Date: 28 Feb 00 11:32:28 EST
From: Kyle Downey <kyle DOT downey AT amberarcher DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: postgres link failure on cygwin 1.0
X-Mailer: USANET web-mailer (MaintM3.3.0.77)
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id LAA15088

I'm getting a link failure looking for _sys_nerr (from errno.h) when compiling
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 maintainer
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:

dlltool --dllname postgres.exe --output-exp postgres.exp --def postgres.def
gcc -g -o postgres.exe -Wl,--base-file,postgres.base postgres.exp
access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o commands/SUBSYS.o
executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o parser/SUBSYS.o
nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o
regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o
./utils/version.o -L/usr/local/lib 
-lcygipc -lcrypt -lcygwin -lkernel32 -lcrtdll
utils/SUBSYS.o: In function `EncodeTimeSpan':
/cygdrive/c/postgresql-6.5.3/src/backend/utils/adt/dt.c:4511: undefined
reference to `_sys_nerr'
/cygdrive/c/postgresql-6.5.3/src/backend/utils/adt/dt.c:4511: undefined
reference to `_sys_nerr'
collect2: ld returned 1 exit status
make[1]: *** [postgres] Error 1

Any ideas? I'd really like to clear this up. I plan to post a HOWTO and binary
for postgresql 6.5.3 on cygwin 1.0 when done.

regards,
kd





--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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