public inbox for
 help / color / mirror / Atom feed
* [PATCH] don't know how to make gnats-pwconv.o
       [not found]         ` <>
@ 2004-11-30  7:00           ` Chad Walstrom
  0 siblings, 0 replies; only message in thread
From: Chad Walstrom @ 2004-11-30  7:00 UTC (permalink / raw)
  To: help-gnats

[-- Attachment #1.1: Type: text/plain, Size: 2165 bytes --]

Tim Buck wrote:
> autoheader: `' is updated
> Then I did:
> # autoconf
> # cd ..
> # make clean && ./configure --prefix=/usr/gnats
> When configure was done, I did 'make', and now I'm back to:
> Creating gnats-databases...
> make: don't know how to make gnats-pwconv.o. Stop
> *** Error code 2

Hmm...  Is there any way to get a little more verbosity in your make

I did some digging.  It looks like the HAVE_CRYPT definition is never
really set.  I don't know when it ever was. HAVE_CRYPT_H is being set in (including the older 2.13 generated version).  We need to
check for this new define in gnats-pwconv.c and gnatsd.c.  Apparently,
as the comment states, crypt() can be defined in unistd.h or crypt.h.
We need to figure out which, and handle it appropriately.

Additionally, gnats-pwconv.c has extraneous #include directives that are
already called in gnats.h.  This may actually be one source of confusion
by the compiler/linker.

I haven't yet tested this thoroughly, but here's a possible patch to
actually include the crypt.h header file correctly.  Preliminary tests
on my machine are favorable, but then again, I didn't have problems
w/the Debian GNU/Linux setup.

--- orig/gnats/gnats-pwconv.c
+++ mod/gnats/gnats-pwconv.c
@@ -19,15 +19,10 @@
 #include "gnats.h"
-#ifdef HAVE_CRYPT		/* some systems declare `crypt' in unistd.h */
+#ifdef HAVE_CRYPT_H		/* some systems declare `crypt' in unistd.h */
 #include <crypt.h>
-#include <getopt.h>
-#include <stdio.h>
-#include <time.h>
-#include <unistd.h>
 enum _Crypt_Type { NONE, PLAIN, CRYPT, MD5 };
 typedef enum _Crypt_Type Crypt_Type;
--- orig/gnats/gnatsd.c
+++ mod/gnats/gnatsd.c
@@ -24,7 +24,7 @@
 #include "query.h"
-#ifdef HAVE_CRYPT		/* some systems declare `crypt' in unistd.h */
+#ifdef HAVE_CRYPT_H		/* some systems declare `crypt' in unistd.h */
 #include <crypt.h>

Chad Walstrom <> 
           assert(expired(knowledge)); /* core dump */

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

Help-gnats mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-30  7:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
     [not found] ` <>
     [not found]   ` <>
     [not found]     ` <>
     [not found]       ` <>
     [not found]         ` <>
2004-11-30  7:00           ` [PATCH] don't know how to make gnats-pwconv.o Chad Walstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).