<<< Date Index >>>     <<< Thread Index >>>

FIX: Error compiling: no member named 'open64'



Hi,

I just downloaded mutt from CVS and tried to compile on a Sun Solaris system.

roshan@radon $ uname -a
SunOS radon 5.8 Generic_117350-23 sun4u sparc SUNW,Sun-Fire-480R

After successfully configuring, running 'make' results in the following error:

hcache.c: In function `mutt_hcache_open':
hcache.c:808: structure has no member named `open64'
hcache.c:829: structure has no member named `open64'
hcache.c: In function `mutt_hcache_close':
hcache.c:847: warning: unused variable `ret'
make[2]: *** [hcache.o] Error 1
make[2]: Leaving directory `/home/pg/roshan/downloads/mutt-cvs-2005-07-06'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pg/roshan/downloads/mutt-cvs-2005-07-06'
make: *** [all] Error 2

Changing hcache.c to use "sys/fcntl.h" instead of "fcntl.h" corrected the error.

32c32
< #include <fcntl.h>
---
> #include <sys/fcntl.h>

Building on x86 Linux with a 2.6 kernel is unaffected by this change.

Best wishes,

Roshan

--
http://roshan.info