bug-grep
[Top][All Lists]
Advanced

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

Re: grep-2.5.4-20090203 compilation issues


From: Tony Abou-Assaleh
Subject: Re: grep-2.5.4-20090203 compilation issues
Date: Sat, 07 Feb 2009 23:06:36 -0400
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Hi Nelson,

Many thanks for the extensive tests the detailed report.

Nelson H. F. Beebe wrote:
> I've just completed test builds of grep-2.5.4-20090203 in about 25
> Unix environments.  While most succeeded and passed their tests, there
> are some consistent failures of tests on some systems, notably Sun
> Solaris on SPARC and IA-32/EM64T/AMD64.
> 
> Compilations report anomalies like these:
> 
>       Making all in src
>       "grep.c", line 2092: warning: implicit function declaration:
>       strcasecmp
>       "search.c", line 169: warning: argument #1 is incompatible
>       with prototype: prototype: restrict pointer to char :
>       "/usr/include/iso/wchar_iso.h", line 300 argument : pointer to
>       const char
>       "search.c", line 284: void function cannot return value
>       "search.c", line 289: void function cannot return value
>       "search.c", line 294: void function cannot return value
>       c99: acomp failed for search.c
> 
> The error also broke builds on DEC OSF/1 Alpha and SGI IRIX MIPS with
> native cc.

I managed to locate a SunOS 5.8 system with a non-gnu compiler, namely
ucbcc. However, the error I'm getting is:

"loadmsgcat.c", line 309: invalid cast expression
"loadmsgcat.c", line 309: operands have incompatible types:
         unsigned long "!=" union  {array[2] of int l, double d}
"loadmsgcat.c", line 422: cannot recover from previous errors

Can you tell me which compiler you used for above?

Do you get these compile errors with grep-2.5.3?

As for me, I get the same errors.

> In compilations on Sun Solaris with three different versions of gcc,
> plus Sun cc and Sun c99, the test output looks something like this:
> 
>       ...
>       PASS: backref.sh
>       PASS: file.sh
>       Testing:  ../src/grep w. -o -b
>         input:  "XwA YwB/ZwC/"
>         output: "4:wA/8:wB/12:wC/"
>         expect: "1:wA/5:wB/9:wC/"
>       FAIL
>       ... many more such failures ...
>       FAIL
>       FAIL: foad1.sh
>       SKIP: fmbtest.sh
>       PASS: yesno.sh
>       =================================
>       1 of 13 tests failed
>       (1 tests were not run)
>       Please report to address@hidden
>       =================================
> 
> That test also fails on GNU/Linux Alpha, and Mac OS X EM64T (but
> passes on Mac OS X PowerPC).
> 

Yep, I got those errors on SunOS. At least some of them are due to
differences in command line parameter for some parameter. For example,
the SunOS echo doesn't accept -n parameter and prints in its output. I
will take look at the other ones to see if the source of the problem is
similar.

Did anyone run into something similar with another package? How did you
resolve this?

Note that these issues existed in grep-2.5.3. I think it is important to
fix them in grep 2.6, but less critical that they're fixed in grep-2.5.4.

Cheers,

TAA

-- 
Tony Abou-Assaleh, PhD
Email:    address@hidden
Web site: http://tony.abou-assaleh.net




reply via email to

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