bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows Build Broken: /ccvs/lib/ getopt.h, getopt_.h, getopt_int.h


From: Derek Robert Price
Subject: Re: Windows Build Broken: /ccvs/lib/ getopt.h, getopt_.h, getopt_int.h
Date: Thu, 07 Oct 2004 09:32:49 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

getopt.h needs to be created from getopt_.h when it doesn't exist on a
system, as I presume it doesn't on Windows.  The procedure should be
the same as for fnmatch_.h , alloca_.h, and the others.

I tried to define what I thought I could guess at accurately, but
there are a few definitions missing on Windows now that probably
aren't vital but could speed things up:

$ ./mkconfig -q ../config.h.in ./config.h.in ./config.h.in.in
./config.h.in.footer
../config.h.in line 468 has #undef HAVE_STDIO_EXT_H not found in
./config.h.in.in
../config.h.in line 474 has #undef HAVE_STRCASECMP not found in
./config.h.in.in../config.h.in line 495 has #undef HAVE_STRNCASECMP
not found in ./config.h.in.in
../config.h.in line 629 has #undef HAVE_WMEMCHR not found in
./config.h.in.in
../config.h.in line 632 has #undef HAVE_WMEMCPY not found in
./config.h.in.in
../config.h.in line 992 has #undef optarg not found in ./config.h.in.in
../config.h.in line 995 has #undef optind not found in ./config.h.in.in
../config.h.in line 998 has #undef optopt not found in ./config.h.in.in

I'm guessing HAVE_STDIO_EXT_H won't exist and needs to be defined to
0, but I didn't really know.  HAVE_STRCASECMP and the other HAVE_s, I
have no idea about.  I have no idea about optarg, optind, and optopt
either.  Those need to be defined to rpl_optarg, rpl_optind, and
rpl_optopt, respectively, if they don't exist on Windows.  These
globals are normally exported as part of the getopt() function.  I
gathered that Windows wouldn't have a GNU compatible getopt(), but
didn't know if it had some form of getopt() which did export these
variables.

Cheers,

Derek

Conrad T. Pino wrote:

>--------------------Configuration: libcvs - Win32
Debug--------------------
>Compiling...
>fncase.c
>h:\conrad\projects\cvs-1.12\lib\system.h(58) : fatal error C1083:
Cannot open include file: 'getopt.h': No such file or directory
>getopt.c
>h:\conrad\projects\cvs-1.12\lib\getopt.c(79) : fatal error C1083:
Cannot open include file: 'getopt.h': No such file or directory
>getopt1.c
>h:\conrad\projects\cvs-1.12\lib\getopt1.c(27) : fatal error C1083:
Cannot open include file: 'getopt.h': No such file or directory
>sighandle.c
>h:\conrad\projects\cvs-1.12\lib\system.h(58) : fatal error C1083:
Cannot open include file: 'getopt.h': No such file or directory
>valloc.c
>h:\conrad\projects\cvs-1.12\lib\system.h(58) : fatal error C1083:
Cannot open include file: 'getopt.h': No such file or directory
>Error executing cl.exe.
>
>cvs.exe - 5 error(s), 0 warning(s)
>
>>From: dprice@cvshome.org [mailto:dprice@cvshome.org]
>>Sent: Wednesday, October 06, 2004 12:25
>>To: cvs@ccvs.cvshome.org
>>Subject: CVS update: /ccvs/lib/
>>
>>User: dprice  
>>Date: 04/10/06 12:24:51
>>
>>Removed:
>> /ccvs/lib/
>>  getopt.h
>>
>>Added:
>> /ccvs/lib/
>>  getopt_.h, getopt_int.h
>>
>>Modified:
>> /ccvs/lib/
>>  ChangeLog, Makefile.am, Makefile.gnulib, Makefile.in, getopt.c,
getopt1.c
>>
>>Log:
>> * getopt.h: Remove file.
>> * getopt_.h, getopt_int.h: New files from GNULIB.
>> * getopt1.c: Update from GNULIB.
>
>


- --
                *8^)

Email: derek@ximbiot.com

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBZUWALD1OTBfyMaQRApEkAJkB/yfafaPSvrCC0jjBfDKgr3dfsACg+rgI
ZSfkzmTGGnZ8XgsLivokgDk=
=zBDN
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]