Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27922 - sysklogd fails if log-file > 2 GB
Summary: sysklogd fails if log-file > 2 GB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on: 14606
Blocks:
  Show dependency tree
 
Reported: 2003-09-04 06:31 UTC by Ole Tange
Modified: 2003-09-09 10:40 UTC (History)
0 users

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


Attachments
Patch for ebuild that fixes 31 bit limit (fil,219 bytes, patch)
2003-09-04 06:32 UTC, Ole Tange
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Tange 2003-09-04 06:31:08 UTC
When /var/log/syslog raises above 2 GB syslogd stops. 
 

Reproducible: Always
Steps to Reproduce:
1. Syslog 2 GB data 
2. See /var/log/syslog not expand 
 
Actual Results:  
/var/log/syslog did not expand
Comment 1 Ole Tange 2003-09-04 06:32:33 UTC
Created attachment 17058 [details, diff]
Patch for ebuild that fixes 31 bit limit

The fix is to use -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE when compiling.
Comment 2 Ole Tange 2003-09-04 06:33:55 UTC
The fix is to use: -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE  
Here is a patch:  
  
diff sysklogd-1.4.1-r4.ebuild sysklogd-1.4.1-r4.ebuild~  
19,20c19  
<       sed -e "s:-O3:${CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE:"  
Makefile.orig > Makefile  
< #     sed -e "s:-O3:${CFLAGS}:" Makefile.orig > Makefile  
---  
>       sed -e "s:-O3:${CFLAGS}:" Makefile.orig > Makefile  
  
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-09-09 10:40:56 UTC
fixed in cvs 

thx