Thread: Error building 7.3.4-2 on Win2K

Error building 7.3.4-2 on Win2K

From
"Chi Vu"
Date:
Hello,

I am attempting to build postgresql-7.3.4-2 with the JDBC driver.
I successfully ran ‘./configure –with-java’.  However, the make failed with the error shown at the end.
What am I missing?

Chi

------------------------

$ make
make -C doc all
make[1]: Entering directory `/usr/src/postgresql-7.3.4-2/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/postgresql-7.3.4-2/doc'
make -C src all
make[1]: Entering directory `/usr/src/postgresql-7.3.4-2/src'
make -C port all
make[2]: Entering directory `/usr/src/postgresql-7.3.4-2/src/port'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/port'
make -C backend all
make[2]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend'
make -C ../../src/port all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/port'
make -C access all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/access'
make -C common SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/access/comm
on'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/access/commo
n'
make -C gist SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/access/gist
'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/access/gist'

make -C hash SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/access/hash
'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/access/hash'

make -C heap SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/access/heap
'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/access/heap'

make -C index SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/access/inde
x'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/access/index
'
make -C nbtree SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/access/nbtr
ee'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/access/nbtre
e'
make -C rtree SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/access/rtre
e'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/access/rtree
'
make -C transam SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/access/tran
sam'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/access/trans
am'
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/access'
make -C bootstrap all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/bootstrap'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/bootstrap'
make -C catalog all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/catalog'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/catalog'
make -C parser all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/parser'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/parser'
make -C commands all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/commands'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/commands'
make -C executor all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/executor'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/executor'
make -C lib all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/lib'
make -C libpq all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/libpq'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/libpq'
make -C main all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/main'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/main'
make -C nodes all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/nodes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/nodes'
make -C optimizer all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer'
make -C geqo SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/g
eqo'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/ge
qo'
make -C path SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/p
ath'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/pa
th'
make -C plan SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/p
lan'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/pl
an'
make -C prep SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/p
rep'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/pr
ep'
make -C util SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/u
til'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer/ut
il'
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/optimizer'
make -C port all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/port'
make -C postmaster all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/postmaster'

make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/postmaster'
make -C regex all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/regex'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/regex'
make -C rewrite all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/rewrite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/rewrite'
make -C storage all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/storage'
make -C buffer SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/buf
fer'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/buff
er'
make -C file SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/fil
e'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/file
'
make -C freespace SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/fre
espace'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/free
space'
make -C ipc SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/ipc
'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/ipc'

make -C large_object SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/lar
ge_object'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/larg
e_object'
make -C lmgr SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/lmg
r'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/lmgr
'
make -C page SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/pag
e'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/page
'
make -C smgr SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/smg
r'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/storage/smgr
'
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/storage'
make -C tcop all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/tcop'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/tcop'
make -C utils all
make[3]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils'
make -C adt SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/adt'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/adt'
make -C cache SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/cache
'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/cache'

make -C error SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/error
'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/error'

make -C fmgr SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/fmgr'

make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/fmgr'
make -C hash SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/hash'

make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/hash'
make -C init SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/init'

make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/init'
make -C misc SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/misc'

make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/misc'
make -C mmgr SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/mmgr'

make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/mmgr'
make -C sort SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/sort'

make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/sort'
make -C time SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/time'

make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/time'
make -C mb SUBSYS.o
make[4]: Entering directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/mb'
make[4]: `SUBSYS.o' is up to date.
make[4]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils/mb'
make[3]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend/utils'
dlltool --dllname postgres.exe --output-exp postgres.exp --def postgres.def
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -L/usr/local/lib  -o p
ostgres.exe -Wl,--base-file,postgres.base postgres.exp access/SUBSYS.o bootstrap
/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o l
ib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/
SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tc
op/SUBSYS.o utils/SUBSYS.o -lz -lreadline -lcygipc
libpq/SUBSYS.o(.text+0x201b):crypt.c: undefined reference to `_crypt'
Info: resolving _optarg by linking to __imp__optarg (auto-import)
Info: resolving _optind by linking to __imp__optind (auto-import)
Info: resolving _opterr by linking to __imp__opterr (auto-import)
Info: resolving _optreset by linking to __imp__optreset (auto-import)
collect2: ld returned 1 exit status
make[2]: *** [postgres] Error 1
make[2]: Leaving directory `/usr/src/postgresql-7.3.4-2/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/postgresql-7.3.4-2/src'
make: *** [all] Error 2


Re: Error building 7.3.4-2 on Win2K

From
Jason Tishler
Date:
Chi,

On Tue, Oct 14, 2003 at 12:20:31PM -0500, Chi Vu wrote:
> I am attempting to build postgresql-7.3.4-2 with the JDBC driver.  I
> successfully ran ???./configure ???with-java???.  However, the make
> failed with the error shown at the end.
> What am I missing?

See below...

> $ make
> [snip]
> dlltool --dllname postgres.exe --output-exp postgres.exp --def
> postgres.def gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
> -L/usr/local/lib  -o p ostgres.exe -Wl,--base-file,postgres.base
> postgres.exp access/SUBSYS.o bootstrap /SUBSYS.o catalog/SUBSYS.o
> parser/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o l ib/SUBSYS.o
> libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/
> SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o
> storage/SUBSYS.o tc op/SUBSYS.o utils/SUBSYS.o -lz -lreadline -lcygipc
> libpq/SUBSYS.o(.text+0x201b):crypt.c: undefined reference to `_crypt'

The crypt package.  Rerun Cygwin's setup.exe and install it.

BTW, why don't you just use the pre-built package that is part of the
standard Cygwin distribution?

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6