From: | "Eric L(dot) Walstad" <Eric(at)Walstads(dot)net> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Help with -lcrypt problem during compile... |
Date: | 2000-07-10 23:50:57 |
Message-ID: | NDBBLBELNHAPHBBCOIFDEEBICHAA.Eric@Walstads.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)walstads(dot)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(at)energywright(dot)com
www.energywright.com
____________________________
From | Date | Subject | |
---|---|---|---|
Next Message | D. Duccini | 2000-07-11 02:05:08 | RE: Perl and pg_dump |
Previous Message | WOLF, PATRICK | 2000-07-10 22:48:42 | RE: Perl and pg_dump |