Re: Compile error: Digital UNIX

From: Ed Carp <>
Date: Tue, 19 Jan 1999 10:41:29 -0600
Message-ID: <000f01be43ca$d2551a40$>

>I'm running Digital UNIX 4.0A and 4.0D with hypermail-20b3.
>I am having the same compile error as was posted by Craig A Summerhill
><> on 23 October 1998. I didn't see a followup to Craig's
>question and so I thought I see if anyone had a solution to my compile
>cd archive; make all CC="gcc" CFLAGS="-g -O2"
>gcc -g -O2 -DHYPERTEST -o htestmail msg2archive.c
>msg2archive.c:47: conflicting types for `time'
>/usr/local/lib/gcc-lib/alpha-dec-osf4.0a/2.8.1/include/time.h:124: previous declaration of `time'
>msg2archive.c: In function `main':
>msg2archive.c:105: warning: passing arg 1 of `localtime' from incompatible pointer type
>*** Exit 1
>*** Exit 1

A couple of general notes on how to debug this sort of thing, instead of posting to the list right away:

  1. Have you checked to make sure the Makefile(s) are properly configured for your architecture? Many of these sorts of errors are caused by not selecting the correct target system in "configure".
  2. Have you looked at the offending lines (in this case, line 47 in msg2archive.c and line 124 in time.h) in the code and tried to figure out what the problem is? If you are familiar with C (and I do realize that there are a lot of people out there who expect code to be "compile-and-run", and who don't know C), the problem is usually (though not always) fairly obvious.

On the plus side, it's nice to see actual makefile output, instead of the "it doesn't work, help!!" type of posts. :)

Ed Carp, N7EKG - - for URGENT messages only!

"There are three kinds of lies: lies, damn lies .. and then there's Bill Clinton"
Received on Tue 19 Jan 1999 06:47:34 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:50 PM GMT GMT