Received: from sss.sss.pgh.pa.us (sss.pgh.pa.us [206.210.65.6]) by hub.org (8.9.1/8.9.1) with ESMTP id UAA11408 for ; Fri, 11 Dec 1998 20:51:02 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.sss.pgh.pa.us (8.9.1/8.9.1) with ESMTP id UAA18449; Fri, 11 Dec 1998 20:49:52 -0500 (EST) To: "Randall W. Barrett" cc: pgsql-interfaces@hub.org Subject: Re: [INTERFACES] linking error In-reply-to: Your message of Fri, 11 Dec 1998 14:50:39 -0500 (EST) Date: Fri, 11 Dec 1998 20:49:51 -0500 Message-ID: <18446.913427391@sss.pgh.pa.us> From: Tom Lane "Randall W. Barrett" writes: > [rbarrett@localhost rbarrett]$ gcc -O3 -Wall sample1.c -I > /usr/local/pgsql/include/ -L /usr/local/pgsql/lib/ -lpq > /usr/local/pgsql/lib//libpq.a(fe-auth.o): In function > `pg_password_sendauth': > fe-auth.o(.text+0x17): undefined reference to `crypt' > Does anyone know how I can fix this? Need I upgrade to 6.4? For the moment you should be able to fix it by adding -lcrypt to the end of the gcc command. I've been trying to fix things so that it's not necessary to do that ... but it's proving very hard to make it work properly everywhere :-(. Cross-references between shared libraries seem not to be very portable on Unix systems yet. regards, tom lane