Compilation failure on SLES11SP1 with gcc 4.3.4
Status: Beta
Brought to you by:
eamacnaghten
I had no problems compiling on SLES10. However, I ran into the following compilation error on SLES11SP1 using gcc 4.3.4:
shsqlinp.c:49: error: conflicting types for getline
/usr/include/stdio.h:653: error: previous declaration of getline was here
shsqlinp.c:374: error: conflicting types for getline
/usr/include/stdio.h:653: error: previous declaration of getline was here
There is apparently a conflict with an existing symbol in stdio.h. I solved the issue by changing all 3 instances of the string "getline" to "get_line" within shsqlinp.c.