Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.21.7 does not compile on FreeBSD 9.2 (gcc 4.2.1) #14347

Closed
p5pRT opened this issue Dec 20, 2014 · 17 comments
Closed

5.21.7 does not compile on FreeBSD 9.2 (gcc 4.2.1) #14347

p5pRT opened this issue Dec 20, 2014 · 17 comments

Comments

@p5pRT
Copy link

p5pRT commented Dec 20, 2014

Migrated from rt.perl.org#123464 (status was 'resolved')

Searchable as RT123464$

@p5pRT
Copy link
Author

p5pRT commented Dec 20, 2014

From @eserte

Compilation stops with​:
...
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra -Wc++-compat -Wwrite-strings -O -DVERSION=\"2.67\" -DXS_VERSION=\"2.67\" -DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra -Wc++-compat -Wwrite-strings -O -DVERSION=\"2.67\" -DXS_VERSION=\"2.67\" -DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
Unsuccessful make(cpan/Encode)​: code=256 at make_ext.pl line 574.
*** [lib/auto/Encode/Encode.so] Error code 1

Stop in /usr/local/src/perl-5.21.7.


My workaround​:

  cd cpan/Encode && perl -i -pe 's/-pedantic//' Makefile; perl -i -pe 's/-pedantic//' */Makefile

Regards,
  Slaven

@p5pRT
Copy link
Author

p5pRT commented Dec 26, 2014

From @eserte

Dana Sub 20. Pro 2014, 11​:09​:39, slaven@​rezic.de reče​:

Compilation stops with​:
...
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-
strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra -Wc++-
compat -Wwrite-strings -O -DVERSION=\"2.67\" -DXS_VERSION=\"2.67\"
-DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-
strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra -Wc++-
compat -Wwrite-strings -O -DVERSION=\"2.67\" -DXS_VERSION=\"2.67\"
-DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
Unsuccessful make(cpan/Encode)​: code=256 at make_ext.pl line 574.
*** [lib/auto/Encode/Encode.so] Error code 1

Stop in /usr/local/src/perl-5.21.7.

---

My workaround​:

cd cpan/Encode && perl -i -pe 's/-pedantic//' Makefile; perl -i -pe
's/-pedantic//' */Makefile

Actually it turns out that my wrapper build script activated -Dgccansipedantic. Simple fix is to remove this setting.

Fixed subject.

@p5pRT
Copy link
Author

p5pRT commented Dec 26, 2014

From @eserte

Fixed subject.

If I had the permissions to do so...

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 2014

From @jkeenan

On Fri Dec 26 06​:07​:41 2014, slaven@​rezic.de wrote​:

Fixed subject.

If I had the permissions to do so...

Slaven, I'm going to assume that what you were trying to do was to close this ticket because the only reason for the build failure was the setting in your wrapper script.

So I'm closing the ticket now. Let us know if it needs to be re-opened.

Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 2014

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 2014

@jkeenan - Status changed from 'open' to 'rejected'

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 2014

From @eserte

Dana Ned 28. Pro 2014, 05​:24​:29, jkeenan reče​:

On Fri Dec 26 06​:07​:41 2014, slaven@​rezic.de wrote​:

Fixed subject.

If I had the permissions to do so...

Slaven, I'm going to assume that what you were trying to do was to
close this ticket because the only reason for the build failure was
the setting in your wrapper script.

So I'm closing the ticket now. Let us know if it needs to be re-
opened.

It depends. If -Dgccansipedantic is still a valid Configure option and perl should build with it, then it probably should stay open. Otherwise I don't know --- remove -Dgccansipedantic from Configure and cflags.SH?

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 2014

From @jkeenan

Re-opening because I don't know the answer to Slaven's last question.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 2014

@jkeenan - Status changed from 'rejected' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 2014

From @jkeenan

On Sun Dec 28 09​:31​:42 2014, slaven@​rezic.de wrote​:

Dana Ned 28. Pro 2014, 05​:24​:29, jkeenan reče​:

On Fri Dec 26 06​:07​:41 2014, slaven@​rezic.de wrote​:

Fixed subject.

If I had the permissions to do so...

Slaven, I'm going to assume that what you were trying to do was to
close this ticket because the only reason for the build failure was
the setting in your wrapper script.

So I'm closing the ticket now. Let us know if it needs to be re-
opened.

It depends. If -Dgccansipedantic is still a valid Configure option and
perl should build with it, then it probably should stay open.
Otherwise I don't know --- remove -Dgccansipedantic from Configure and
cflags.SH?

Trying to build blead with -Dgccansipedantic fails on Ubuntu Linux 14.04 LTS as well. See attachment.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 2014

@p5pRT
Copy link
Author

p5pRT commented Dec 29, 2014

From @jkeenan

On Sun Dec 28 09​:53​:44 2014, jkeenan wrote​:

On Sun Dec 28 09​:31​:42 2014, slaven@​rezic.de wrote​:

Dana Ned 28. Pro 2014, 05​:24​:29, jkeenan reče​:

On Fri Dec 26 06​:07​:41 2014, slaven@​rezic.de wrote​:

Fixed subject.

If I had the permissions to do so...

Slaven, I'm going to assume that what you were trying to do was to
close this ticket because the only reason for the build failure was
the setting in your wrapper script.

So I'm closing the ticket now. Let us know if it needs to be re-
opened.

It depends. If -Dgccansipedantic is still a valid Configure option
and
perl should build with it, then it probably should stay open.
Otherwise I don't know --- remove -Dgccansipedantic from Configure
and
cflags.SH?

Trying to build blead with -Dgccansipedantic fails on Ubuntu Linux
14.04 LTS as well. See attachment.

However, it should be noted that Porting/pumpkin.pod advises​:

#####
The -Dgccansipedantic should be used only when cleaning up the code,
not for production builds, since otherwise gcc cannot inline certain
things.
#####

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Dec 29, 2014

From @jkeenan

On Sat Dec 20 11​:09​:39 2014, slaven@​rezic.de wrote​:

Compilation stops with​:
...
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-
strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra -Wc++-
compat -Wwrite-strings -O -DVERSION=\"2.67\" -DXS_VERSION=\"2.67\"
-DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-
strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra -Wc++-
compat -Wwrite-strings -O -DVERSION=\"2.67\" -DXS_VERSION=\"2.67\"
-DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
Unsuccessful make(cpan/Encode)​: code=256 at make_ext.pl line 574.
*** [lib/auto/Encode/Encode.so] Error code 1

Stop in /usr/local/src/perl-5.21.7.

---

My workaround​:

cd cpan/Encode && perl -i -pe 's/-pedantic//' Makefile; perl -i -pe
's/-pedantic//' */Makefile

Regards,
Slaven

A finding which is probably consistent with yours​: I configure and build blead with the following variants​:

#####
sh ./Configure -des -Dusedevel && make test_prep

sh ./Configure -des -Dusedevel -Dgccansipedantic && make test_prep
#####

When I log the output of the respective 'make test_prep' commands and then vimdiff them, all the errors appear related to the Encode distribution's byte_t.c file. See attached grep of that diff.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Dec 29, 2014

From @jkeenan

1315​:byte_t.c​:9​:24​: error​: array size missing in ‘utf8_AdobeStandardEncoding’
1319​:byte_t.c​:10​:24​: error​: array size missing in ‘utf8_MacArabic’
1323​:byte_t.c​:11​:24​: error​: array size missing in ‘utf8_MacCentralEurRoman’
1327​:byte_t.c​:12​:24​: error​: array size missing in ‘utf8_MacCroatian’
1331​:byte_t.c​:13​:24​: error​: array size missing in ‘utf8_MacCyrillic’
1335​:byte_t.c​:14​:24​: error​: array size missing in ‘utf8_MacFarsi’
1339​:byte_t.c​:15​:24​: error​: array size missing in ‘utf8_MacGreek’
1343​:byte_t.c​:16​:24​: error​: array size missing in ‘utf8_MacHebrew’
1347​:byte_t.c​:17​:24​: error​: array size missing in ‘utf8_MacIcelandic’
1351​:byte_t.c​:18​:24​: error​: array size missing in ‘utf8_MacRoman’
1355​:byte_t.c​:19​:24​: error​: array size missing in ‘utf8_MacRomanian’
1359​:byte_t.c​:20​:24​: error​: array size missing in ‘utf8_MacRumanian’
1363​:byte_t.c​:21​:24​: error​: array size missing in ‘utf8_MacSami’
1367​:byte_t.c​:22​:24​: error​: array size missing in ‘utf8_MacThai’
1371​:byte_t.c​:23​:24​: error​: array size missing in ‘utf8_MacTurkish’
1375​:byte_t.c​:24​:24​: error​: array size missing in ‘utf8_cp1006’
1379​:byte_t.c​:25​:24​: error​: array size missing in ‘utf8_cp1250’
1383​:byte_t.c​:26​:24​: error​: array size missing in ‘utf8_cp1251’
1387​:byte_t.c​:27​:24​: error​: array size missing in ‘utf8_cp1252’
1391​:byte_t.c​:28​:24​: error​: array size missing in ‘utf8_cp1253’
1395​:byte_t.c​:29​:24​: error​: array size missing in ‘utf8_cp1254’
1399​:byte_t.c​:30​:24​: error​: array size missing in ‘utf8_cp1255’
1403​:byte_t.c​:31​:24​: error​: array size missing in ‘utf8_cp1256’
1407​:byte_t.c​:32​:24​: error​: array size missing in ‘utf8_cp1257’
1411​:byte_t.c​:33​:24​: error​: array size missing in ‘utf8_cp1258’
1415​:byte_t.c​:34​:24​: error​: array size missing in ‘utf8_cp424’
1419​:byte_t.c​:35​:24​: error​: array size missing in ‘utf8_cp437’
1423​:byte_t.c​:36​:24​: error​: array size missing in ‘utf8_cp737’
1427​:byte_t.c​:37​:24​: error​: array size missing in ‘utf8_cp775’
1431​:byte_t.c​:38​:24​: error​: array size missing in ‘utf8_cp850’
1435​:byte_t.c​:39​:24​: error​: array size missing in ‘utf8_cp852’
1439​:byte_t.c​:40​:24​: error​: array size missing in ‘utf8_cp855’
1443​:byte_t.c​:41​:24​: error​: array size missing in ‘utf8_cp856’
1447​:byte_t.c​:42​:24​: error​: array size missing in ‘utf8_cp857’
1451​:byte_t.c​:43​:24​: error​: array size missing in ‘utf8_cp858’
1455​:byte_t.c​:44​:24​: error​: array size missing in ‘utf8_cp860’
1459​:byte_t.c​:45​:24​: error​: array size missing in ‘utf8_cp861’
1463​:byte_t.c​:46​:24​: error​: array size missing in ‘utf8_cp862’
1467​:byte_t.c​:47​:24​: error​: array size missing in ‘utf8_cp863’
1471​:byte_t.c​:48​:24​: error​: array size missing in ‘utf8_cp864’
1475​:byte_t.c​:49​:24​: error​: array size missing in ‘utf8_cp865’
1479​:byte_t.c​:50​:24​: error​: array size missing in ‘utf8_cp866’
1483​:byte_t.c​:51​:24​: error​: array size missing in ‘utf8_cp869’
1487​:byte_t.c​:52​:24​: error​: array size missing in ‘utf8_cp874’
1491​:byte_t.c​:53​:24​: error​: array size missing in ‘utf8_hp_roman8’
1495​:byte_t.c​:54​:24​: error​: array size missing in ‘utf8_iso_8859_2’
1499​:byte_t.c​:55​:24​: error​: array size missing in ‘utf8_iso_8859_3’
1503​:byte_t.c​:56​:24​: error​: array size missing in ‘utf8_iso_8859_4’
1507​:byte_t.c​:57​:24​: error​: array size missing in ‘utf8_iso_8859_5’
1511​:byte_t.c​:58​:24​: error​: array size missing in ‘utf8_iso_8859_6’
1515​:byte_t.c​:59​:24​: error​: array size missing in ‘utf8_iso_8859_7’
1519​:byte_t.c​:60​:24​: error​: array size missing in ‘utf8_iso_8859_8’
1523​:byte_t.c​:61​:24​: error​: array size missing in ‘utf8_iso_8859_9’
1527​:byte_t.c​:62​:24​: error​: array size missing in ‘utf8_iso_8859_10’
1531​:byte_t.c​:63​:24​: error​: array size missing in ‘utf8_iso_8859_11’
1535​:byte_t.c​:64​:24​: error​: array size missing in ‘utf8_iso_8859_13’
1539​:byte_t.c​:65​:24​: error​: array size missing in ‘utf8_iso_8859_14’
1543​:byte_t.c​:66​:24​: error​: array size missing in ‘utf8_iso_8859_15’
1547​:byte_t.c​:67​:24​: error​: array size missing in ‘utf8_iso_8859_16’
1551​:byte_t.c​:68​:24​: error​: array size missing in ‘utf8_koi8_f’
1555​:byte_t.c​:69​:24​: error​: array size missing in ‘utf8_koi8_r’
1559​:byte_t.c​:70​:24​: error​: array size missing in ‘utf8_koi8_u’
1563​:byte_t.c​:71​:24​: error​: array size missing in ‘utf8_nextstep’
1567​:byte_t.c​:72​:24​: error​: array size missing in ‘utf8_viscii’
1571​:byte_t.c​:867​:24​: error​: conflicting types for ‘utf8_AdobeStandardEncoding’
1577​:byte_t.c​:984​:24​: error​: conflicting types for ‘utf8_MacArabic’
1583​:byte_t.c​:1134​:24​: error​: conflicting types for ‘utf8_MacCentralEurRoman’
1589​:byte_t.c​:1309​:24​: error​: conflicting types for ‘utf8_MacCroatian’
1595​:byte_t.c​:1439​:24​: error​: conflicting types for ‘utf8_MacCyrillic’
1601​:byte_t.c​:1556​:24​: error​: conflicting types for ‘utf8_MacFarsi’
1607​:byte_t.c​:1679​:24​: error​: conflicting types for ‘utf8_MacGreek’
1613​:byte_t.c​:1788​:24​: error​: conflicting types for ‘utf8_MacHebrew’
1619​:byte_t.c​:1952​:24​: error​: conflicting types for ‘utf8_MacIcelandic’
1625​:byte_t.c​:2133​:24​: error​: conflicting types for ‘utf8_MacRoman’
1631​:byte_t.c​:2319​:24​: error​: conflicting types for ‘utf8_MacRomanian’
1637​:byte_t.c​:2496​:24​: error​: conflicting types for ‘utf8_MacRumanian’
1643​:byte_t.c​:2659​:24​: error​: conflicting types for ‘utf8_MacSami’
1649​:byte_t.c​:2745​:24​: error​: conflicting types for ‘utf8_MacThai’
1655​:byte_t.c​:2910​:24​: error​: conflicting types for ‘utf8_MacTurkish’
1661​:byte_t.c​:3049​:24​: error​: conflicting types for ‘utf8_cp1006’
1667​:byte_t.c​:3167​:24​: error​: conflicting types for ‘utf8_cp1250’
1673​:byte_t.c​:3255​:24​: error​: conflicting types for ‘utf8_cp1251’
1679​:byte_t.c​:3343​:24​: error​: conflicting types for ‘utf8_cp1252’
1685​:byte_t.c​:3431​:24​: error​: conflicting types for ‘utf8_cp1253’
1691​:byte_t.c​:3527​:24​: error​: conflicting types for ‘utf8_cp1254’
1697​:byte_t.c​:3629​:24​: error​: conflicting types for ‘utf8_cp1255’
1703​:byte_t.c​:3763​:24​: error​: conflicting types for ‘utf8_cp1256’
1709​:byte_t.c​:3880​:24​: error​: conflicting types for ‘utf8_cp1257’
1715​:byte_t.c​:3994​:24​: error​: conflicting types for ‘utf8_cp1258’
1721​:byte_t.c​:4099​:24​: error​: conflicting types for ‘utf8_cp424’
1727​:byte_t.c​:4255​:24​: error​: conflicting types for ‘utf8_cp437’
1733​:byte_t.c​:4367​:24​: error​: conflicting types for ‘utf8_cp737’
1739​:byte_t.c​:4517​:24​: error​: conflicting types for ‘utf8_cp775’
1745​:byte_t.c​:4619​:24​: error​: conflicting types for ‘utf8_cp850’
1751​:byte_t.c​:4759​:24​: error​: conflicting types for ‘utf8_cp852’
1757​:byte_t.c​:4865​:24​: error​: conflicting types for ‘utf8_cp855’
1763​:byte_t.c​:4969​:24​: error​: conflicting types for ‘utf8_cp856’
1769​:byte_t.c​:5070​:24​: error​: conflicting types for ‘utf8_cp857’
1775​:byte_t.c​:5175​:24​: error​: conflicting types for ‘utf8_cp858’
1781​:byte_t.c​:5324​:24​: error​: conflicting types for ‘utf8_cp860’
1787​:byte_t.c​:5486​:24​: error​: conflicting types for ‘utf8_cp861’
1793​:byte_t.c​:5646​:24​: error​: conflicting types for ‘utf8_cp862’
1799​:byte_t.c​:5806​:24​: error​: conflicting types for ‘utf8_cp863’
1805​:byte_t.c​:5999​:24​: error​: conflicting types for ‘utf8_cp864’
1811​:byte_t.c​:6161​:24​: error​: conflicting types for ‘utf8_cp865’
1817​:byte_t.c​:6260​:24​: error​: conflicting types for ‘utf8_cp866’
1823​:byte_t.c​:6372​:24​: error​: conflicting types for ‘utf8_cp869’
1829​:byte_t.c​:6434​:24​: error​: conflicting types for ‘utf8_cp874’
1835​:byte_t.c​:6511​:24​: error​: conflicting types for ‘utf8_hp_roman8’
1841​:byte_t.c​:6592​:24​: error​: conflicting types for ‘utf8_iso_8859_2’
1847​:byte_t.c​:6663​:24​: error​: conflicting types for ‘utf8_iso_8859_3’
1853​:byte_t.c​:6738​:24​: error​: conflicting types for ‘utf8_iso_8859_4’
1859​:byte_t.c​:6785​:24​: error​: conflicting types for ‘utf8_iso_8859_5’
1865​:byte_t.c​:6826​:24​: error​: conflicting types for ‘utf8_iso_8859_6’
1871​:byte_t.c​:6896​:24​: error​: conflicting types for ‘utf8_iso_8859_7’
1877​:byte_t.c​:6946​:24​: error​: conflicting types for ‘utf8_iso_8859_8’
1883​:byte_t.c​:6985​:24​: error​: conflicting types for ‘utf8_iso_8859_9’
1889​:byte_t.c​:7062​:24​: error​: conflicting types for ‘utf8_iso_8859_10’
1895​:byte_t.c​:7102​:24​: error​: conflicting types for ‘utf8_iso_8859_11’
1901​:byte_t.c​:7186​:24​: error​: conflicting types for ‘utf8_iso_8859_13’
1907​:byte_t.c​:7284​:24​: error​: conflicting types for ‘utf8_iso_8859_14’
1913​:byte_t.c​:7335​:24​: error​: conflicting types for ‘utf8_iso_8859_15’
1919​:byte_t.c​:7421​:24​: error​: conflicting types for ‘utf8_iso_8859_16’
1925​:byte_t.c​:7517​:24​: error​: conflicting types for ‘utf8_koi8_f’
1931​:byte_t.c​:7623​:24​: error​: conflicting types for ‘utf8_koi8_r’
1937​:byte_t.c​:7758​:24​: error​: conflicting types for ‘utf8_koi8_u’
1943​:byte_t.c​:7862​:24​: error​: conflicting types for ‘utf8_nextstep’
1949​:byte_t.c​:7980​:24​: error​: conflicting types for ‘utf8_viscii’
1962​:byte_t.c​:9​:24​: error​: array size missing in ‘utf8_AdobeStandardEncoding’
1966​:byte_t.c​:10​:24​: error​: array size missing in ‘utf8_MacArabic’
1970​:byte_t.c​:11​:24​: error​: array size missing in ‘utf8_MacCentralEurRoman’
1974​:byte_t.c​:12​:24​: error​: array size missing in ‘utf8_MacCroatian’
1978​:byte_t.c​:13​:24​: error​: array size missing in ‘utf8_MacCyrillic’
1982​:byte_t.c​:14​:24​: error​: array size missing in ‘utf8_MacFarsi’
1986​:byte_t.c​:15​:24​: error​: array size missing in ‘utf8_MacGreek’
1990​:byte_t.c​:16​:24​: error​: array size missing in ‘utf8_MacHebrew’
1994​:byte_t.c​:17​:24​: error​: array size missing in ‘utf8_MacIcelandic’
1998​:byte_t.c​:18​:24​: error​: array size missing in ‘utf8_MacRoman’
2002​:byte_t.c​:19​:24​: error​: array size missing in ‘utf8_MacRomanian’
2006​:byte_t.c​:20​:24​: error​: array size missing in ‘utf8_MacRumanian’
2010​:byte_t.c​:21​:24​: error​: array size missing in ‘utf8_MacSami’
2014​:byte_t.c​:22​:24​: error​: array size missing in ‘utf8_MacThai’
2018​:byte_t.c​:23​:24​: error​: array size missing in ‘utf8_MacTurkish’
2022​:byte_t.c​:24​:24​: error​: array size missing in ‘utf8_cp1006’
2026​:byte_t.c​:25​:24​: error​: array size missing in ‘utf8_cp1250’
2030​:byte_t.c​:26​:24​: error​: array size missing in ‘utf8_cp1251’
2034​:byte_t.c​:27​:24​: error​: array size missing in ‘utf8_cp1252’
2038​:byte_t.c​:28​:24​: error​: array size missing in ‘utf8_cp1253’
2042​:byte_t.c​:29​:24​: error​: array size missing in ‘utf8_cp1254’
2046​:byte_t.c​:30​:24​: error​: array size missing in ‘utf8_cp1255’
2050​:byte_t.c​:31​:24​: error​: array size missing in ‘utf8_cp1256’
2054​:byte_t.c​:32​:24​: error​: array size missing in ‘utf8_cp1257’
2058​:byte_t.c​:33​:24​: error​: array size missing in ‘utf8_cp1258’
2062​:byte_t.c​:34​:24​: error​: array size missing in ‘utf8_cp424’
2066​:byte_t.c​:35​:24​: error​: array size missing in ‘utf8_cp437’
2070​:byte_t.c​:36​:24​: error​: array size missing in ‘utf8_cp737’
2074​:byte_t.c​:37​:24​: error​: array size missing in ‘utf8_cp775’
2078​:byte_t.c​:38​:24​: error​: array size missing in ‘utf8_cp850’
2082​:byte_t.c​:39​:24​: error​: array size missing in ‘utf8_cp852’
2086​:byte_t.c​:40​:24​: error​: array size missing in ‘utf8_cp855’
2090​:byte_t.c​:41​:24​: error​: array size missing in ‘utf8_cp856’
2094​:byte_t.c​:42​:24​: error​: array size missing in ‘utf8_cp857’
2098​:byte_t.c​:43​:24​: error​: array size missing in ‘utf8_cp858’
2102​:byte_t.c​:44​:24​: error​: array size missing in ‘utf8_cp860’
2106​:byte_t.c​:45​:24​: error​: array size missing in ‘utf8_cp861’
2110​:byte_t.c​:46​:24​: error​: array size missing in ‘utf8_cp862’
2114​:byte_t.c​:47​:24​: error​: array size missing in ‘utf8_cp863’
2118​:byte_t.c​:48​:24​: error​: array size missing in ‘utf8_cp864’
2122​:byte_t.c​:49​:24​: error​: array size missing in ‘utf8_cp865’
2126​:byte_t.c​:50​:24​: error​: array size missing in ‘utf8_cp866’
2130​:byte_t.c​:51​:24​: error​: array size missing in ‘utf8_cp869’
2134​:byte_t.c​:52​:24​: error​: array size missing in ‘utf8_cp874’
2138​:byte_t.c​:53​:24​: error​: array size missing in ‘utf8_hp_roman8’
2142​:byte_t.c​:54​:24​: error​: array size missing in ‘utf8_iso_8859_2’
2146​:byte_t.c​:55​:24​: error​: array size missing in ‘utf8_iso_8859_3’
2150​:byte_t.c​:56​:24​: error​: array size missing in ‘utf8_iso_8859_4’
2154​:byte_t.c​:57​:24​: error​: array size missing in ‘utf8_iso_8859_5’
2158​:byte_t.c​:58​:24​: error​: array size missing in ‘utf8_iso_8859_6’
2162​:byte_t.c​:59​:24​: error​: array size missing in ‘utf8_iso_8859_7’
2166​:byte_t.c​:60​:24​: error​: array size missing in ‘utf8_iso_8859_8’
2170​:byte_t.c​:61​:24​: error​: array size missing in ‘utf8_iso_8859_9’
2174​:byte_t.c​:62​:24​: error​: array size missing in ‘utf8_iso_8859_10’
2178​:byte_t.c​:63​:24​: error​: array size missing in ‘utf8_iso_8859_11’
2182​:byte_t.c​:64​:24​: error​: array size missing in ‘utf8_iso_8859_13’
2186​:byte_t.c​:65​:24​: error​: array size missing in ‘utf8_iso_8859_14’
2190​:byte_t.c​:66​:24​: error​: array size missing in ‘utf8_iso_8859_15’
2194​:byte_t.c​:67​:24​: error​: array size missing in ‘utf8_iso_8859_16’
2198​:byte_t.c​:68​:24​: error​: array size missing in ‘utf8_koi8_f’
2202​:byte_t.c​:69​:24​: error​: array size missing in ‘utf8_koi8_r’
2206​:byte_t.c​:70​:24​: error​: array size missing in ‘utf8_koi8_u’
2210​:byte_t.c​:71​:24​: error​: array size missing in ‘utf8_nextstep’
2214​:byte_t.c​:72​:24​: error​: array size missing in ‘utf8_viscii’
2218​:byte_t.c​:867​:24​: error​: conflicting types for ‘utf8_AdobeStandardEncoding’
2224​:byte_t.c​:984​:24​: error​: conflicting types for ‘utf8_MacArabic’
2230​:byte_t.c​:1134​:24​: error​: conflicting types for ‘utf8_MacCentralEurRoman’
2236​:byte_t.c​:1309​:24​: error​: conflicting types for ‘utf8_MacCroatian’
2242​:byte_t.c​:1439​:24​: error​: conflicting types for ‘utf8_MacCyrillic’
2248​:byte_t.c​:1556​:24​: error​: conflicting types for ‘utf8_MacFarsi’
2254​:byte_t.c​:1679​:24​: error​: conflicting types for ‘utf8_MacGreek’
2260​:byte_t.c​:1788​:24​: error​: conflicting types for ‘utf8_MacHebrew’
2266​:byte_t.c​:1952​:24​: error​: conflicting types for ‘utf8_MacIcelandic’
2272​:byte_t.c​:2133​:24​: error​: conflicting types for ‘utf8_MacRoman’
2278​:byte_t.c​:2319​:24​: error​: conflicting types for ‘utf8_MacRomanian’
2284​:byte_t.c​:2496​:24​: error​: conflicting types for ‘utf8_MacRumanian’
2290​:byte_t.c​:2659​:24​: error​: conflicting types for ‘utf8_MacSami’
2296​:byte_t.c​:2745​:24​: error​: conflicting types for ‘utf8_MacThai’
2302​:byte_t.c​:2910​:24​: error​: conflicting types for ‘utf8_MacTurkish’
2308​:byte_t.c​:3049​:24​: error​: conflicting types for ‘utf8_cp1006’
2314​:byte_t.c​:3167​:24​: error​: conflicting types for ‘utf8_cp1250’
2320​:byte_t.c​:3255​:24​: error​: conflicting types for ‘utf8_cp1251’
2326​:byte_t.c​:3343​:24​: error​: conflicting types for ‘utf8_cp1252’
2332​:byte_t.c​:3431​:24​: error​: conflicting types for ‘utf8_cp1253’
2338​:byte_t.c​:3527​:24​: error​: conflicting types for ‘utf8_cp1254’
2344​:byte_t.c​:3629​:24​: error​: conflicting types for ‘utf8_cp1255’
2350​:byte_t.c​:3763​:24​: error​: conflicting types for ‘utf8_cp1256’
2356​:byte_t.c​:3880​:24​: error​: conflicting types for ‘utf8_cp1257’
2362​:byte_t.c​:3994​:24​: error​: conflicting types for ‘utf8_cp1258’
2368​:byte_t.c​:4099​:24​: error​: conflicting types for ‘utf8_cp424’
2374​:byte_t.c​:4255​:24​: error​: conflicting types for ‘utf8_cp437’
2380​:byte_t.c​:4367​:24​: error​: conflicting types for ‘utf8_cp737’
2386​:byte_t.c​:4517​:24​: error​: conflicting types for ‘utf8_cp775’
2392​:byte_t.c​:4619​:24​: error​: conflicting types for ‘utf8_cp850’
2398​:byte_t.c​:4759​:24​: error​: conflicting types for ‘utf8_cp852’
2404​:byte_t.c​:4865​:24​: error​: conflicting types for ‘utf8_cp855’
2410​:byte_t.c​:4969​:24​: error​: conflicting types for ‘utf8_cp856’
2416​:byte_t.c​:5070​:24​: error​: conflicting types for ‘utf8_cp857’
2422​:byte_t.c​:5175​:24​: error​: conflicting types for ‘utf8_cp858’
2428​:byte_t.c​:5324​:24​: error​: conflicting types for ‘utf8_cp860’
2434​:byte_t.c​:5486​:24​: error​: conflicting types for ‘utf8_cp861’
2440​:byte_t.c​:5646​:24​: error​: conflicting types for ‘utf8_cp862’
2446​:byte_t.c​:5806​:24​: error​: conflicting types for ‘utf8_cp863’
2452​:byte_t.c​:5999​:24​: error​: conflicting types for ‘utf8_cp864’
2458​:byte_t.c​:6161​:24​: error​: conflicting types for ‘utf8_cp865’
2464​:byte_t.c​:6260​:24​: error​: conflicting types for ‘utf8_cp866’
2470​:byte_t.c​:6372​:24​: error​: conflicting types for ‘utf8_cp869’
2476​:byte_t.c​:6434​:24​: error​: conflicting types for ‘utf8_cp874’
2482​:byte_t.c​:6511​:24​: error​: conflicting types for ‘utf8_hp_roman8’
2488​:byte_t.c​:6592​:24​: error​: conflicting types for ‘utf8_iso_8859_2’
2494​:byte_t.c​:6663​:24​: error​: conflicting types for ‘utf8_iso_8859_3’
2500​:byte_t.c​:6738​:24​: error​: conflicting types for ‘utf8_iso_8859_4’
2506​:byte_t.c​:6785​:24​: error​: conflicting types for ‘utf8_iso_8859_5’
2512​:byte_t.c​:6826​:24​: error​: conflicting types for ‘utf8_iso_8859_6’
2518​:byte_t.c​:6896​:24​: error​: conflicting types for ‘utf8_iso_8859_7’
2524​:byte_t.c​:6946​:24​: error​: conflicting types for ‘utf8_iso_8859_8’
2530​:byte_t.c​:6985​:24​: error​: conflicting types for ‘utf8_iso_8859_9’
2536​:byte_t.c​:7062​:24​: error​: conflicting types for ‘utf8_iso_8859_10’
2542​:byte_t.c​:7102​:24​: error​: conflicting types for ‘utf8_iso_8859_11’
2548​:byte_t.c​:7186​:24​: error​: conflicting types for ‘utf8_iso_8859_13’
2554​:byte_t.c​:7284​:24​: error​: conflicting types for ‘utf8_iso_8859_14’
2560​:byte_t.c​:7335​:24​: error​: conflicting types for ‘utf8_iso_8859_15’
2566​:byte_t.c​:7421​:24​: error​: conflicting types for ‘utf8_iso_8859_16’
2572​:byte_t.c​:7517​:24​: error​: conflicting types for ‘utf8_koi8_f’
2578​:byte_t.c​:7623​:24​: error​: conflicting types for ‘utf8_koi8_r’
2584​:byte_t.c​:7758​:24​: error​: conflicting types for ‘utf8_koi8_u’
2590​:byte_t.c​:7862​:24​: error​: conflicting types for ‘utf8_nextstep’
2596​:byte_t.c​:7980​:24​: error​: conflicting types for ‘utf8_viscii’

@p5pRT
Copy link
Author

p5pRT commented Dec 29, 2014

From @jkeenan

On Sun Dec 28 17​:36​:33 2014, jkeenan wrote​:

On Sat Dec 20 11​:09​:39 2014, slaven@​rezic.de wrote​:

Compilation stops with​:
...
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-
strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra
-Wc++-
compat -Wwrite-strings -O -DVERSION=\"2.67\"
-DXS_VERSION=\"2.67\"
-DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-
strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra
-Wc++-
compat -Wwrite-strings -O -DVERSION=\"2.67\"
-DXS_VERSION=\"2.67\"
-DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
Unsuccessful make(cpan/Encode)​: code=256 at make_ext.pl line 574.
*** [lib/auto/Encode/Encode.so] Error code 1

Stop in /usr/local/src/perl-5.21.7.

---

My workaround​:

cd cpan/Encode && perl -i -pe 's/-pedantic//' Makefile; perl -i -pe
's/-pedantic//' */Makefile

Regards,
Slaven

A finding which is probably consistent with yours​: I configure and
build blead with the following variants​:

#####
sh ./Configure -des -Dusedevel && make test_prep

sh ./Configure -des -Dusedevel -Dgccansipedantic && make test_prep
#####

When I log the output of the respective 'make test_prep' commands and
then vimdiff them, all the errors appear related to the Encode
distribution's byte_t.c file. See attached grep of that diff.

This is indeed a problem with Encode. Results of a bisect​:

#####
byte_t.c​:7980​:24​: error​: conflicting types for ‘utf8_viscii’
static const encpage_t utf8_viscii[12] = {
  ^
byte_t.c​:72​:24​: note​: previous declaration of ‘utf8_viscii’ was here
static const encpage_t utf8_viscii[];
  ^
make[2]​: *** [byte_t.o] Error 1
make[2]​: Leaving directory `/home/jkeenan/gitwork/perl/cpan/Encode/Byte'
make[1]​: *** [subdirs] Error 2
make[1]​: Leaving directory `/home/jkeenan/gitwork/perl/cpan/Encode'
Unsuccessful make(cpan/Encode)​: code=512 at make_ext.pl line 564.
make​: *** [lib/auto/Encode/Encode.so] Error 25
2e0c081 is the first bad commit
commit 2e0c081
Author​: Chris 'BinGOs' Williams <chris@​bingosnet.co.uk>
Date​: Thu Nov 27 22​:27​:32 2014 +0000

  Update Encode to CPAN version 2.65
 
  [DELTA]
 
  $Revision​: 2.65 $ $Date​: 2014/11/27 14​:08​:33 $
  ! Changes Encode.xs bin/enc2xs
  Applied 3 patches from jhi​:
  0001-For-C-don-t-use-the-array-size-in-forward-declaratiotion
  0002-Unused-variables
  0003-1-needs-casting-to-STRLEN
  Message-Id​: <54753674.6070909@​iki.fi>

:040000 040000 349b086039888886658421547062207756ae9fd8 2b394ef7c441ade3389bbede541bb39869d4f558 M Porting
:040000 040000 9b4670bbd76d93ff8ddc8f7537fe2b6e59689aeb 909500836526347ed036dd5aa0049946422338a5 M cpan
bisect run success
#####
--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Dec 2, 2016

From @jkeenan

On Mon, 29 Dec 2014 03​:06​:19 GMT, jkeenan wrote​:

On Sun Dec 28 17​:36​:33 2014, jkeenan wrote​:

On Sat Dec 20 11​:09​:39 2014, slaven@​rezic.de wrote​:

Compilation stops with​:
...
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-fno-
strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra
-Wc++-
compat -Wwrite-strings -O -DVERSION=\"2.67\"
-DXS_VERSION=\"2.67\"
-DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was
here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
ccache cc -c -I./Encode -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-fno-
strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_FORTIFY_SOURCE=2 -Wall -pedantic -DPERL_GCC_PEDANTIC -Wextra
-Wc++-
compat -Wwrite-strings -O -DVERSION=\"2.67\"
-DXS_VERSION=\"2.67\"
-DPIC -fPIC "-I../.." def_t.c
def_t.c​:9​: error​: array size missing in 'utf8_iso_8859_1'
def_t.c​:73​: error​: conflicting types for 'utf8_iso_8859_1'
def_t.c​:9​: error​: previous declaration of 'utf8_iso_8859_1' was
here
*** [def_t.o] Error code 1

Stop in /usr/local/src/perl-5.21.7/cpan/Encode.
Unsuccessful make(cpan/Encode)​: code=256 at make_ext.pl line 574.
*** [lib/auto/Encode/Encode.so] Error code 1

Stop in /usr/local/src/perl-5.21.7.

---

My workaround​:

cd cpan/Encode && perl -i -pe 's/-pedantic//' Makefile; perl -i -pe
's/-pedantic//' */Makefile

Regards,
Slaven

A finding which is probably consistent with yours​: I configure and
build blead with the following variants​:

#####
sh ./Configure -des -Dusedevel && make test_prep

sh ./Configure -des -Dusedevel -Dgccansipedantic && make test_prep
#####

When I log the output of the respective 'make test_prep' commands and
then vimdiff them, all the errors appear related to the Encode
distribution's byte_t.c file. See attached grep of that diff.

This is indeed a problem with Encode. Results of a bisect​:

#####
byte_t.c​:7980​:24​: error​: conflicting types for ‘utf8_viscii’
static const encpage_t utf8_viscii[12] = {
^
byte_t.c​:72​:24​: note​: previous declaration of ‘utf8_viscii’ was here
static const encpage_t utf8_viscii[];
^
make[2]​: *** [byte_t.o] Error 1
make[2]​: Leaving directory
`/home/jkeenan/gitwork/perl/cpan/Encode/Byte'
make[1]​: *** [subdirs] Error 2
make[1]​: Leaving directory `/home/jkeenan/gitwork/perl/cpan/Encode'
Unsuccessful make(cpan/Encode)​: code=512 at make_ext.pl line 564.
make​: *** [lib/auto/Encode/Encode.so] Error 25
2e0c081 is the first bad commit
commit 2e0c081
Author​: Chris 'BinGOs' Williams <chris@​bingosnet.co.uk>
Date​: Thu Nov 27 22​:27​:32 2014 +0000

Update Encode to CPAN version 2.65

[DELTA]

$Revision​: 2.65 $ $Date​: 2014/11/27 14​:08​:33 $
! Changes Encode.xs bin/enc2xs
Applied 3 patches from jhi​:
0001-For-C-don-t-use-the-array-size-in-forward-declaratiotion
0002-Unused-variables
0003-1-needs-casting-to-STRLEN
Message-Id​: <54753674.6070909@​iki.fi>

:040000 040000 349b086039888886658421547062207756ae9fd8
2b394ef7c441ade3389bbede541bb39869d4f558 M Porting
:040000 040000 9b4670bbd76d93ff8ddc8f7537fe2b6e59689aeb
909500836526347ed036dd5aa0049946422338a5 M cpan
bisect run success
#####

khw asked me to review the status of this RT. It should be noted that the original complaint was about perl-5.21.7 on FreeBSD-9.2. Neither that version of Perl nor that version of the OS is in support. So that's one reason to close the ticket.

We subsequently found build failures with

#####
sh ./Configure -des -Dusedevel -Dgccansipedantic
#####

on Linux -- suggesting that whatever problem there was had nothing to do with FreeBSD. Those build problems appeared to be related to Encode.

Tonight I configured and built Perl blead on Linux with the options cited above. While there were a lot of warnings during 'make' -- not surprising, given that -Dgccsansipedantic asks for them -- make test_harness ended with a PASS.

Closing ticket. Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Dec 2, 2016

@jkeenan - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant