Hi,

I'm trying to compile Postgres 7.0.2 in Cygwin 1.1.4 in a Windows NT 4.0
system.

I've configured with the template provided to cygwin, and I get the
following error in the compilation process:

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

utils/SUBSYS.o(.text+0x42ec7):elog.c: undefined reference to `_sys_nerr'
utils/SUBSYS.o(.text+0x438a5):exc.c: undefined reference to `_sys_nerr'
collect2: ld returned 1 exit status

make[1]: *** [postgres] Error 1
make[1]: Leaving directory `/usr/source/src/backend'
make: *** [all] Error 2


I was unable to resolve this error. I suppose the problem resides in the
Cygwin implementation, the _sys_nerr is an external variable in the .c files
(elog.c and exc.c) that should reside in the cygwin.dll ! (I'v tried to
understand the comments in version.h)

Anyone have experienced something like this? I suppose I should install a
previous version of Cygwin.


Thanks,
Pedro Machado

Search Discussions

  • Pete Forman at Nov 21, 2000 at 12:46 pm

    Pedro.Simoes.Machado@bancobpi.pt writes:
    I'm trying to compile Postgres 7.0.2 in Cygwin 1.1.4 in a Windows
    NT 4.0 system.
    Apply the patch posted here yesterday by Jason Tishler "[PORTS]
    Building PostgreSQL 7.0.3 on Cygwin 1.1.5".

    Instructions for building on NT are available at

    <http://people.freebsd.org/~kevlo/postgres/portNT.html>

    The copy of the patch there is not quite up to date but that will be
    sorted soon, hopefully.
    --
    Pete Forman -./\.- Disclaimer: This post is originated
    Western Geophysical -./\.- by myself and does not represent
    pete.forman@westgeo.com -./\.- the opinion of Baker Hughes or
    http://www.crosswinds.net/~petef -./\.- its divisions.
  • Jason Tishler at Nov 21, 2000 at 1:17 pm
    Pedro,
    On Tue, Nov 21, 2000 at 12:11:15PM, Pedro.Simoes.Machado@bancobpi.pt wrote:
    Anyone have experienced something like this? I suppose I should install a
    previous version of Cygwin.
    See my post from yesterday:

    http://postgresql.readysetnet.com/mhonarc/pgsql-ports/2000-11/msg00093.html

    And then use the following instructions:

    http://people.freebsd.org/~kevlo/postgres/portNT.html

    with the following modifications:

    1. install Cygwin 1.1.5 instead of 1.1.4
    2. skip Install PostgreSQL 7.0.3 step #6, it is no longer necessary
    with 1.1.5
    3. use my latest patch instead of the one mentioned in Install
    PostgreSQL 7.0.3 step #7

    In the future, please try searching the archives first...

    Thanks,
    Jason

    --
    Jason Tishler
    Director, Software Engineering Phone: +1 (732) 264-8770 x235
    Dot Hill Systems Corporation Fax: +1 (732) 264-8798
    82 Bethany Road, Suite 7 Email: Jason.Tishler@dothill.com
    Hazlet, NJ 07730 USA WWW: http://www.dothill.com

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-ports @
categoriespostgresql
postedNov 21, '00 at 12:11p
activeNov 21, '00 at 1:17p
posts3
users3
websitepostgresql.org
irc#postgresql

People

Translate

site design / logo © 2022 Grokbase