postgres link failure on cygwin 1.0

Kyle Downey kyle.downey@amberarcher.com
Mon Feb 28 08:30:00 GMT 2000


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@sourceware.cygnus.com



More information about the Cygwin mailing list