Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302012 - www-servers/bozohttpd - another 32 bit problem and new version
Summary: www-servers/bozohttpd - another 32 bit problem and new version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michele Noberasco (RETIRED)
URL: http://www.eterna.com.au/bozohttpd/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-24 05:43 UTC by ta2002
Modified: 2010-09-03 10:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2010-01-24 05:43:56 UTC
The latest version of bozohttpd in portage is 20060517.

There have been several releases since then. The current version is 20090522.

Even the latest version has an overflow with files larger than 2 GiB.

I contacted the maintainer, and he replied:

"run "getconf -a | grep LFS" and add the flags meantioning "64" to
the CFLAGS in Makefile.boot.  i don't have easy access to a 32 bit
linux system to test right now, but i'll make sure that this gets
handle by default in the future."

This leads to the following patch (which is probably just as easily done via sed):

--- Makefile.boot  2009-05-23 02:16:22.000000000 +0000
+++ Makefile.boot  2010-01-25 00:00:00.000000000 +0000
@@ -4,7 +4,7 @@
 # see Makefile for a list of compile options that may be placed in CFLAGS.

 CC=    cc
-CFLAGS=        -O
+CFLAGS=        -O -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE

 GROFF= groff -Tascii
 CRYPTOLIBDIR=  # -L/usr/local/lib

This works (using 20090522 at least) on a 32 bit machine I have. I don't know if you will need to alter the patch for other architectures.
Comment 1 Michele Noberasco (RETIRED) gentoo-dev 2010-09-03 10:03:08 UTC
Just added latest version (20100621) which apparently already includes the fix.