Compiling gcc under Ubuntu9.04 always fails, like the following: error: callto '_ open_missing_mode' declaredwithattributeerror, added
Compiling gcc under Ubuntu 9.04 always fails, as shown below:
Error: call to '_ open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
I searched the internet and found it like this:
Some extended checking functions, such as buffer overflow and ignoring return value, were added from gcc 4.0. As early as feroda core 4, RedHat enabled this gcc extension by default, on this basis, almost all fc4 software is compiled. ubuntu does not enable this function until version 8.10. However, after this function is enabled, many programs cannot be compiled, such as gcc :(, the solution is to disable the fortify extension during compilation:
Make "CFLAGS =-U_FORTIFY_SOURCE"