Build error in 1.3.93-cvs for Win32

John Clizbe JPClizbe at comcast.net
Thu Nov 18 16:17:25 CET 2004


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

Ran into this last night building 1.3.93-cvs on Windows 2000 with MinGW

Making all in g10
make[2]: Entering directory `/home/jpclizbe/gnupg-cvs/gnupg-head/g10'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl    -g -O2 -Wall
- -Wcast-align -Wshadow -Wstrict-prototypes -Wformat-nonliteral -MT g10.o
- -MD -MP -MF ".deps/g10.Tpo" -c -o g10.o g10.c; \
then mv -f ".deps/g10.Tpo" ".deps/g10.Po"; else rm -f ".deps/g10.Tpo";
exit 1; fi
g10.c: In function `open_info_file':
g10.c:951: error: `S_IRGRP' undeclared (first use in this function)
g10.c:951: error: (Each undeclared identifier is reported only once
g10.c:951: error: for each function it appears in.)
g10.c:951: error: `S_IWGRP' undeclared (first use in this function)
make[2]: *** [g10.o] Error 1

S_I[RWX]GRP are not defined for MSCVRT, only S_I[RWX]USR

$ diff -u g10/g10.c~ g10/g10.c
- --- g10/g10.c~  Wed Nov 17 10:04:21 2004
+++ g10/g10.c   Thu Nov 18 09:05:12 2004
@@ -947,8 +947,13 @@
       do
         {
           if (for_write)
+#ifdef _WIN32
+            fd = open (fname, O_CREAT | O_TRUNC | O_WRONLY,
+                        S_IRUSR | S_IWUSR);
+#else
             fd = open (fname, O_CREAT | O_TRUNC | O_WRONLY,
                         S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
+#endif
           else
             fd = open (fname, O_RDONLY | MY_O_BINARY);
         }

$

- --
John P. Clizbe                   Inet:   JPClizbe(a)comcast DOT nyet
Golden Bear Networks             PGP/GPG KeyID: 0x608D2A10
"Be who you are and say what you feel because those who mind don't matter
and those who matter don't mind." - Dr Seuss, "Oh the Places You'll Go"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.93-cvs-2004-11-18 (Windows 2000 SP4)
Comment: When cryptography is outlawed, b25seSBvdXRsYXdzIHdpbGwgdXNlIG
Comment: Annoy John Asscraft -- Use Strong Encryption.
Comment: It's YOUR right - for the time being.
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBnL0EHQSsSmCNKhARAslzAKD1u27fvpSeCp2n975elCUifoLx4ACg1PLd
7h1KdPEkLj8qFRATLV/6GkM=
=/OgB
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list