[syslog-ng]largefile-problem with linux 2.4.18 / glibc 2.2.4

Jussi Silvennoinen mthd@mthd.net
Fri, 19 Apr 2002 16:15:29 +0300 (EEST)


Hello,

I'm having a problem with largefile-support with syslog-ng 1.5.16 on 
redhat 7.2 with all all updates as of April 19 installed.
Log-partition is a 300gb hardware raid5 through an AMI Megaraid Elite 
1600, filesystem is XFS dated 2002-03-04 with latest userspace-utils 
installed.

Other software installed on the box have no problems with 
largefile-support.

Output of ./configure and make

[root@gull syslog-ng-1.5.16]# ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether build environment is sane... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for bison... bison -y
checking how to run the C preprocessor... gcc -E
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking whether make sets ${MAKE}... (cached) yes
checking for ANSI C header files... yes
checking for malloc.h... yes
checking for unistd.h... yes
checking for door.h... no
checking for stropts.h... yes
checking for sys/strlog.h... no
checking for stdarg.h... yes
checking for sys/klog.h... yes
checking for working const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for modern utmp... yes
checking whether to compile klogctl... yes
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking for I_CONSLOG... no
checking for O_LARGEFILE... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for door_create in -ldoor... no
checking for select... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strerror... yes
checking for inet_aton... yes
checking for strncpy... yes
checking for getutent... yes
checking for getopt_long... yes
checking for strcasecmp... yes
checking for strptime... yes
checking whether to enable Sun STREAMS support... no
checking whether to enable Sun door support... no
checking whether to enable TCP wrapper support... no
checking libol version >= 0.3.2... ok
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating src/tests/Makefile
creating doc/Makefile
creating doc/sgml/Makefile
creating contrib/Makefile
creating utils/Makefile
sed: can't read 
/usr/local/src/testifoo/syslog-ng-1.5.16/utils/Makefile.in: No such file 
or directory
creating syslog-ng.spec
creating src/config.h

[root@gull syslog-ng-1.5.16]# make
Making all in src
make[1]: Entering directory `/usr/local/src/testifoo/syslog-ng-1.5.16/src'
cd /usr/local/src/testifoo/syslog-ng-1.5.16 && autoheader
make  all-recursive
make[2]: Entering directory `/usr/local/src/testifoo/syslog-ng-1.5.16/src'
Making all in .
make[3]: Entering directory `/usr/local/src/testifoo/syslog-ng-1.5.16/src'
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c main.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c sources.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c center.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c filters.c
filters.c: In function `do_filter_call':
filters.c:342: warning: implicit declaration of function `memcmp'
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c destinations.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c log.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c cfgfile.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c cfg-grammar.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c cfg-lex.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c affile.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afsocket.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afunix.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afinet.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afinter.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afuser.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afstreams.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afprogram.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c afremctrl.c
afremctrl.c: In function `do_handle_afremctrl_dest':
afremctrl.c:56: warning: implicit declaration of function `strcmp'
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c nscache.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c utils.c
gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/testifoo/syslog-ng-1.5.16/src -I.     
-g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c syslog-names.c
gcc  -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE  -o syslog-ng  
main.o sources.o center.o filters.o destinations.o log.o cfgfile.o 
cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o 
afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o 
syslog-names.o  -lfl /usr/local/lib/libol.a -lnsl
make[3]: Leaving directory `/usr/local/src/testifoo/syslog-ng-1.5.16/src'
Making all in tests
make[3]: Entering directory 
`/usr/local/src/testifoo/syslog-ng-1.5.16/src/tests'
gcc -DHAVE_CONFIG_H -I. 
-I/usr/local/src/testifoo/syslog-ng-1.5.16/src/tests -I../../src     -g 
-O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c test_nscache.c
gcc  -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE  -o 
test_nscache  test_nscache.o ../nscache.o -lfl /usr/local/lib/libol.a 
-lnsl
make[3]: Leaving directory 
`/usr/local/src/testifoo/syslog-ng-1.5.16/src/tests'
make[2]: Leaving directory `/usr/local/src/testifoo/syslog-ng-1.5.16/src'
make[1]: Leaving directory `/usr/local/src/testifoo/syslog-ng-1.5.16/src'
Making all in doc
make[1]: Entering directory `/usr/local/src/testifoo/syslog-ng-1.5.16/doc'
Making all in sgml
make[2]: Entering directory 
`/usr/local/src/testifoo/syslog-ng-1.5.16/doc/sgml'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory 
`/usr/local/src/testifoo/syslog-ng-1.5.16/doc/sgml'
make[2]: Entering directory `/usr/local/src/testifoo/syslog-ng-1.5.16/doc'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/usr/local/src/testifoo/syslog-ng-1.5.16/doc'
make[1]: Leaving directory `/usr/local/src/testifoo/syslog-ng-1.5.16/doc'
Making all in contrib
make[1]: Entering directory 
`/usr/local/src/testifoo/syslog-ng-1.5.16/contrib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
`/usr/local/src/testifoo/syslog-ng-1.5.16/contrib'
make[1]: Entering directory `/usr/local/src/testifoo/syslog-ng-1.5.16'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/usr/local/src/testifoo/syslog-ng-1.5.16'
 
>From this I would assume that it would support largefiles, however it
appears it does not.

[root@gull syslog-ng-1.5.16]# src/syslog-ng -d
io.c: listening on fd 3
io.c: Preparing fd 4 for reading
syslog-ng version 1.5.16 starting
io.c: Preparing fd 5 for writing
io.c: Preparing fd 6 for writing
io.c: Preparing fd 7 for writing
io.c: Preparing fd 8 for writing
io.c: Preparing fd 9 for writing
File size limit exceeded

[root@gull syslog-ng-1.5.16]# ls -l /data/syslog/mail.log 
-rw-rw----    1 root     root     2147483647 Apr 18 21:54 
/data/syslog/mail.log 

Any ideas how to proceed solving this problem?
I am currently running syslog-ng 1.4.14 on Solaris 8 without any problems 
regarding largefile-support.

-- 

  Jussi