Forum

Ver 7.0 compilation issue

JanH
15 February 2010, 10:12
Hello,

compilling on Ubuntu 9.10 I get:
...
gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -pthread -O2 -g -Wall -MT hiawatha-monitor.o -MD -MP -MF .deps/hiawatha-monitor.Tpo -c -o hiawatha-monitor.o `test -f 'monitor.c' || echo './'`monitor.c
In file included from /usr/include/fcntl.h:217,
from monitor.c:23:
In function 'open',
inlined from 'sync_monitor_buffer' at monitor.c:93:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[3]: *** [hiawatha-monitor.o] Error 1
...
Compiling on Debian squeeze and Ubuntu 8.04 HH went without problems.

Hiawatha version: 7.0
Operating System: Ubuntu 9.10 KK (kernel 2.6.31-17-generic), gcc 4.4.1
Hugo Leisink
15 February 2010, 14:06
Change line 93 of monitor.c to
if ((handle = open(filename, O_CREAT | O_APPEND | O_WRONLY, 0644)) == -1) {
JanH
16 February 2010, 11:14
That worked. I actually downloaded latest Hiawatha archive from your website before compiling, and the line is already corrected there
Thanks again for your super-fast response.
This topic has been closed.