- From: Ben Hutchings <ben@decadentplace.org.uk>
- Date: Tue, 29 Nov 2005 22:25:55 +0000
- To: bancroft@america.net
- Cc: Arthur Smith <apsmith@aps.org>, libwww w3c <www-lib@w3.org>
- Message-Id: <1133303155.29270.8.camel@deadeye.i.decadentplace.org.uk>
Vic Bancroft wrote: > Arthur Smith wrote: <snip> > > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include > > -I../../modules/md5 -I../../modules/expat/lib > > -DW3C_ICONS=\"/home/jis/resdev/apsmith/share/w3c-libwww\" -g -O2 -Wall > > -MT HTBind.lo -MD -MP -MF .deps/HTBind.Tpo -c HTBind.c -o HTBind.o > > >/dev/null 2>&1 > > if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H > > -I. -I. -I../.. -I/usr/local/include -I../../modules/md5 > > -I../../modules/expat/lib > > -DW3C_ICONS=\"/home/jis/resdev/apsmith/share/w3c-libwww\" -g -O2 > > -Wall -MT HTFile.lo -MD -MP -MF ".deps/HTFile.Tpo" -c -o HTFile.lo > > HTFile.c; \ > > then mv -f ".deps/HTFile.Tpo" ".deps/HTFile.Plo"; else rm -f > > ".deps/HTFile.Tpo"; exit 1; fi > > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include > > -I../../modules/md5 -I../../modules/expat/lib > > -DW3C_ICONS=\"/home/jis/resdev/apsmith/share/w3c-libwww\" -g -O2 -Wall > > -MT HTFile.lo -MD -MP -MF .deps/HTFile.Tpo -c HTFile.c -fPIC -DPIC -o > > .libs/HTFile.o > > HTFile.c:702:2: #error "buffer size for readdir_r cannot be determined" > > HTFile.c: In function `HTFile_dirent_buf_size': > > HTFile.c:705: warning: implicit declaration of function `offsetof' <snip> Please note the list of headers at the top of the sample code I gave. On a POSIX-compliant system you should be including all of these: #include <sys/types.h> #include <dirent.h> #include <limits.h> #include <stddef.h> #include <unistd.h> It may be necessary to make some of them conditional on autoconf macros in order to support older Unix variants. > In any case, to get past the compile error, you could try to replace > line 702 with > > name_max = 4096; > > What do you think Ben ? First, fix the real problem. That may be useful as a fallback where the limits really aren't available. Ben. -- Ben Hutchings friends: People who know you well, but like you anyway.
Received on Tuesday, 29 November 2005 22:27:27 UTC