dateutils
dateutils copied to clipboard
Top level "make" on FreeBSD fails to create lib/version.c from lib/version.c.in
There seems to be a build ordering issue or something.
$ make
Making all in build-aux
make yuck-bootstrap
CC yuck_bootstrap-yuck.o
CCLD yuck-bootstrap
GEN yuck.m4i
GEN yuck.yucc
make all-am
CC yuck-yuck.o
CC yuck-yuck-scmver.o
yuck-scmver.c: In function 'run':
yuck-scmver.c:296:2: warning: implicit declaration of function 'vfork' [-Wimplicit-function-declaration]
switch ((p = vfork())) {
^
CCLD yuck
Making all in data
make all-am
Making all in lib
GEN version.c
0.4.3.git2.9e20475.dirty
make ltrcc
CC ltrcc-ltrcc.o
ltrcc.c:54:21: fatal error: version.c: No such file or directory
#include "version.c"
^
compilation terminated.
*** Error code 1
Then
$ ls lib/version*
lib/version.c.in lib/version.h
You'd think the "GEN version.c" bit would have DTRT...?
Ah, needs GNU make.
Hey Peter, that's a git build, right? Can you verify though that a tarball-build would indeed work with bsd make?
As expected, the tarball build v0.4.3.tar.gz has the same failure mode
ltrcc.c:54:21: fatal error: version.c: No such file or directory
#include "version.c"
^
compilation terminated.
gmake works.
Ah thanks for verifying. The tarball does work with AIX's make for me because version.c is already included and doesn't need regenerating.
Will have to fix this on a real BSD machine, I just hope it's not a timestamp issue or something.
Thanks for the report.
This is addressed in d34083e and should be fixed now.