Skip site navigation (1) Skip section navigation (2)

Failed Compile : OpenLinux 2.2 : undefined reference to 'crypt' ???

From: sidtbird(at)uswest(dot)net
To: pgsql-ports(at)postgresql(dot)org
Subject: Failed Compile : OpenLinux 2.2 : undefined reference to 'crypt' ???
Date: 2000-01-02 05:00:11
Message-ID: (view raw or flat)
Lists: pgsql-ports

                        POSTGRESQL BUG REPORT TEMPLATE

Your name  : Sid Mitzlaff
Your email address : sidtbird(at)uswest(dot)net

System Configuration
  Architecture (example: Intel Pentium)   : Intel Pentium
  Operating System (example: Linux 2.0.26 ELF)  : Caldera
OpenLinux 2.2
  PostgreSQL version (example: PostgreSQL-6.5)  :
  Compiler used (example:  gcc 2.8.0)  : gcc version

Please enter a FULL description of your problem:

When compiling, the following shows up in my compile log
(command location and

---BEGIN make.log SNIPPET---
gcc -o postgres 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 -lnsl -ldl -lm -lreadline -lhistory
-ltermcap -lncurses  -export-dynamic
libpq/SUBSYS.o: In function `crypt_verify':
libpq/SUBSYS.o(.text+0x3954): undefined reference to `crypt'

libpq/SUBSYS.o: In function `verify_password':
libpq/SUBSYS.o(.text+0x3b97): undefined reference to `crypt'

make[1]: *** [postgres] Error 1
make[1]: Leaving directory
make: *** [all] Error 2
---END make.log SNIPPET---

Please describe a way to repeat the problem.   Please try to
provide a
concise reproducible example, if at all possible:

I unarchived postgres-6.5.tar.gz in /usr/local/src so I now
/usr/local/src/postgresql-6.5 and go to src:

cd /usr/local/src/postgresql-6.5
.configure --prefix=/usr/local/apps/pgsql
make all >& make.log &

If you know how this problem might be fixed, list the
solution below:

I checked the configuration, I have a /usr/include/crypt.h
Everything from the makefile looks good to me... I looked at
and stuff and can't seem to figure out why/how the reference
could be
undefined... (I sure wish I was an expert coder) ???

pgsql-ports by date

Next:From: Thomas LockhartDate: 2000-01-03 07:26:13
Subject: Re: [PORTS] RPMS on updated.
Previous:From: Daniel E. MadduxDate: 2000-01-02 02:08:09
Subject: postgresql-clients Version 6.5.3 RPM for LINUX?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group