Opened 5 months ago

Last modified 5 months ago

#68959 new defect

cook fails to build: error: redefinition of 'iswprint' etc.

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc:
Port: cook

Description

:info:build /usr/bin/clang -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -I. -c common/ac/wctype.c
:info:build common/ac/wctype.c:39:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
:info:build iswprint(wc)
:info:build ^
:info:build common/ac/wctype.c:39:1: error: redefinition of 'iswprint'
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_wctype.h:93:1: note: previous definition is here
:info:build iswprint(wint_t _wc)
:info:build ^
:info:build common/ac/wctype.c:59:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
:info:build iswspace(wc)
:info:build ^
:info:build common/ac/wctype.c:59:1: error: redefinition of 'iswspace'
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_wctype.h:105:1: note: previous definition is here
:info:build iswspace(wint_t _wc)
:info:build ^
:info:build common/ac/wctype.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
:info:build iswpunct(wc)
:info:build ^
:info:build common/ac/wctype.c:79:1: error: redefinition of 'iswpunct'
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_wctype.h:99:1: note: previous definition is here
:info:build iswpunct(wint_t _wc)
:info:build ^
:info:build common/ac/wctype.c:99:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
:info:build iswupper(wc)
:info:build ^
:info:build common/ac/wctype.c:99:1: error: redefinition of 'iswupper'
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_wctype.h:111:1: note: previous definition is here
:info:build iswupper(wint_t _wc)
:info:build ^
:info:build common/ac/wctype.c:113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
:info:build iswlower(wc)
:info:build ^
:info:build common/ac/wctype.c:113:1: error: redefinition of 'iswlower'
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_wctype.h:87:1: note: previous definition is here
:info:build iswlower(wint_t _wc)
:info:build ^
:info:build common/ac/wctype.c:127:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
:info:build iswdigit(wc)
:info:build ^
:info:build common/ac/wctype.c:127:1: error: redefinition of 'iswdigit'
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_wctype.h:75:1: note: previous definition is here
:info:build iswdigit(wint_t _wc)
:info:build ^
:info:build common/ac/wctype.c:141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
:info:build iswalnum(wc)
:info:build ^
:info:build common/ac/wctype.c:141:1: error: redefinition of 'iswalnum'
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_wctype.h:51:1: note: previous definition is here
:info:build iswalnum(wint_t _wc)
:info:build ^

Change History (1)

comment:1 Changed 5 months ago by barracuda156

Also fails on 10.6:

common/sub/expr_gram.y:92: error: expected identifier or ‘(’ before numeric constant
y.tab.c: In function ‘sub_expr_gram_parse’:
y.tab.c:1332: error: called object ‘256’ is not a function
y.tab.c:1443: error: called object ‘256’ is not a function
make: *** [common/sub/expr_gram.yacc.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cook/cook/work/cook-2.34'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cook/cook/work/cook-2.34" && /usr/bin/make -j1 -w all 
Exit code: 2
Note: See TracTickets for help on using tickets.