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 ....

Reply via email to