pg.ddx.io pgsql-interfaces@postgresql.org mailing list archivehelp / color / mirror / Atom feed
PERL/POSTGRESQL HELP 2+ messages / 2 participants [nested] [flat]
* PERL/POSTGRESQL HELP @ 2002-07-10 12:49 Ryan Hairyes <rhairyes@lee.k12.nc.us> 2002-07-10 13:54 ` Re: PERL/POSTGRESQL HELP Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: Ryan Hairyes @ 2002-07-10 12:49 UTC (permalink / raw) To: pgsql-interfaces Hello all, Last week I emailed this list with this same question. However, our mail server crashed and we are now just getting back up. Anyway, here is my situation again: 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. Any help on this problem is greatly appreciated. Ryan ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PERL/POSTGRESQL HELP 2002-07-10 12:49 PERL/POSTGRESQL HELP Ryan Hairyes <rhairyes@lee.k12.nc.us> @ 2002-07-10 13:54 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2002-07-10 13:54 UTC (permalink / raw) To: Ryan Hairyes <rhairyes@lee.k12.nc.us>; +Cc: pgsql-interfaces Ryan Hairyes <rhairyes@lee.k12.nc.us> 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-07-10 13:54 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2002-07-10 12:49 PERL/POSTGRESQL HELP Ryan Hairyes <rhairyes@lee.k12.nc.us> 2002-07-10 13:54 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox