Skip to contentSkip to conversation

Webserver

Buildroot Dan Pattison 4 participants 4 messages Feb 4, 2009 – Feb 6, 2009

lore
Share & tools
lore
#0 lore raw

Hello List:

We are using buildroot v2009.02 on a Fedora 10 linux distro. Our architecture is for Atmel AT91SAM9G20-EK development board. We want a more robust web server than the BOA or Busybox HTTPD. Our main requirement is to have the web server make a web browser (IE6, IE7, Firefox etc.) display a login/password box. It seems the two mentioned web servers do not support this.

Apache seems overkill for our needs, so we wanted to try Cherokee-0.98.1: http://www.cherokee-project.com/

Using /buildroot/scripts/add_new_package.wizard we are able to make our package show up in the make menuconfig configurator utility. When we do a make from the top level directory we can see Cherokee gets downloaded and starts to compile, but it errors out with these errors below:

spawn-fcgi.o: In function
`fcgi_spawn_connection':

spawn-fcgi.c:(.text+0x340): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit
status

make[3]: *** [spawn-fcgi] Error
1

make[3]: Leaving directory `/home/ethertek/rms200/buildroot/build_arm/cherokee-0.98.1/contrib'

make[2]: *** [all-recursive] Error
1

make[2]: Leaving directory `/home/ethertek/rms200/buildroot/build_arm/cherokee-0.98.1'

make[1]: *** [all] Error
2

make[1]: Leaving directory `/home/ethertek/rms200/buildroot/build_arm/cherokee-0.98.1'

make: *** [/home/ethertek/rms200/buildroot/build_arm/cherokee-0.98.1/.stamp_built] Error 2

We can see the error: undefined reference to `rpl_malloc', but being new to cross compiling, we do not know how to fix it.

Can someone please help us get cherokee to compile for our architecture?

Also, when using the add_new_package.wizard, how do you know when to select "Does autoreconf need to be run first?". It did not seem to matter in the case of cross compiling Cherokee-0.98.1

Lastly, does anyone know of a different web server for Buildroot that will make the most common web browsers (IE6, IE7, Firefox etc) pop up the username/password box?

Thank you, and Best Regards,
Dan Pattison

#1 lore raw

I'm using thttpd for a project to do this. Doesn't have a lot of features but basic HTTP auth is one of them. It's included in the list of supported packages in Buildroot.

Simon

-----Original Message-----
From: [email protected] [mailto:buildroot-bounces at busybox.net] On Behalf Of Dan Pattison
Sent: 04 February 2009 16:25
To: buildroot at busybox.net
Subject: [Buildroot] Webserver

Hello List:

We are using buildroot v2009.02 on a Fedora 10 linux distro. Our architecture is for Atmel AT91SAM9G20-EK development board. We want a more robust web server than the BOA or Busybox HTTPD. Our main requirement is to have the web server make a web browser (IE6, IE7, Firefox etc.) display a login/password box. It seems the two mentioned web servers do not support this.

Apache seems overkill for our needs, so we wanted to try Cherokee-0.98.1: http://www.cherokee-project.com/

Using /buildroot/scripts/add_new_package.wizard we are able to make our package show up in the make menuconfig configurator utility. When we do a make from the top level directory we can see Cherokee gets downloaded and starts to compile, but it errors out with these errors below:

spawn-fcgi.o: In function
`fcgi_spawn_connection':

spawn-fcgi.c:(.text+0x340): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit
status

make[3]: *** [spawn-fcgi] Error
1

make[3]: Leaving directory `/home/ethertek/rms200/buildroot/build_arm/cherokee-0.98.1/contrib'

make[2]: *** [all-recursive] Error
1

make[2]: Leaving directory `/home/ethertek/rms200/buildroot/build_arm/cherokee-0.98.1'

make[1]: *** [all] Error
2

make[1]: Leaving directory `/home/ethertek/rms200/buildroot/build_arm/cherokee-0.98.1'

make: *** [/home/ethertek/rms200/buildroot/build_arm/cherokee-0.98.1/.stamp_built] Error 2

We can see the error: undefined reference to `rpl_malloc', but being new to cross compiling, we do not know how to fix it.

Can someone please help us get cherokee to compile for our architecture?

Also, when using the add_new_package.wizard, how do you know when to select "Does autoreconf need to be run first?". It did not seem to matter in the case of cross compiling Cherokee-0.98.1

Lastly, does anyone know of a different web server for Buildroot that will make the most common web browsers (IE6, IE7, Firefox etc) pop up the username/password box?

Thank you, and Best Regards,
Dan Pattison
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#2 lore raw
In reply to Dan Pattison
Quoted 2 lines · Dan Pattison

spawn-fcgi.c:(.text+0x340): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status

[...]

Quoted 2 lines

We can see the error: undefined reference to `rpl_malloc', but being new to cross compiling, we do not know how to fix it.

I've got a similar problem with a local package here. I put the following in xxx_CONF_OPT (xxx being the package prefix in the .mk):

xxx_CONF_OPT = ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes

Quoted 3 lines

Also, when using the add_new_package.wizard, how do you know when to select "Does autoreconf need to be run first?". It did not seem to matter in the case of cross compiling Cherokee-0.98.1

It may still be needed on other architectures, but leave it off for now.

Quoted 3 lines

Lastly, does anyone know of a different web server for Buildroot that will make the most common web browsers (IE6, IE7, Firefox etc) pop up the username/password box?

Almost any web server should support basic authentication?

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
#3 lore raw
In reply to Dan Pattison
Quoted 6 lines · Dan Pattison

Lastly, does anyone know of a different web server for Buildroot that will make the most common web browsers (IE6, IE7, Firefox etc) pop up the username/password box?

Thank you, and Best Regards,
Dan Pattison

You could also use lighttpd, it's somewhat bigger than the others but it's feature-plenty.
It's already in buildroot, just enable the mod_auth module and you're set to go...
Regards.