* ulogd large file support
@ 2007-06-19 13:30 Andreas Lundin
2007-06-19 13:36 ` Patrick McHardy
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Lundin @ 2007-06-19 13:30 UTC (permalink / raw)
To: netfilter-devel
Hi,
ulogd seems to be missing large file support. Here is a simple patch
to make configure handle it, but there is a line that is commented in
Rules.make.in which will prevent the option to be used during compile
time (search for @DEFS@ in Rules.make.in).
I compiled ulogd-1.24 with -D_FILE_OFFSET_BITS=64 and it can now write
to log files larger than 2G on my system.
Regards
Andreas Lundin
This patch is for ulogd-1.24 but the patch is so trivial that it is
probably easier to apply with an editor :-)
--- configure.in 2005-11-25 20:58:27.000000000 +0100
+++ configure.in 2007-06-19 15:09:22.000000000 +0200
@@ -20,6 +20,7 @@
AC_C_CONST
AC_TYPE_SIZE_T
AC_STRUCT_TM
+AC_SYS_LARGEFILE
dnl Checks for library functions.
AC_FUNC_VPRINTF
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ulogd large file support
2007-06-19 13:30 ulogd large file support Andreas Lundin
@ 2007-06-19 13:36 ` Patrick McHardy
2007-06-19 13:57 ` Pablo Neira Ayuso
0 siblings, 1 reply; 4+ messages in thread
From: Patrick McHardy @ 2007-06-19 13:36 UTC (permalink / raw)
To: Andreas Lundin; +Cc: netfilter-devel
Andreas Lundin wrote:
> ulogd seems to be missing large file support. Here is a simple patch
> to make configure handle it, but there is a line that is commented in
> Rules.make.in which will prevent the option to be used during compile
> time (search for @DEFS@ in Rules.make.in).
>
> I compiled ulogd-1.24 with -D_FILE_OFFSET_BITS=64 and it can now write
> to log files larger than 2G on my system.
Applied, thanks. I've ran into this a couple of days ago with ulogd2,
so I've applied your patch there as well.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ulogd large file support
2007-06-19 13:36 ` Patrick McHardy
@ 2007-06-19 13:57 ` Pablo Neira Ayuso
2007-06-19 13:59 ` Patrick McHardy
0 siblings, 1 reply; 4+ messages in thread
From: Pablo Neira Ayuso @ 2007-06-19 13:57 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Andreas Lundin, netfilter-devel
Patrick McHardy wrote:
> Andreas Lundin wrote:
>> ulogd seems to be missing large file support. Here is a simple patch
>> to make configure handle it, but there is a line that is commented in
>> Rules.make.in which will prevent the option to be used during compile
>> time (search for @DEFS@ in Rules.make.in).
>>
>> I compiled ulogd-1.24 with -D_FILE_OFFSET_BITS=64 and it can now write
>> to log files larger than 2G on my system.
>
> Applied, thanks. I've ran into this a couple of days ago with ulogd2,
> so I've applied your patch there as well.
JFYI: I just applied another patch on top of it to check for autoconf >=
2.50 (required by AC_SYS_LARGEFILE), removed autogenerated
libipulog/Makefile from SVN and uncomment the @DEFS@ line in
Rules.make.in to pass -D_FILE_OFFSET_BITS=64 at compilation stage.
I'm still working with Marius Tomaschewski on several pending patches.
We'll release a new version once we've finish with them.
--
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ulogd large file support
2007-06-19 13:57 ` Pablo Neira Ayuso
@ 2007-06-19 13:59 ` Patrick McHardy
0 siblings, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2007-06-19 13:59 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: Andreas Lundin, netfilter-devel
Pablo Neira Ayuso wrote:
> Patrick McHardy wrote:
>
>>Andreas Lundin wrote:
>>
>>>ulogd seems to be missing large file support. Here is a simple patch
>>>to make configure handle it, but there is a line that is commented in
>>>Rules.make.in which will prevent the option to be used during compile
>>>time (search for @DEFS@ in Rules.make.in).
>>>
>>>I compiled ulogd-1.24 with -D_FILE_OFFSET_BITS=64 and it can now write
>>>to log files larger than 2G on my system.
>>
>>Applied, thanks. I've ran into this a couple of days ago with ulogd2,
>>so I've applied your patch there as well.
>
>
> JFYI: I just applied another patch on top of it to check for autoconf >=
> 2.50 (required by AC_SYS_LARGEFILE), removed autogenerated
> libipulog/Makefile from SVN and uncomment the @DEFS@ line in
> Rules.make.in to pass -D_FILE_OFFSET_BITS=64 at compilation stage.
I noticed that, thanks. autocrap remains a huge mystery for me.
> I'm still working with Marius Tomaschewski on several pending patches.
> We'll release a new version once we've finish with them.
Great, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-19 13:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 13:30 ulogd large file support Andreas Lundin
2007-06-19 13:36 ` Patrick McHardy
2007-06-19 13:57 ` Pablo Neira Ayuso
2007-06-19 13:59 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.