Follow-up Comment #7, bug #25713 (project make): OK, the problem seems to be that in config.h, we have HAVE_BSD_SIGNAL set. But, in the output of the preprocessor for main.c that function is not defined anywhere. So, the C compiler gives it the default prototype where it returns int, instead of returning a function pointer, and hence you get the compile error.
The question is, why does configure determine that HAVE_BSD_SIGNAL is true, but when we compile main.c there is no bsd_signal() prototype? So a few things. First, can you look into config.log and find the part where we test for bsd_signal() and set HAVE_BSD_SIGNAL, and tell me what the code we compile looks like and what the compiler options are? Also, can you look into the /usr/include/signal.h file on your system and find out what #defines need to be set (or not set), to ensure bsd_signal() is prototyped? We need to get configure and the compilation of main.c on the same page: either neither one should be able to see the system bsd_signal() (in which case we'll use our own version), or both should be able to see it. PS. if you put code into the bug comment, please use the verbatim tags to avoid reformatting; see the Markup Reminder section (check the Cookbook link on the menu to the left). Thanks! _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?25713> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make