Re: Build error on CentOS 5.5 x86_64 with PCRE support

2011-04-01 Thread g...@desgames.com
Yep, this is also true. But in my case I just had to point it to the
right lib directory.

Thanks for the heads up though, John
Guy

On Fri, Apr 1, 2011 at 7:11 PM, John T Skarbek
johnskar...@informed-llc.com wrote:
 Hey guys,

 I ran into this during my initial testing  I run the same OS.  To solve it I 
 had installed the pcre-devel package.  Hope that helps.

 John T Skarbek


 - Original Message -
 From: g...@desgames.com
 To: jer...@hinegardner.org, haproxy@formilux.org
 Sent: Thursday, March 31, 2011 11:28:41 PM
 Subject: Re: Build error on CentOS 5.5 x86_64 with PCRE support

 Good to know, thanks Jeremy.

 Cheers,
 Guy

 On Thu, Mar 31, 2011 at 6:05 PM, Jeremy Hinegardner
 jer...@hinegardner.org wrote:
 On Thu, Mar 31, 2011 at 10:37:22AM -0700, g...@desgames.com wrote:
 Hi all,

 I got an error while trying to build haproxy 1.4 on a system running
 CentOS 5.5 x86_64. I have both the i386 and x86_64 versions of pcre
 installed, but if I try to build haproxy using ARCH=x86_64 with PCRE
 support, I get the following errors right at the end of the process:

 /usr/bin/ld: skipping incompatible /usr/lib/libpcreposix.so when
 searching for -lpcreposix
 /usr/bin/ld: skipping incompatible /usr/lib/libpcreposix.a when
 searching for -lpcreposix
 /usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for 
 -lpcre
 /usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for 
 -lpcre

 If I compile it in 32-bit mode with ARCH=i386 then it works and
 doesn't give me those errors. The latest version of PCRE available on
 CentOS 5.5 is 6.6. Does anyone know how I can get it to build with
 PCRE support on my 64-bit system?

 You may also use the EPEL yum repo and install haproxy from it.  It is not at
 the latests 1.4.14 but will be in a few weeks when I get it updated.

    http://fedoraproject.org/wiki/EPEL

 enjoy,

 -jeremy

 --
 
  Jeremy Hinegardner                              jer...@hinegardner.org






 --
 Guy Knights
 Systems Administrator
 DES Games
 www.desgames.com
 g...@desgames.com





-- 
Guy Knights
Systems Administrator
DES Games
www.desgames.com
g...@desgames.com



Build error on CentOS 5.5 x86_64 with PCRE support

2011-03-31 Thread g...@desgames.com
Hi all,

I got an error while trying to build haproxy 1.4 on a system running
CentOS 5.5 x86_64. I have both the i386 and x86_64 versions of pcre
installed, but if I try to build haproxy using ARCH=x86_64 with PCRE
support, I get the following errors right at the end of the process:

/usr/bin/ld: skipping incompatible /usr/lib/libpcreposix.so when
searching for -lpcreposix
/usr/bin/ld: skipping incompatible /usr/lib/libpcreposix.a when
searching for -lpcreposix
/usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for -lpcre
/usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for -lpcre

If I compile it in 32-bit mode with ARCH=i386 then it works and
doesn't give me those errors. The latest version of PCRE available on
CentOS 5.5 is 6.6. Does anyone know how I can get it to build with
PCRE support on my 64-bit system?

Thanks,
Guy



Re: Build error on CentOS 5.5 x86_64 with PCRE support

2011-03-31 Thread kai

Hi,

do you need shared pcre? if not, try USE_STATIC_PCRE=1 then.


Cheers,

Kai



Re: Build error on CentOS 5.5 x86_64 with PCRE support

2011-03-31 Thread James Bardin
On Thu, Mar 31, 2011 at 1:37 PM, g...@desgames.com g...@desgames.com wrote:

 /usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for 
 -lpcre
 /usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for 
 -lpcre


It's looking in /usr/lib, which only 32bit.
Try forcing it with USE_PCRE=1 and PCREDIR=/usr/lib64

-jim



Re: Build error on CentOS 5.5 x86_64 with PCRE support

2011-03-31 Thread Jeremy Hinegardner
On Thu, Mar 31, 2011 at 10:37:22AM -0700, g...@desgames.com wrote:
 Hi all,
 
 I got an error while trying to build haproxy 1.4 on a system running
 CentOS 5.5 x86_64. I have both the i386 and x86_64 versions of pcre
 installed, but if I try to build haproxy using ARCH=x86_64 with PCRE
 support, I get the following errors right at the end of the process:
 
 /usr/bin/ld: skipping incompatible /usr/lib/libpcreposix.so when
 searching for -lpcreposix
 /usr/bin/ld: skipping incompatible /usr/lib/libpcreposix.a when
 searching for -lpcreposix
 /usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for 
 -lpcre
 /usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for 
 -lpcre
 
 If I compile it in 32-bit mode with ARCH=i386 then it works and
 doesn't give me those errors. The latest version of PCRE available on
 CentOS 5.5 is 6.6. Does anyone know how I can get it to build with
 PCRE support on my 64-bit system?

You may also use the EPEL yum repo and install haproxy from it.  It is not at
the latests 1.4.14 but will be in a few weeks when I get it updated.

http://fedoraproject.org/wiki/EPEL

enjoy,

-jeremy

-- 

 Jeremy Hinegardner  jer...@hinegardner.org 




Re: Build error on CentOS 5.5 x86_64 with PCRE support

2011-03-31 Thread g...@desgames.com
Good to know, thanks Jeremy.

Cheers,
Guy

On Thu, Mar 31, 2011 at 6:05 PM, Jeremy Hinegardner
jer...@hinegardner.org wrote:
 On Thu, Mar 31, 2011 at 10:37:22AM -0700, g...@desgames.com wrote:
 Hi all,

 I got an error while trying to build haproxy 1.4 on a system running
 CentOS 5.5 x86_64. I have both the i386 and x86_64 versions of pcre
 installed, but if I try to build haproxy using ARCH=x86_64 with PCRE
 support, I get the following errors right at the end of the process:

 /usr/bin/ld: skipping incompatible /usr/lib/libpcreposix.so when
 searching for -lpcreposix
 /usr/bin/ld: skipping incompatible /usr/lib/libpcreposix.a when
 searching for -lpcreposix
 /usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for 
 -lpcre
 /usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for 
 -lpcre

 If I compile it in 32-bit mode with ARCH=i386 then it works and
 doesn't give me those errors. The latest version of PCRE available on
 CentOS 5.5 is 6.6. Does anyone know how I can get it to build with
 PCRE support on my 64-bit system?

 You may also use the EPEL yum repo and install haproxy from it.  It is not at
 the latests 1.4.14 but will be in a few weeks when I get it updated.

    http://fedoraproject.org/wiki/EPEL

 enjoy,

 -jeremy

 --
 
  Jeremy Hinegardner                              jer...@hinegardner.org






-- 
Guy Knights
Systems Administrator
DES Games
www.desgames.com
g...@desgames.com