Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Lighttpd and PCRE
@ 2008-09-17  9:28 Nick Peirson
  2008-09-17 15:03 ` Nick Peirson
  2008-09-17 21:35 ` Peter Korsgaard
  0 siblings, 2 replies; 6+ messages in thread
From: Nick Peirson @ 2008-09-17  9:28 UTC (permalink / raw)
  To: buildroot

Hi,

I'm fairly new to buildroot and cross compiling in general and I've 
encountered some problems getting PCRE support enabled in lighttpd.

Initially PCRE was failing to compile complaining of an unknown option 
-N, which I tracked down to the the line in the PCRE Makefile:

STRIP = true -Not_stripping

Commenting this out allow PCRE to compile, however lighttpd failed to 
compile with an error regarding libc.so.6 conflicting with with 
libc.so.0. A quick find through my buildroot environment showed no 
instances of libc.so.6, however it was present on my host system. In an 
attempt to fix it I changed the line:

PCRE_LIB = -L/usr/lib -lpcre

to

PCRE_LIB = -lpcre

The compilation now proceeded without errors, however I'm still 
receiving an error from lighttpd that it's not been compiled with PCRE 
support.

As I understand it, the sysroot argument, which is present and correct, 
should make that -L/usr/lib entry relative to the value provided by 
sysroot, however it still seemed to be finding libc.so.6 from the host 
system. Am I misunderstanding the sysroot argument or is somethign elses 
going on? Also, I thought that removing -L/usr/lib and leaving in -lpcre 
would still link it against PCRE, however, when running it, it's still 
claiming there's no PCRE support. Should I be loking for a problem in 
lighttpd, where the compilation error occured, or has the problem 
already been introduced during the compilation of PCRE?

Due to my lack of experience with buildroot, I'm not sure if this is 
something I've done wrong or if it's a bug with buildroot/lighttpd/pcre, 
but any help either way would be greatly appreciated.

Thanks
Nick

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Lighttpd and PCRE
  2008-09-17  9:28 [Buildroot] Lighttpd and PCRE Nick Peirson
@ 2008-09-17 15:03 ` Nick Peirson
  2008-09-17 21:35 ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Nick Peirson @ 2008-09-17 15:03 UTC (permalink / raw)
  To: buildroot

I seem to have pinned down the cause of my problems. Looking through the 
lighttpd config.log I noticed it was using g++ from the host system. A 
slightly brute force approach of chmod'ding g++ to 000, make 
lighttpd-clean, make pcre-clean and then running make again seems to 
have solved the problem.

I'd be interested to know why it was using g++ from the host system, and 
if there's a better solution than my brute force approach to fixing it?

Let me know if there's any more information I can provide to help 
diagnose the cause of this.

Thanks
Nick

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Lighttpd and PCRE
  2008-09-17  9:28 [Buildroot] Lighttpd and PCRE Nick Peirson
  2008-09-17 15:03 ` Nick Peirson
@ 2008-09-17 21:35 ` Peter Korsgaard
  2008-09-18  7:59   ` Nick Peirson
  1 sibling, 1 reply; 6+ messages in thread
From: Peter Korsgaard @ 2008-09-17 21:35 UTC (permalink / raw)
  To: buildroot

>>>>> "Nick" == Nick Peirson <nick@netcentral.co.uk> writes:

 Nick> Hi,

 Nick> I'm fairly new to buildroot and cross compiling in general and
 Nick> I've encountered some problems getting PCRE support enabled in
 Nick> lighttpd.

 Nick> Initially PCRE was failing to compile complaining of an unknown
 Nick> option -N, which I tracked down to the the line in the PCRE
 Nick> Makefile:

 Nick> STRIP = true -Not_stripping

Hmm, do you have BR2_STRIP_none set?

 Nick> Commenting this out allow PCRE to compile, however lighttpd
 Nick> failed to compile with an error regarding libc.so.6 conflicting
 Nick> with with libc.so.0. A quick find through my buildroot
 Nick> environment showed no instances of libc.so.6, however it was
 Nick> present on my host system. In an attempt to fix it I changed
 Nick> the line:

Yeah, that's caused by pcre-config returning /usr/lib instead of
$(STAGING_DIR)/usr/lib - I've fixed that now.

With those fixes pcre/lighttpd builds for me (arm9) - Does it still
not work for you?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot]  Lighttpd and PCRE
  2008-09-17 21:35 ` Peter Korsgaard
@ 2008-09-18  7:59   ` Nick Peirson
  2008-09-18  8:49     ` Nick Peirson
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Peirson @ 2008-09-18  7:59 UTC (permalink / raw)
  To: buildroot

Peter Korsgaard wrote:
>  Nick> Initially PCRE was failing to compile complaining of an unknown
>  Nick> option -N, which I tracked down to the the line in the PCRE
>  Nick> Makefile:
>
>  Nick> STRIP = true -Not_stripping
>
> Hmm, do you have BR2_STRIP_none set?
>   
Yes, however this is the only package I'm compiling that's complaining 
about it?
> Yeah, that's caused by pcre-config returning /usr/lib instead of
> $(STAGING_DIR)/usr/lib - I've fixed that now.
>
> With those fixes pcre/lighttpd builds for me (arm9) - Does it still
> not work for you?
I'm recompiling now. Thanks for looking at this so quickly, I'll let you 
know if that fixes it.

Thanks
Nick

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Lighttpd and PCRE
  2008-09-18  7:59   ` Nick Peirson
@ 2008-09-18  8:49     ` Nick Peirson
  2008-09-18  8:58       ` Peter Korsgaard
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Peirson @ 2008-09-18  8:49 UTC (permalink / raw)
  To: buildroot

Nick Peirson wrote:
> Peter Korsgaard wrote:
>   
>> Yeah, that's caused by pcre-config returning /usr/lib instead of
>> $(STAGING_DIR)/usr/lib - I've fixed that now.
>>
>> With those fixes pcre/lighttpd builds for me (arm9) - Does it still
>> not work for you?
>>     
> I'm recompiling now. Thanks for looking at this so quickly, I'll let you
> know if that fixes it.

lighttpd is now compiling happily and running with PCRE support. Thank 
you very much for your help!

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080918/88f790e5/attachment.htm 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Lighttpd and PCRE
  2008-09-18  8:49     ` Nick Peirson
@ 2008-09-18  8:58       ` Peter Korsgaard
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2008-09-18  8:58 UTC (permalink / raw)
  To: buildroot

>>>>> "Nick" == Nick Peirson <nick@netcentral.co.uk> writes:

Hi,

 Nick> lighttpd is now compiling happily and running with PCRE
 Nick> support. Thank you very much for your help!

You're welcome.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-18  8:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-17  9:28 [Buildroot] Lighttpd and PCRE Nick Peirson
2008-09-17 15:03 ` Nick Peirson
2008-09-17 21:35 ` Peter Korsgaard
2008-09-18  7:59   ` Nick Peirson
2008-09-18  8:49     ` Nick Peirson
2008-09-18  8:58       ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox