GNU bug report logs -
#51144
GNU grep 3.7 fails to build on FreeBSD
Previous Next
Reported by: Alexey Dokuchaev <danfe <at> nsu.ru>
Date: Tue, 12 Oct 2021 03:13:02 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 51144 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 10/12/21 9:02 PM, Alexey Dokuchaev wrote:
> Ports framework does several things which affect GNU configure
> scripts, particularly, it replaces build-aux/config.guess file
> with our own, where host/build tuples are derived from.
>
> x86_64 is spelled as amd64 in FreeBSD
Ouch. When porting, does this mean you need to look for places where GNU
source code says "x86_64" and replace many of these places with "amd64"
before building? That sounds error-prone.
> conftest.c:13:1: error: second parameter of 'main' (argument array)
> must be of type 'char **'
> main (int argc, char *argv)
> ^
> 1 error generated.
> configure:35726: $? = 1
> configure:35741: result: unknown
Thanks for reporting that. That's due to a quoting typo in Gnulib's
m4/stack-direction.m4. I fixed it by installing the attached patch into
Gnulib. Grep will get this fix the next time it merges from Gnulib. In
the meantime you should be able work around the problem by changing that
'char *argv' to 'char *argv[]' in 'configure'.
>> and config.h says:
>>
>> #define STACK_DIRECTION -1
This is after you modified 'configure', right? Otherwise "result:
unknown" should result in STACK_DIRECTION being 0, which
gnulib/lib/stackvma.h does not support (perhaps it should?).
[0001-sigsegv-fix-quoting-problem.patch (text/x-patch, attachment)]
This bug report was last modified 3 years and 178 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.