Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585098 - games-action/maelstrom-3.0.6-r2: with gcc-5.3.0: Maelstrom-netd.c:207:29: error: invalid suffix "-1" on integer constant serv_addr.sin_port = htons(NETPLAY_PORT-1);
Summary: games-action/maelstrom-3.0.6-r2: with gcc-5.3.0: Maelstrom-netd.c:207:29: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-06-05 10:53 UTC by Andrew Savchenko
Modified: 2016-06-05 14:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,72.44 KB, text/plain)
2016-06-05 10:53 UTC, Andrew Savchenko
Details
environment (environment,124.60 KB, text/plain)
2016-06-05 10:53 UTC, Andrew Savchenko
Details
emerge --info (emerge.info,11.18 KB, text/plain)
2016-06-05 10:54 UTC, Andrew Savchenko
Details
maelstrom-3.0.6-gcc53.patch (maelstrom-3.0.6-gcc53.patch,537 bytes, patch)
2016-06-05 10:55 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2016-06-05 10:53:29 UTC
Created attachment 436540 [details]
build.log

Hi,

with gcc-5.3 maelstrom fails to build:

Maelstrom-netd.c: In function ‘main’:
Maelstrom-netd.c:207:29: error: invalid suffix "-1" on integer constant
  serv_addr.sin_port        = htons(NETPLAY_PORT-1);
                             ^
Comment 1 Andrew Savchenko gentoo-dev 2016-06-05 10:53:53 UTC
Created attachment 436542 [details]
environment
Comment 2 Andrew Savchenko gentoo-dev 2016-06-05 10:54:20 UTC
Created attachment 436544 [details]
emerge --info
Comment 3 Andrew Savchenko gentoo-dev 2016-06-05 10:55:42 UTC
Created attachment 436546 [details, diff]
maelstrom-3.0.6-gcc53.patch

Patch is rather trivial.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2016-06-05 14:07:06 UTC
in portage.

thanks for the bug report and patch.