From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C8AA3854810; Mon, 21 Dec 2020 16:04:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C8AA3854810 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/98412] libcody does not compile with older GCC versions Date: Mon, 21 Dec 2020 16:04:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2020 16:04:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98412 --- Comment #3 from Eric Botcazou --- Thanks. The next errors are: /homes/botcazou/gcc-head/src/libcody/client.cc: In function 'Cody::Packet Cody::ConnectResponse(std::vector >&)': /homes/botcazou/gcc-head/src/libcody/client.cc:217:64: error: 'strtoul' was= not declared in this scope unsigned long val =3D strtoul (words[1].c_str (), &eptr, 10); ^ mv -f .deps/libz_a-trees.Tpo .deps/libz_a-trees.Po /homes/botcazou/gcc-head/src/libcody/server.cc: In function 'unsigned int Cody::ParseUnsigned(std::string&)': /homes/botcazou/gcc-head/src/libcody/server.cc:164:55: error: 'strtoul' was= not declared in this scope unsigned long val =3D strtoul (str.c_str (), &eptr, 10); and are fixed by adding #include to both files.=