--enable-perl doesn't like Solaris

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: --enable-perl doesn't like Solaris
Date: 2001-03-25 14:05:59
Message-ID: 200103251405.f2PE5xp73099@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Justin Clift (jclift(at)iprimus(dot)com(dot)au) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
--enable-perl doesn't like Solaris

Long Description
When testing which 7.1RC1 options are working on Solaris 8 SPARC, I've come across this when using --enable-perl.

It appears that the ./configure script is defining -KPIC somewhere in the perl interface stuff, and this is causing the "make" to bomb out. I'm pretty sure from memory that -KPIC is not something that gcc on Solaris likes, and will need to be -fPIC -shared or something else.

Please note, on this system 'cc' is a soft link to gcc, for those times I forget to set CC (like this time).

Sample Code
./configure --p=/opt/postgresql71 --enable-syslog --with-openssl=/opt/openssl --with-python --with-perl

<snip of successful ./configure stuff>
<snip of general make stuff>
make[3]: Leaving directory `/archive/install/postgresql-7.1RC1/src/interfaces/libpgeasy'
make[3]: Entering directory `/archive/install/postgresql-7.1RC1/src/interfaces/perl5'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/archive/install/postgresql-7.1RC1/src/interfaces/libpq'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/archive/install/postgresql-7.1RC1/src/interfaces/libpq'
make -f Makefile all
make[4]: Entering directory `/archive/install/postgresql-7.1RC1/src/interfaces/perl5'
cc -c -I../libpq -I../../include -xO3 -xdepend -DVERSION=\"1.8.0\" -DXS_VERSION=\"1.8.0\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE Pg.c
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: Pg.c: linker input file unused since linking not done
Running Mkbootstrap for Pg ()
chmod 644 Pg.bs
LD_RUN_PATH="/archive/install/postgresql-7.1RC1/src/interfaces/perl5/../libpq" cc -o blib/arch/auto/Pg/Pg.so -R/archive/install/postgresql-7.1RC1/src/interfaces/perl5/../libpq -G Pg.o -L/archive/install/postgresql-7.1RC1/src/interfaces/perl5/../libpq -lpq
cc: Pg.o: No such file or directory
make[4]: *** [blib/arch/auto/Pg/Pg.so] Error 1
make[4]: Leaving directory `/archive/install/postgresql-7.1RC1/src/interfaces/perl5'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/archive/install/postgresql-7.1RC1/src/interfaces/perl5'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/archive/install/postgresql-7.1RC1/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/archive/install/postgresql-7.1RC1/src'
make: *** [all] Error 2
$

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-25 14:13:55 Re: Various bugs with PG7.1 8th March snapshot on Solaris 8 INTEL
Previous Message Justin Clift 2001-03-25 13:09:16 Re: Various bugs with PG7.1 8th March snapshot on Solaris 8INTEL