pl-perl for 64 bits in Solaris 9

From: "MOLINA BRAVO FELIPE DE JESUS" <felipe(dot)molina(at)inegi(dot)org(dot)mx>
To: <pgsql-general(at)postgresql(dot)org>
Subject: pl-perl for 64 bits in Solaris 9
Date: 2010-06-25 21:21:23
Message-ID: 6BC99E262581EF4AA883FF3F47D0A1880D65C0@CORREOAGS02.inegi.gob.mx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi

I don't have experience with solaris. I know it is a 64 bits:

bash-2.05# isainfo -v
64-bit sparcv9 applications
32-bit sparc applications

I tried to compile postgres (Version of postgres: 8.4.4 ) with plperl for 64 bits. The options for the configure are:

/configure --with-CC=/usr/local/bin/gcc --with-perl --with-libxml --with-libxslt

but when I do "make" get the next message:

/port -L/usr/local/lib -o plpgsql.so
make[4]: Leaving directory `/export/fmolina/pgsql/postgresql-8.4.4/src/pl/plpgsql/src'
make[3]: Leaving directory `/export/fmolina/pgsql/postgresql-8.4.4/src/pl/plpgsql'
make[3]: Entering directory `/export/fmolina/pgsql/postgresql-8.4.4/src/pl/plperl'
/usr/local/bin/gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -fPIC -shared plperl.o spi_internal.o SPI.o -L/usr/lib/sparcv9 -L/usr/local/lib -L../../../src/port -L/usr/local/lib -m64 -lsocket -lnsl -ldl -lm -lc -Wl,-R'/usr/local/lib/perl5/5.8.9/sun4-solaris-64/CORE' -o plperl.so
ld: fatal: file plperl.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to plperl.so
collect2: ld returned 1 exit status
make[3]: *** [plperl.so] Error 1
make[3]: Leaving directory `/export/fmolina/pgsql/postgresql-8.4.4/src/pl/plperl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/export/fmolina/pgsql/postgresql-8.4.4/src/pl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/fmolina/pgsql/postgresql-8.4.4/src'
make: *** [all] Error 2

then i do:

bash-2.05# file src/pl/plperl/plperl.o
src/pl/plperl/plperl.o: ELF 32-bit MSB relocatable SPARC Version 1

My questions are:

is possible compile postgres with pl-perl for 64?

where i can read more about this problem?

thank's ....

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Felipe de Jesús Molina Bravo 2010-06-25 21:47:20 pl-perl for 64 bits in Solaris 9
Previous Message Ivan Sergio Borgonovo 2010-06-25 19:34:22 Re: Need Some Recent Information on the Differences between Postgres and MySql