On Sat, 26 Apr 2008, Matthew Dillon wrote: > :Even with this on 1.13.0-DEVELOPMENT (on pkgbox) I get: > : > :cc -std=gnu99 -O2 -Wl,-R/home/reed/pkg/lib -o m4 m4.o builtin.o debug.o > :eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o > :stackovf.o ../lib/libm4.a -lm > :../lib/libm4.a(freadahead.o): In function `freadahead': > :freadahead.c:(.text+0x5): undefined reference to `__sreadahead' > :*** Error code 1 > > That function should exist in libc now. My M4 patch for pkgsrc > call that function (its not part of the vendor M4), because our > struct FILE is opaque so there is no way to implement it directly > in M4 (nor should we, M4's stdio code is an abomination, they should > have just rolled their own).
I don't see on pkgbox yet. Also I didn't past the earlier warning for above: cc -std=gnu99 -I. -O2 -MT freadahead.o -MD -MP -MF .deps/freadahead.Tpo -c -o freadahead.o freadahead.c freadahead.c: In function 'freadahead': freadahead.c:83: warning: implicit declaration of function '__sreadahead' What is the way to handle this for older DragonFly? (Why isn't __sferror defined like it is on other BSDs?) Jeremy C. Reed