Troubles building m4 from pkgsrc

Jeremy C. Reed reed at reedmedia.net
Sat Apr 26 17:31:32 PDT 2008


> This is FAQ already ;). You need to upgrade your DragonFly to 1.12.2 (or 
> HEAD) and apply patch to pkgrsc tree: 

Is there any way to build/use it on before 1.12.2? I am asking because 
normally pkgsrc should work on older platforms (especially when that 
required version is only a few days old) and not require the platform 
itself to be updated.

> http://apollo.backplane.com/DFlyMisc/pkgsrc-devel-m4.patch

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

I was about to submit to m4-patches list, but want to make sure are 
correct first.

pkgsrc also has another DragonFly specific fix at bsd-fflush.c to replace 
lib/fflush.c. I don't know status of that for GNU m4.



  Jeremy C. Reed





More information about the Users mailing list