delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/03/16:35:52

X-Spam-Check-By: sourceware.org
Message-ID: <BAY102-W4B58E99E0A55A62E05FDCB7FE0@phx.gbl>
From: Richard Thomas <rich_d_thomas AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: ARG_MAX not defined
Date: Fri, 3 Nov 2006 21:35:37 +0000
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id kA3LZlAT031871

Hi,

I tried to make netkit-ftp-0.17 within cygwin and I got the following result:

$ make
(cd  ftp && make)
make[1]: Entering directory `/home/Richard/netkit-ftp-0.17/ftp'
gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-protot
ypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline  -D__
USE_READLINE__ cmds.c -c
cmds.c: In function `restart':
cmds.c:2230: warning: long int format, different type arg (arg 2)
gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-protot
ypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline  -D__
USE_READLINE__ cmdtab.c -c
gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-protot
ypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline  -D__
USE_READLINE__ domacro.c -c
gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-protot
ypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline  -D__
USE_READLINE__ ftp.c -c
ftp.c: In function `recvrequest':
ftp.c:886: warning: comparison between signed and unsigned
gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-protot
ypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline  -D__
USE_READLINE__ glob.c -c
glob.c: In function `ftpglob':
glob.c:118: error: `ARG_MAX' undeclared (first use in this function)
glob.c:118: error: (Each undeclared identifier is reported only once
glob.c:118: error: for each function it appears in.)
glob.c:118: warning: unused variable `agargv'
glob.c: In function `ginit':
glob.c:159: error: `ARG_MAX' undeclared (first use in this function)
glob.c: In function `Gcat':
glob.c:574: error: `ARG_MAX' undeclared (first use in this function)
make[1]: *** [glob.o] Error 1
make[1]: Leaving directory `/home/Richard/netkit-ftp-0.17/ftp'
make: *** [ftp.build] Error 2



As a result, I edited C:\cygwin\usr\include\limits.h and inserted the following line:

#define ARG_MAX			_POSIX_ARG_MAX

below the "#define RTSIG_MAX		_POSIX_RTSIG_MAX" line.

and I then successfully built netkit-ftp-0.17.

If this is the right thing to do, can the limits.h file be updated to include this change?



 _        ___
|_)        |
| \ICHARD  |HOMAS.

rich_d_thomas AT bigfoot DOT com

rdthomas.welcome.to
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019