Re: [EXIM] Problem compiling Exim 3.00 on SunOS 4

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Harald Meland
Υ/ο: exim-users
Αντικείμενο: Re: [EXIM] Problem compiling Exim 3.00 on SunOS 4
On 18 May 1999, Harald Meland wrote:

> Trying to compile Exim 3.00 using gcc-2.7.2.1 on SunOS 4.1.4 produces
> this:
>
>   gcc -c -O    -I. globals.c
>   globals.c:46: `getc' undeclared here (not in a function)
>   globals.c:47: `ungetc' undeclared here (not in a function)
>   globals.c:48: `feof' undeclared here (not in a function)
>   globals.c:49: `ferror' undeclared here (not in a function)
>   make[1]: *** [globals.o] Error 1


Sorry. This is fixed in 3.01 which I am about to release.

> I don't understand what's going on -- at first I thought it was a libc
> function vs. includefile macro issue, but #undef-ing the names
> immediately before line 46 in globals.c didn't help.


It is that kind of issue. I have found that you need to undef the macro
and then define the function. Don't know why, but SunOS4 never was a
real ANSI C system.

> Also, with this small patch in place:


I'll take a look at that.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***