Micah Cowan wrote: > While attempting to compile sed from current CVS, I ran across the > following output from bootstrap.sh: > > + cc -DHAVE_CONFIG_H -I.. -I. -c getline.c > getline.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ > before ‘getline’ > > Line 26 is the ssize_t return-type of getline. Adding #include > <unistd.h> fixed it (I'm sure <sys/types.h> would too). > > Unfortunately, after fixing that, I ran into > > cc: mbchar.c: No such file or directory > > which I suspect to be just sed's bootstrap not being up-to-date with > current gnulib
Everything looks correct in the current gnulib; in particular ssize_t gets defined by <sys/types.h>, included by gnulib's <stdio.h> override. Therefore I suspect, like you, that the use of gnulib in sed is not up-to-date; please write to the email address in `sed --help` about this. Bruno