pl-perl for 64 bits in Solaris 9
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 ....
On 06/25/10 2:21 PM, MOLINA BRAVO FELIPE DE JESUS wrote:
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 applicationsI 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
I would use the SunStudio c/c++ compiler for Sun Sparc, especially 64bit
sparc. All the sun stuff is built with Sun Studio (/opt/SUNWspro/bin/cc
etc).
the perl thats built into solaris 9 is likely a little old, and may not
be 64bit, I'm not sure. k, on my sol9 sparc legacy test system(a V240),
/usr/bin/perl is 32bit. There is no /usr/bin/sparcv9/perl
so, you'll need to build your own 64bit perl if you want to link it to a
64bit postgres.
2010/6/25 John R Pierce <pierce@hogranch.com>
On 06/25/10 2:21 PM, MOLINA BRAVO FELIPE DE JESUS wrote:
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 applicationsI 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-libxsltI would use the SunStudio c/c++ compiler for Sun Sparc, especially 64bit
sparc. All the sun stuff is built with Sun Studio (/opt/SUNWspro/bin/cc
etc).the perl thats built into solaris 9 is likely a little old, and may not be
64bit, I'm not sure. k, on my sol9 sparc legacy test system(a V240),
/usr/bin/perl is 32bit. There is no /usr/bin/sparcv9/perl
original perl is 5.6. so i installed perl 5.8.9 for 64 bit ....and the error
is the same... maybe my error is with the compiler, it is "gcc" (3.4.6).
is it possible?
I try to downloaded SunStudio c/c++ compiler ... but it is not free... and
the administration don't have it
thaks
On 06/25/10 9:28 PM, Felipe de Jesús Molina Bravo wrote:
original perl is 5.6. so i installed perl 5.8.9 for 64 bit ....and the
error is the same... maybe my error is with the compiler, it is "gcc"
(3.4.6). is it possible?
where did this 64bit 5.8.9 come from?
I try to downloaded SunStudio c/c++ compiler ... but it is not
free... and the administration don't have it
it was free last time I looked. you just have to have a sunsolve
account to access it.
2010/6/25 John R Pierce <pierce@hogranch.com>
On 06/25/10 9:28 PM, Felipe de Jesús Molina Bravo wrote:
original perl is 5.6. so i installed perl 5.8.9 for 64 bit ....and the
error is the same... maybe my error is with the compiler, it is "gcc"
(3.4.6). is it possible?where did this 64bit 5.8.9 come from?
from cpan.... souces....it was compiled...
I try to downloaded SunStudio c/c++ compiler ... but it is not free... and
the administration don't have it
it was free last time I looked. you just have to have a sunsolve account
to access it.
I tried from
http://developers.sun.com/sunstudio/downloads/
it is an upgrade ..... and it is only for solaris 10. I will find old
version
thank's ....
Show quoted text
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
El 26 de junio de 2010 16:56, Felipe de Jesús Molina Bravo <
fjmolinabravo@gmail.com> escribió:
2010/6/25 John R Pierce <pierce@hogranch.com>
On 06/25/10 9:28 PM, Felipe de Jesús Molina Bravo wrote:
original perl is 5.6. so i installed perl 5.8.9 for 64 bit ....and the
error is the same... maybe my error is with the compiler, it is "gcc"
(3.4.6). is it possible?where did this 64bit 5.8.9 come from?
from cpan.... souces....it was compiled...
I try to downloaded SunStudio c/c++ compiler ... but it is not free...
and the administration don't have it
it was free last time I looked. you just have to have a sunsolve account
to access it.I tried from
http://developers.sun.com/sunstudio/downloads/it is an upgrade ..... and it is only for solaris 10. I will find old
versionwell.... after many problems i can install sunstudio 11; but now my problem
is:
- environment:
bash-2.05# echo $CC
/opt/SunStudio/bin/cc
bash-2.05# echo $CFLAGS
-xarch=v9 -O
- my configure was:
./configure --with-CC=/opt/SunStudio/bin/cc --with-perl --without-readline
- when i did make, got the next error:
make[3]: Entering directory
`/export/fmolina/pgsql/postgresql-8.4.4/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/export/fmolina/pgsql/postgresql-8.4.4/src/port'
/opt/SunStudio/bin/cc -Xa -xarch=v9 -O -xcode=pic13 -I../../src/include -c
-o zic.o zic.c
/opt/SunStudio/bin/cc -Xa -xarch=v9 -O -xcode=pic13 -I../../src/include -c
-o ialloc.o ialloc.c
/opt/SunStudio/bin/cc -Xa -xarch=v9 -O -xcode=pic13 -I../../src/include -c
-o scheck.o scheck.c
/opt/SunStudio/bin/cc -Xa -xarch=v9 -O -xcode=pic13 zic.o ialloc.o scheck.o
localtime.o -L../../src/port -Wl,-rpath,'/usr/local/pgsql/lib' -lpgport -lz
-lnsl -lrt -lsocket -ldl -lm -o zic
ld: fatal: option -dn and -P are incompatible
ld: fatal: Flags processing errors
make[2]: *** [zic] Error 1
make[2]: Leaving directory
`/export/fmolina/pgsql/postgresql-8.4.4/src/timezone'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/fmolina/pgsql/postgresql-8.4.4/src'
make: *** [all] Error 2
How can solve this problem?
thank's in advanced...
well.... after many problems i can install sunstudio 11; but now my
problem is:
- environment:
bash-2.05# echo $CC
/opt/SunStudio/bin/ccbash-2.05# echo $CFLAGS
-xarch=v9 -O- my configure was:
./configure --with-CC=/opt/SunStudio/bin/cc --with-perl --without-readline
- when i did make, got the next error:
make[3]: Entering directory
`/export/fmolina/pgsql/postgresql-8.4.4/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/export/fmolina/pgsql/postgresql-8.4.4/src/port'
/opt/SunStudio/bin/cc -Xa -xarch=v9 -O -xcode=pic13 -I../../src/include
-c -o zic.o zic.c
/opt/SunStudio/bin/cc -Xa -xarch=v9 -O -xcode=pic13 -I../../src/include
-c -o ialloc.o ialloc.c
/opt/SunStudio/bin/cc -Xa -xarch=v9 -O -xcode=pic13 -I../../src/include
-c -o scheck.o scheck.c
/opt/SunStudio/bin/cc -Xa -xarch=v9 -O -xcode=pic13 zic.o ialloc.o scheck.o
localtime.o -L../../src/port -Wl,-rpath,'/usr/local/pgsql/lib' -lpgport -lz
-lnsl -lrt -lsocket -ldl -lm -o zic
ld: fatal: option -dn and -P are incompatible
ld: fatal: Flags processing errors
make[2]: *** [zic] Error 1
make[2]: Leaving directory
`/export/fmolina/pgsql/postgresql-8.4.4/src/timezone'make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/fmolina/pgsql/postgresql-8.4.4/src'
make: *** [all] Error 2How can solve this problem?
Well, this problem was solved changed my PATH enviroment variable .... its
original value:
PATH="/export/fmolina/perl/bin:/opt/SunStudio/bin:/usr/bin:/usr/sbin:/usr/local/bin:."
was change for:
PATH="$PATH:/usr/ucb:"
and no more problem ....:)
regards....