undefined reference error when compiling postgresql 7.1.3 on Windows 2000 - Mailing list pgsql-ports

From Adnan Selimovic
Subject undefined reference error when compiling postgresql 7.1.3 on Windows 2000
Date
Msg-id 000001c17cb5$59567e50$0700a8c0@qssbh.com
Whole thread Raw
List pgsql-ports

Hi! I cannot compile postgresql 7.1.3 on Windows 2000. I have installed cygwin including the crypt tool and library and here is my dump:

 

make[3]: Entering directory `/usr/src/postgresql-7.1.3/src/bin/pg_passwd'

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include

 -I/usr/local/include  -c -o pg_passwd.o pg_passwd.c

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -L/usr/local/lib -g  p

g_passwd.o -lz -lreadline -lcygipc -o pg_passwd

pg_passwd.o(.text+0x763):pg_passwd.c: undefined reference to `crypt'

collect2: ld returned 1 exit status

make[3]: *** [pg_passwd] Error 1

make[3]: Leaving directory `/usr/src/postgresql-7.1.3/src/bin/pg_passwd'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/usr/src/postgresql-7.1.3/src/bin'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/usr/src/postgresql-7.1.3/src'

make: *** [all] Error 2

 

crypt.exe is in the \cygwin\bin directory and I call make within the bash. I would appreciate any help.

 

Cheers,

 

Adnan Selimovic

pgsql-ports by date:

Previous
From: "Henry B. Hotz"
Date:
Subject: Re: 7.1.3 fails to configure on Solaris 2.7
Next
From: Keith Gray
Date:
Subject: SCO OSR5 - PostgreSQL VOL or Complile