Bug#518858: tnftp: FTBFS: 'ARG_MAX' undeclared

2009-04-06 Thread peter green
+#ifndef ARG_MAX +#defineARG_MAX _SC_ARG_MAX +#endif + The above is clearly wrong, _SC_ARG_MAX is a selection parameter for sysconf not a usefull value in itself. If you want to go down this road it should be #ifndef ARG_MAX #define ARG_MAX (sysconf(_SC_ARG_MAX)) #endif

Bug#518858: tnftp: FTBFS: 'ARG_MAX' undeclared

2009-04-05 Thread Aníbal Monsalve Salazar
On Sun, Apr 05, 2009 at 04:27:27PM +1000, Anibal Monsalve Salazar wrote: >grep "ARG_MAX" /usr/include/linux/limits.h >#define ARG_MAX 131072/* # bytes of args + environ for exec() */ > >Why not just insert: > >#include > >to libnetbsd/glob.c? > >--- a/libnetbsd/glob.c 2007-07-23 21:45:51

Bug#518858: tnftp: FTBFS: 'ARG_MAX' undeclared

2009-04-04 Thread Aníbal Monsalve Salazar
On Sun, Apr 05, 2009 at 04:13:29AM +0100, peter green wrote: >I took this as a hint, read the sysconf manpage and replaced "ARG_MAX" >with "sysconf(_SC_ARG_MAX)" in libnetbsd/glob.c . This made the package >build sucessfully (I have not tested if it works though) grep "ARG_MAX" /usr/include/linux/

Bug#518858: tnftp: FTBFS: 'ARG_MAX' undeclared

2009-04-04 Thread peter green
tags 518858 +patch thanks A bit of grepping determined the following linux/limits.h defines an ARG_MAX however the various headers that include linux/limits.h explicitly state that the version from the linux kernel headers is wrong and explicitly undefine it. /usr/include/bits/xopen_lim.h st

Bug#518858: tnftp: FTBFS: 'ARG_MAX' undeclared

2009-03-08 Thread Daniel Schepler
Package: tnftp Version: 20070806-1 Severity: serious From my pbuilder build log: ... gcc -g -O2 -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -c strvis.c gcc -g -O2 -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -c glob.c glob.c: In function 'globextend': glob.c:723: error: 'ARG_MA