bugGNU Wget - Bugs: bug #59903, regex.c in trunk and 1.12.1 -...

 
 

bug #59903: regex.c in trunk and 1.12.1 - ./malloc/dynarray-skeleton.c:205:40: error: expected identifier or '('

Submitter:  None
Submitted:  Mon 18 Jan 2021 08:46:30 AM UTC
   
 
Category:  Build/Install Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  zy Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  trunk
Operating System:  Mac OS Reproducibility:  Every Time
Fixed Release:  None Planned Release:  None
Regression:  None Work Required:  None
Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 07 Mar 2021 11:12:36 PM UTC, comment #1: 

Firstly: Please take note that the repository URL you provided is not an official upstream repository for GNU Wget. We neither know about it, nor control it. The code you see there is not most likely a true mirror of GNU Wget sources, but we do not take any responsibility for it. The correct upstream sources are either:


Regarding your specific issue, I hope it has already been fixed in master. But given that I do not have access to a MacOS device, I cannot guarantee it. Could you please check it again on the current trunk and  report if it works?

Darshit Shah <darnir>
Group administrator
Mon 18 Jan 2021 08:46:30 AM UTC, original submission:  

This happens in both the trunk code at https://github.com/mirror/wget (after 2021-01-03) and the release 1.21.1 from https://ftp.gnu.org/gnu/wget/wget-1.21.1.tar.gz, on both macos 10.11 and 10.14 with Apple clang:

...
In file included from ./regexec.c:1362:
./malloc/dynarray-skeleton.c:195:13: error: expected identifier or '('
__nonnull ((1))
            ^
./malloc/dynarray-skeleton.c:195:13: error: expected ')'
./malloc/dynarray-skeleton.c:195:12: note: to match this '('
__nonnull ((1))
           ^
./malloc/dynarray-skeleton.c:205:40: error: expected identifier or '('
_attribute_maybe_unused_ __nonnull ((1))
                                       ^
./malloc/dynarray-skeleton.c:205:40: error: expected ')'
./malloc/dynarray-skeleton.c:205:39: note: to match this '('
_attribute_maybe_unused_ __nonnull ((1))
                                      ^
./malloc/dynarray-skeleton.c:216:13: error: expected identifier or '('
__nonnull ((1))
            ^
./malloc/dynarray-skeleton.c:216:13: error: expected ')'
./malloc/dynarray-skeleton.c:216:12: note: to match this '('
__nonnull ((1))
           ^
./malloc/dynarray-skeleton.c:225:13: error: expected identifier or '('
__nonnull ((1))
            ^
./malloc/dynarray-skeleton.c:225:13: error: expected ')'
./malloc/dynarray-skeleton.c:225:12: note: to match this '('
__nonnull ((1))
           ^
./malloc/dynarray-skeleton.c:239:13: error: expected identifier or '('
__nonnull ((1))
            ^
./malloc/dynarray-skeleton.c:239:13: error: expected ')'
./malloc/dynarray-skeleton.c:239:12: note: to match this '('
__nonnull ((1))
           ^
./malloc/dynarray-skeleton.c:248:13: error: expected identifier or '('
__nonnull ((1))
            ^
./malloc/dynarray-skeleton.c:248:13: error: expected ')'
./malloc/dynarray-skeleton.c:248:12: note: to match this '('
__nonnull ((1))
           ^
./malloc/dynarray-skeleton.c:260:13: error: expected identifier or '('
__nonnull ((1))
            ^
./malloc/dynarray-skeleton.c:260:13: error: expected ')'
./malloc/dynarray-skeleton.c:260:12: note: to match this '('
__nonnull ((1))
           ^
./malloc/dynarray-skeleton.c:270:13: error: expected identifier or '('
__nonnull ((1))
            ^
./malloc/dynarray-skeleton.c:270:13: error: expected ')'
./malloc/dynarray-skeleton.c:270:12: note: to match this '('
__nonnull ((1))
           ^
./malloc/dynarray-skeleton.c:286:7: warning: implicit declaration of function 'regmatch_list_mark_failed' is invalid in C99
      [-Wimplicit-function-declaration]
      DYNARRAY_NAME (mark_failed) (list);
      ^
./malloc/dynarray-skeleton.c:151:29: note: expanded from macro 'DYNARRAY_NAME'
#define DYNARRAY_NAME(name) DYNARRAY_CONCAT1(DYNARRAY_PREFIX, name)
                            ^
./malloc/dynarray-skeleton.c:150:40: note: expanded from macro 'DYNARRAY_CONCAT1'
#define DYNARRAY_CONCAT1(prefix, name) DYNARRAY_CONCAT0(prefix, name)
                                       ^
./malloc/dynarray-skeleton.c:149:40: note: expanded from macro 'DYNARRAY_CONCAT0'
#define DYNARRAY_CONCAT0(prefix, name) prefix##name
                                       ^
<scratch space>:184:1: note: expanded from here
regmatch_list_mark_failed
^
In file included from regex.c:74:
In file included from ./regexec.c:1362:
./malloc/dynarray-skeleton.c:297:13: error: expected identifier or '('
__nonnull ((1))
            ^
./malloc/dynarray-skeleton.c:297:13: error: expected ')'
./malloc/dynarray-skeleton.c:297:12: note: to match this '('
__nonnull ((1))
           ^
./malloc/dynarray-skeleton.c:351:73: error: expected identifier or '('
_attribute_maybe_unused_ __attribute_warn_unused_result__ __nonnull ((1))
                                                                        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
  CC       spawn_faction_adddup2.o
  CC       spawn_faction_addopen.o
1 warning and 20 errors generated.
make[3]: * [regex.o] Error 1
make[3]: * Waiting for unfinished jobs....
make[2]: * [all] Error 2
make[1]: * [all-recursive] Error 1
make: * [all] Error 2
...

It appears wget-1.21.1/configure wget-1.21/configure

I had been able to build successfully from the trunk code at  https://github.com/mirror/wget for years until after 2021-01-03 (i.e., my last successful build was from that date). The next build on 2021-01-09 failed. Ever since I have had the same issue with both the github trunk code and the 1.21.1 release (but no such issue with release 1.21, see  <https://savannah.gnu.org/bugs/?59902>).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by darnir (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-07 darnir PrivacyPrivate Public

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code