Project

General

Profile

Feature #1986

add posibility to activate pcre when cross-compiling

Added by maggu2810 about 7 years ago. Updated about 6 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2009-05-19
Due date:
% Done:

100%

Missing in 1.5.x:

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

lighttpd-1.4.21-cross-pcre_configure.in_.patch View (417 Bytes) maggu2810, 2009-05-19 07:03

lighttpd-1.4.21-cross-pcre_configure_.patch View (519 Bytes) maggu2810, 2009-05-19 07:03

Associated revisions

Revision 2511 (diff)
Added by stbuehler almost 7 years ago

Allow using pcre with cross-compiling (pcre-config got fixed; fixes #1986)

Revision cbec3739 (diff)
Added by stbuehler almost 7 years ago

Allow using pcre with cross-compiling (pcre-config got fixed; fixes #1986)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2511 152afb58-edef-0310-8abb-c4023f1b3aa9

Revision 2512 (diff)
Added by stbuehler almost 7 years ago

Allow using pcre with cross-compiling (pcre-config got fixed; fixes #1986)

History

#1 Updated by maggu2810 about 7 years ago

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

"Patch available" shoul be "Yes"

#2 Updated by stbuehler about 7 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?

#3 Updated by maggu2810 about 7 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."

#4 Updated by stbuehler almost 7 years ago

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

Applied in changeset r2511.

#5 Updated by lightning about 6 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.

#6 Updated by lightning about 6 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.

Also available in: Atom