Project

General

Profile

Piped Errorlog

Added by paras over 15 years ago

Hi,

I tried patching up the files from patch on the following link but ended up with following error during make

http://redmine.lighttpd.net/attachments/download/84/lighttpd-1.4.x-piperrorlog.patch

Patch command:

patch -p0 <lighttpd-1.4.x-piperrorlog.patch # shows following

patching file src/mod_cgi.c
Hunk #1 succeeded at 781 (offset 31 lines).
patching file src/base.h
Hunk #1 succeeded at 531 (offset 14 lines).
patching file src/mod_rrdtool.c
patching file src/log.c
Hunk #1 succeeded at 57 (offset 23 lines).
Hunk #2 succeeded at 81 (offset 22 lines).
Hunk #3 succeeded at 183 (offset 23 lines).
Hunk #4 succeeded at 215 with fuzz 2 (offset 19 lines).
Hunk #5 succeeded at 235 (offset 19 lines).
Hunk #6 succeeded at 329 with fuzz 2 (offset 28 lines).

log.c: In function âlog_error_openâ:
log.c:109: error: âfdâ undeclared (first use in this function)
log.c:109: error: (Each undeclared identifier is reported only once
log.c:109: error: for each function it appears in.)
make3: *** [log.o] Error 1

Details:
lighty version: lighttpd-1.4.20
OS:SUSE LINUX 10.1 (X86-64)
gcc version 4.1.0 (SUSE Linux)

Awaiting response in this regard.

Thank you.

-Paras


Replies (1)

RE: Piped Errorlog - Added by hoffie over 15 years ago

We at Gentoo have been shipping this patch for a while (and if I wasn't too lazy to make the patch a bit more generic, it would have been applied to the official sources already, probably).
This should work for lighty-1.4.20: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/lighttpd/files/1.4.20/03_all_lighttpd-1.4.11-errorlog-pipe.diff?rev=1.1&view=log

    (1-1/1)