Menu

#2 Compilation failure on SLES11SP1 with gcc 4.3.4

open
nobody
None
5
2014-10-11
2012-01-12
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.