Forum

Error with make deb

IMNOboist
18 January 2009, 00:43
I'm getting an error when doing make deb using 6.11. Here's the error:

In function ?open?,
inlined from ?touch_logfile? at libfs.c:242:
/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]: *** [libfs.o] Error 1
make[3]: Leaving directory `/home/administrator/hiawatha-6.11'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/administrator/hiawatha-6.11'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/administrator/hiawatha-6.11'
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
make: *** [deb] Error 2

I'm using Ubuntu Server 8.10 64-bit.

Thanks for your help!
IMNOboist
18 January 2009, 04:34
I figure it out!
As per the last post here:
http://ubuntuforums.org/archive/index.php/t-946150.html

Edit line #242 in the libfs.c file and change from:
if ((fd = open(logfile, O_CREAT|O_APPEND)) != -1) {

To:
if ((fd = open(logfile, O_CREAT|O_APPEND,0664)) != -1) {

It will also do the same complaint in the target.c file on a different line, but it's fixed just as easily.

Thanks for such a great webserver! I'm new at it, but really excited!
Hugo Leisink
18 January 2009, 10:18
Thanks for your feedback!
This topic has been closed.