I'm inclined to treat this as a gcc-4 bug. To witness: $ cat t.c char * foo (char *str) { return strdup(str); } $ gcc-3.3 -c -g -O -Wall t.c t.c: In function `foo': t.c:4: warning: implicit declaration of function `strdup' t.c:4: warning: return makes pointer from integer without a cast gcc-4.0 -c -g -O -Wall t.c t.c: In function 'foo': t.c:4: warning: implicit declaration of function 'strdup' t.c:4: warning: incompatible implicit declaration of built-in function 'strdup'
The gcc-3.3 warnings makes perfect sense. The gcc-4.0 warnings are useless. There is no hint on how the "implicit declaration of built-in function `strdup'" is incompatible. --david On 3/10/06, Samuel Thibault <[EMAIL PROTECTED]> wrote: > dann frazier, le Fri 10 Mar 2006 15:46:58 -0700, a écrit : > > On Fri, 2006-03-10 at 00:30 +0100, [EMAIL PROTECTED] wrote: > > > Hi, > > > > > > Ah, good. But your script misses some warnings: > > > > > > oss.c:83: warning: incompatible implicit declaration of built-in function > > > 'strdu > > > > > > because of "incompatible" and "built-in". Please fix ;) > > > > Thanks Samuel, > > Can you point us to the log file this is from? David & I aren't > > subscribed, so please CC. > > This is from the speech-dispatch package: > http://buildd.debian.org/fetch.php?&pkg=speech-dispatcher&ver=0.6-1&arch=ia64&stamp=1141941237&file=log&as=raw > > Regards, > Samuel > -- Mosberger Consulting LLC, http://www.mosberger-consulting.com/