[pcre-dev] Compiling PCRE 8.38 on Solaris 64 bits (help plea…

Top Page
Delete this message
Author: Lucia Barrales
Date:  
To: pcre-dev@exim.org
Subject: [pcre-dev] Compiling PCRE 8.38 on Solaris 64 bits (help please)
 I have to compile PCRE 8.38 on Solaris 64 bits, but I get the next error after the gmake command:
ld: fatal: file ./.libs/libpcre.so: wrong ELF class: ELFCLASS64ld: fatal: file processing errors. No output written to .libs/libpcrecpp.so.0.0.1 collect2: ld returned 1 exit statusgmake[1]: *** [libpcrecpp.la] Error 1gmake[1]: Leaving directory `/usr/local/apache/httpd-2.4.17/pcre-8.37'gmake: *** [all] Error 2
The environment variables are fixed:export LDFLAGS=" -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/X/lib -R/usr/X/lib -L/usr/X11/lib -R/usr/X11/lib -L/usr/ccs/lib -R/usr/ccs/lib "
export PATH=/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/sfw/sbin
export LD_LIBRARY_PATH=/usr/lib:/usr/sfw/lib
export LD_LIBRARY_PATH_64=/usr/lib/64:/usr/sfw/lib/64
export CC=gcc
export CFLAGS=-m64
export CPP_FLAGS=-m64
Even I've tried:./configure CC="gcc -m64"
andmake LDFLAGS=-m64

But it's not working.

Have you got an idea what is the problem?
If I compile for 32 bits no problem.
Thanks in advance!!!