Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 45D09475ACD for ; Wed, 10 Jul 2002 09:55:25 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g6ADsEAl016756; Wed, 10 Jul 2002 09:54:14 -0400 (EDT) To: Ryan Hairyes Cc: pgsql-interfaces@postgresql.org Subject: Re: PERL/POSTGRESQL HELP In-reply-to: <200207101249.g6ACnLb01824@lee.k12.nc.us> References: <200207101249.g6ACnLb01824@lee.k12.nc.us> Comments: In-reply-to Ryan Hairyes message dated "Wed, 10 Jul 2002 07:49:21 -0500" Date: Wed, 10 Jul 2002 09:54:14 -0400 Message-ID: <16755.1026309254@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200207/41 X-Sequence-Number: 2850 Ryan Hairyes writes: > I am trying to compile postgresql 7.2.1 on a Solaris 8 box. Postgresql itself > compiles just fine. However, I need the perl interface for postgres. So when > I tried to compile postgresql with the perl interface (using ./configure --with-perl) I received the following message: > cc: unrecognized option `-KPIC' > cc: language depend not recognized > cc: Pg.c: linker input file unused since linking not done > cc -o blib/arch/auto/Pg/Pg.so -G Pg.o -R/usr/local/pgsql/lib -L/tmp/postgresql-7.2.1/src/interfaces/libpq -lpq > cc: Pg.o: No such file or directory > make[4]: *** [blib/arch/auto/Pg/Pg.so] Error 1 > I have gcc-2.95.1 for my compiler that I downloaded from www.sunfreeware.com. We try to compile the perl interface using the same compiler and switches that the Perl installation claims should be used. Apparently you are using a prebuilt Perl installation that was built with Sun's compiler. Those switches won't work with gcc. Best solution IMHO is to rebuild Perl from source using your gcc. (While you are at it, you might want to request a shared libperl be built, so that you can build plperl.) regards, tom lane