Project

General

Profile

Actions

Feature #1986

closed

add posibility to activate pcre when cross-compiling

Added by maggu2810 over 12 years ago. Updated over 11 years ago.

Status:
Fixed
Priority:
Normal
Category:
-
Target version:
ASK QUESTIONS IN Forums:

Description

The support for pcre is deactivated when lighttpd is cross compiled. But it should work in that case, too.

I attached a patch for configure.in
When someone whould like to use ptxdist to build a root filesystem, the file configure must be patched (also attached).


Files

Actions #1

Updated by maggu2810 over 12 years ago

  • Target version set to 1.4.21
  • % Done changed from 0 to 40

"Patch available" shoul be "Yes"

Actions #2

Updated by stbuehler over 12 years ago

  • Target version changed from 1.4.21 to 1.4.23

Target version != affected version.

I guess there was a reason why this was disabled; did you test cross-compiling for pcre works at least for you?

Actions #3

Updated by maggu2810 over 12 years ago

I guess there was a reason why this was disabled

Yes, that is plausible! ;-)

did you test cross-compiling for pcre works at least for you?

Yes, first I have built a rootfs with gentoos crossdev tools. After I have created the patch and applied it, lighttpd works with pcre.
Now I prepared ptxdist and also here the patch is working.

I found a comment in ptxdist patchset (they have a patch for 1.4.20):
"lighttpd thinks that pcre-config cannot be used when cross-compiling,
but lfu fixed pcre-config up, so that we can use it."

Actions #4

Updated by stbuehler over 12 years ago

  • Status changed from New to Fixed
  • % Done changed from 40 to 100

Applied in changeset r2511.

Actions #5

Updated by lightning over 11 years ago

I'm not sure that this fix is fixing all cases. I have crosstools-ng toolchain and configure is incapable of finding the correct pcre-config or libpcre.

tested with pcre 7.9 and 8.0.2 , same result.

configure thinks it's found it but always takes the build systems pcre not the target one. I removed the build pcre-config to catch the error earlier. If not make then fails with incompatible files having gone to the wrong place.

... skipping incompatible /lib/libpcre.so.0 when searching for /lib/libpcre.so.0

CFLAGS="$CFLAGS -I$NFSROOT/usr/include " ./configure --prefix=/usr --host=arm-maverick-linux-gnueabi  LDFLAGS="-L$NFSROOT/usr/lib -L$NFSROOT/lib"   --disable-lfs   --with-gnu-ld --disable-ipv6 --without-bzip2

neither does PCRECONFIG=$NFSROOT/usr/lib or PCRECONFIG=$NFSROOT/usr/bin fix it.

Since this issue is supposed to be fixed, maybe I've just wasted two days searching and not managed to find the right incantation.

If that is the case please make it available somewhere since standard use of configure simply isnot enought.

Thanks.

Actions #6

Updated by lightning over 11 years ago

I should add that PCRECONFIG=$NFSROOT/usr/bin does allow it to find pcre-config but it then set PCRELIB='' and disables the feature.

Actions

Also available in: Atom