Hi Lucia,

Am 24.02.2016 um 08:10 schrieb Lucia Barrales <[email protected]>:
>  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 „

These are the diretories for 32 bit libraries. Most certainly this is your 
issue.
Make sure to have all dependent libs in 64 bit and specify the corresponding
directories.

> 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

Do not set LD_LIBRARY_PATH and similar, you already have -R in LDFLAGS.

> export CC=gcc
> export CFLAGS=-m64
> export CPP_FLAGS=-m64

This is meaningless for preprocessing.

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

The problem is that you are mixing 32 and 64 bit libraries. For a more detailed
diagnosis your log is far too short. You can see detailed logs and flags for
Solaris at
  https://buildfarm.opencsw.org/buildbot/waterfall?category=pcre
for all kinds of builds.


Best regards

  — Dago

--
"You don't become great by trying to be great, you become great by wanting to 
do something,
and then doing it so hard that you become great in the process." - xkcd #896

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to