First thing I'd try is removing "-Werror" from the list of command line switches. If you're compiling this all by yourself, then just remove "-Werror" from the line that calls "gcc". However if you're using a ".configure" file, then you'll have to open it up and search for "Werror".
(Werror specifies that warnings should be treated as errors, and therefore the program will fail to compile if there's a warning. In this case however, the warning is harmless and you may ignore it.)