------- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-10 20:38 ------- Not a bug, strndup is a GNU (glibc) extension. You have to use -D_GNU_SOURCE when compiling. The warning messages are correct as there is no prototype for strndup.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30426