Help with -lcrypt problem during compile... - Mailing list pgsql-novice

From Eric L. Walstad
Subject Help with -lcrypt problem during compile...
Date
Msg-id NDBBLBELNHAPHBBCOIFDEEBICHAA.Eric@Walstads.net
Whole thread Raw
List pgsql-novice
hello,
I am a sparkling new PostgreSQL newbie.  I'm already having trouble
compiling the software for my Caldera OpenLinux 2.3 system.  Here's the
error:

gcc -I../include -I../backend   -O2 -Wall -Wmissing-prototypes -Wmissing-dec
larations -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 -lutil -ltermcap -lncurses  -export-dynamic
libpq/SUBSYS.o: In function `crypt_verify':
libpq/SUBSYS.o(.text+0x3984): undefined reference to `crypt'
libpq/SUBSYS.o: In function `verify_password':
libpq/SUBSYS.o(.text+0x3ba7): undefined reference to `crypt'
make[1]: *** [postgres] Error 1
make[1]: Leaving directory `/usr/src/postgresql/src/backend'
make: *** [all] Error 2

I've searched the archives and have seen a lot of responses to the effect of
"just add -lcrypt to the compile line."  I've checked my LIBS line in the
makefile:
<!-- START Snip from configure file -->

echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
echo "configure:3274: checking for main in -lcrypt" >&5
ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lcrypt  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 3282 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
EOF

<!-- END Snip from configure file -->

Notice that the -lcrypt line is in there, but I am still not able to compile
the software.

Please help!

Please respond to eric@walstads.net as I don't subscribe to this list.

Thanks,

Eric.

____________________________

Eric L. Walstad
Affordable Energy Compliance
222 Winfield Street
San Francisco, CA 94110
(415) 643-0812 voice & fax
ewalstad@energywright.com
www.energywright.com
____________________________


pgsql-novice by date:

Previous
From: alias@server9.hypermart.net
Date:
Subject: ...
Next
From: Tom Lane
Date:
Subject: Re: newbie problem on creating table