bug-cvs
[Top][All Lists]
Advanced

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

Re: Fwd: Help compiling source using Cygwin


From: Mark D. Baushke
Subject: Re: Fwd: Help compiling source using Cygwin
Date: Tue, 30 Nov 2004 08:43:35 -0800

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

Stefan <address@hidden> writes:

> I tried running as:
> 
> "make -I/cygdrive/c/cygwin/usr/include"
> 
> and it did get further but then I encountered the error:
> 
> "In file included from ../lib/dirname.h:22,
>                  from cvs.h:43,
>                  from add.c:28:
> ../lib/stdbool.h:87: warning: useless keyword or type name in empty 
> declaration

I believe you may ignore this warning from stdbool.h.

> add.c: In function `add_directory':
> add.c:828: too many arguments to function `mkdir'
> c:\Progra~1\MinGW\bin\make.exe[2]: *** [add.o] Error 1
> make[1]: *** [all-recursive] Error 1
> c:\Progra~1\MinGW\bin\make.exe: *** [all] Error 2"
> 
> Any ideas on this?

It sounds like cvs is managing to include one of the broken Windows
versions of the 'mkdir' instead of the POSIX function. You want to
have a prototype like this:

  int mkdir (const char *path, mode_t mode);

rather than a mingw prototype...

Which version of cvs are you trying to compile?

Which verison of cygwin are you using?

I would expect the correct prototype for mkdir in sys/stat.h
does your config.h have a '#define HAVE_SYS_STAT_H' line in it?

You might wish to add a '-E' switch to the compilation of add.c
and see the output of the C-Preprocessor (save it to a file).
to determine from whence the mkdir declaration is being pulled...

        Good luck,
        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFBrKM23x41pRYZE/gRAjACAJ92XoCIdi0EhrBau+vvzks9nbLTtwCdHO1e
0muxyo7Jq5is1x21SC6bEGs=
=1/fv
-----END PGP SIGNATURE-----




reply via email to

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