From: "Steven Levine" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTPS id 753412 for gnuports@2rosenthals.com; Sun, 10 May 2020 15:56:21 -0400 Received: from secmgr-va.2rosenthals.com ([50.73.8.217]:55555 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1jXs3b-0007bz-2d for gnuports@2rosenthals.com; Sun, 10 May 2020 15:56:15 -0400 Received: from elasmtp-kukur.atl.sa.earthlink.net ([209.86.89.65]:48398) by mail2.2rosenthals.com with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1jXs3A-0002Sc-2U for gnuports@2rosenthals.com; Sun, 10 May 2020 15:55:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=earthlink.net; s=dk12062016; t=1589140548; bh=afpMjUmyit1QgV7/15PE8pvJhYcI9e2X5hQm 6LY9fy8=; h=Received:From:Date:To:In-Reply-To:Subject:X-Mailer: Message-ID:X-ELNK-Trace:X-Originating-IP; b=GulzJ/DkWXW99Uplpu6R4K 0Z8dkoBnRUaDo+5eooX71+nzCP489ODWBYAYLyHreNjj5rmofYKQzYRIU/MDIzsK5kw 2n/FemNC19iApnIp6Q7GFfeT4gOypdM/yncg/EQbgLb1hH6Kvd26taXVkL2FT0yG9cZ hXSwnvArgPagbQcZNIvibOeaUolxbKB3ED8K+kXFAMsVEKOVJFs1UqselOK7BK6IdoE 8C8P/jLcSCPneqE7x6Zem1YaGkgNKhNqpWJ7TtpjDKcbS8qtp35QznYDBD5pCCfkdX9 0/ZENIHiD/IeykQqiRx5Xn9RpNOEXZ9C6yqj9CvAs5SJBjY237cw== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk12062016; d=earthlink.net; b=kMoqn1Xt+TD0T9elL3hSrp8Uq87uTNsKKRjX8IrTTHnNaDRHA5ze95sZQoc4zqA6S6VNm0YNIgiGhejnEcEOe/W2idQm18+WWboVYZW5+mhIZoFUF/6Byn2XgtZIMRdMjIp+goxRWQOwBdGW/LSsqvNvTk4wm3cvndQw1rdFlx8dlZKlDdSvDZ/5A3J/KYORF7dy7aMfOD9d5FeMCJnQ0cJ/fVV69Az+cgTSiz+hMwAnju9uiMcz6gQW+ko5cf5nD7oC361dptxhRRtxXzXuvORyj/L5UCf4rdCQ4ALPaAhDkeVIRuo7GdMY6+CIohr5Mf6/jUwwrJwBL+EUkwXDUA==; h=Received:From:Date:To:In-Reply-To:Subject:X-Mailer:Message-ID:X-ELNK-Trace:X-Originating-IP; Received: from [108.193.252.60] (helo=slamain) by elasmtp-kukur.atl.sa.earthlink.net with esmtpa (Exim 4) (envelope-from ) id 1jXs39-000FUO-Pj for gnuports@2rosenthals.com; Sun, 10 May 2020 15:55:47 -0400 Date: Sun, 10 May 2020 12:28:49 -0700 To: "GNU Ports for eCS Mailing List" In-Reply-To: Subject: Re: [GNU Ports] _beginthread not declared X-Mailer: MR/2 Internet Cruiser Edition for OS/2 v3.00.11.21 BETA/60 Message-ID: X-ELNK-Trace: a1109158fca87577d780f4a490ca6956846b590522b13c9523fca9e2a88ca91496dbbbfb955f628c350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 108.193.252.60 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable In , on 05/10/20 at 06:19 PM, "Paul Smedley" said: Hi guys, >> Yet these turn into a fatal error if I declare __USE_EMX or such. >I remember a similar problem years ago with one port (I forget which). >I worked around it by adding the definition for _beginthread in the .c=20 >file that needed it. I guessed a bit backwards and the macro priorities. For _beginthread to be declared both __STRICT_ANSI__ and _POSIX_SOURCE must be undefined.=20 Best I can tell this logic is specific to our gcc/kLIBC ports. The use of _WITH_UNDERSCORE and __USE_EMX also appear to be specific to our gcc/kLIBC ports. __STRICT_ANSI__ is known to gcc and _POSIX_SOURCE is known to the POSIX standard. _POSIX_SOURCE appears to be deprecated in favor of _POSIX_C_SOURCE. One possible solution is to turn off the -ansi option which may allow _beginthread to be defined without negative side effects. Steven --=20 ---------------------------------------------------------------------- "Steven Levine" Warp/DIY/BlueLion etc. www.scoug.com www.arcanoae.com www.warpcave.com ---------------------------------------------------------------------- --=20 This email was Anti Virus checked by Astaro Security Gateway. http://www.so= phos.com