bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#51144: GNU grep 3.7 fails to build on FreeBSD


From: Paul Eggert
Subject: Re: bug#51144: GNU grep 3.7 fails to build on FreeBSD
Date: Wed, 13 Oct 2021 11:47:34 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

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?).

Attachment: 0001-sigsegv-fix-quoting-problem.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]