Quote:
Originally Posted by PFH
Problem 3: Decided to try a 'regular' build first to see what happens. I did exactly what your site information said, but the build failed. If you need the complete .../trunk/3rd/libxml/build.log please let me know.
Building in /home/pfh/trunk/3rd/libxml
Build failed in /home/pfh/trunk/3rd/libxml, see /home/pfh/trunk/3rd/libxml/build.log for details
According to ...trunk/3rd/libxml/build.log the problem is ...
In function 'open',
inlined from 'xmlNanoHTTPSave__internal_alias' at nanohttp.c:1586:
/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
Any suggestions?
|
Hello,
It is a libxml issue. Open 3rd/libxml/2.6.27/libxml2-2.6.27/nanohttp.c, find there a line #1586:
Code:
fd = open(filename, O_CREAT | O_WRONLY);
And replace it with the following one:
Code:
fd = open(filename, O_CREAT | O_WRONLY, 0666);
Interesting moment here that this is successfully built on some other Linux distributions without this fix.