Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

One small step for man, one giant stumble for mankind.


devel / comp.os.msdos.djgpp / Re: GNU pth during djgpp build time?

SubjectAuthor
* GNU pth during djgpp build time?janezz55
+* Re: GNU pth during djgpp build time?J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com]
|`* Re: GNU pth during djgpp build time?janezz55
| `* Re: GNU pth during djgpp build time?Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com]
|  `* Re: GNU pth during djgpp build time?janezz55
|   `* Re: GNU pth during djgpp build time?Ozkan Sezer (sezeroz@gmail.com) [via djgpp@delorie.com]
|    `* Re: GNU pth during djgpp build time?janezz55
|     `* Re: GNU pth during djgpp build time?Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com]
|      `* Re: GNU pth during djgpp build time?janezz55
|       `* Re: GNU pth during djgpp build time?Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com]
|        `- Re: GNU pth during djgpp build time?janezz55
`* Re: GNU pth during djgpp build time?J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com]
 `* Re: GNU pth during djgpp build time?janezz55
  `* Re: GNU pth during djgpp build time?J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com]
   `* Re: GNU pth during djgpp build time?janezz55
    `- Re: GNU pth during djgpp build time?J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com]

1
GNU pth during djgpp build time?

<a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=161&group=comp.os.msdos.djgpp#161

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:622a:5cb:b0:2f3:a081:e470 with SMTP id d11-20020a05622a05cb00b002f3a081e470mr5711443qtb.58.1651463346330;
Sun, 01 May 2022 20:49:06 -0700 (PDT)
X-Received: by 2002:a25:e70d:0:b0:649:10c:f3fa with SMTP id
e13-20020a25e70d000000b00649010cf3famr9085329ybh.126.1651463346139; Sun, 01
May 2022 20:49:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Sun, 1 May 2022 20:49:05 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.255.248; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.255.248
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
Subject: GNU pth during djgpp build time?
From: janezz55@gmail.com (janezz55)
Injection-Date: Mon, 02 May 2022 03:49:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 5
 by: janezz55 - Mon, 2 May 2022 03:49 UTC

I know a port exists, but for all I know it's an add-on to an already existing djgpp install, so no <thread> header becomes available after installing it. But if pth could be built during build-time of djgpp, <thread> would become available. Does any build script (for linux) feature this? I tried to do the hack myself, but it took too much time. Maybe there's an alternative to GNU pth to get <thread>?

Re: GNU pth during djgpp build time?

<e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=162&group=comp.os.msdos.djgpp#162

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 01 May 2022 23:48:06 -0500
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=59LYRkuigyVYqzbasTZ++Yi61XLXPOrvzqO53ECSm4g=;
b=i9wAzgXeMfV+4OHQGkGvY9wYiqyMOzd7t9ssL3ntPqSaP7aYndE+C/DHXocZmvlWBq
OWFJ4yZLI8QhWCXIa5K54Wp2KPYzJu+GRG2hUSSNGPyuqD/5+mSAcC2vKW+YnLG4Wx2v
7MzUMp5B4X2aJ4ZCyDkDbjKqalzNRPC2af82A53AvNtYjEYUzDuRI05idjsyd/RgpvE+
blrkCIsHAJKbpJO4YVudrZ4gMSSZwYFjw3j0J9vIagZndUzcRmM8zxqA1R1P9jvc3Pat
tONZt/zUDadfax36SeN1BuWstz+Y6+mZmeb0oY+HY0InAoo1uAkMf6gUq0IFPiMe/cJW
5i+g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=59LYRkuigyVYqzbasTZ++Yi61XLXPOrvzqO53ECSm4g=;
b=Dn3O/NTeY7c/EoEscfCsZK51aVC29bVN/gDL6GGn6c4H9+X6WrwbzgmpHk2AJVELSL
kFowff7V0bn7CBC8Fpr/jMob8QnP7PKFTTLvoYhXi/DSHHxmhzIaMLBF2CWCLQgxucal
xmd5GK7l5SMNzIFWb3L9nybmDGS9kpCdeg2ga1b/Fo6PSTjiKspA3o7sNDIlC+zGmPza
vvZWlbu+AWIF17uVq4AsS7Xg6OZ254IqMVo6xW9arWnlfSVOBSiPJYo8reWRRMPAPaQ1
l/MCQOA6qwdCiIwk65/givOCDmPiOd0vNYZ6kzI9HZcbsaLWrmZzTRR8hctZK4Xmb/jT
pKZw==
X-Gm-Message-State: AOAM5325YNmDp+HyUD4Rw2bCVTBqM3E7QVZTD5AwK2yC8/fHv+LtHdQ/
ImfS3nzgEt7CIryKsX8jvJm6PlyJkw4=
X-Google-Smtp-Source: ABdhPJxSe6GLqqlS5dan6U5cWOoqmqyAofX8QdWT11+8RsgrkEYC01eKoYAg/XdQeQqAT96JyRjc3Q==
X-Received: by 2002:a05:6402:4383:b0:427:b18b:a1b with SMTP id o3-20020a056402438300b00427b18b0a1bmr8226202edc.80.1651466877629;
Sun, 01 May 2022 21:47:57 -0700 (PDT)
Message-ID: <e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com>
Date: Mon, 2 May 2022 06:47:56 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Subject: Re: GNU pth during djgpp build time?
Content-Language: en-US
To: djgpp@delorie.com
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
From: djgpp@delorie.com (J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com])
In-Reply-To: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 2424m0o2028998
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 24
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-qBOh3rV+UFh7T9J4LkJs9GIDcpjfLzA2l+4DcYSCXGbOmWfxl9dT4spkyhcn7QfZWyzAxHyJgxbXwfY!d52P7ORTuv7/p4X3YB45mChitZi/SmeckzIcUH2Xa/0gyVAXUa2kiwBkBTZQLv8MVGcpGr+5jjzy
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4931
 by: J.W. Jagersma (jwjag - Mon, 2 May 2022 04:47 UTC

On 2022-05-02 05:49, janezz55 (janezz55@gmail.com) [via djgpp@delorie.com] wrote:
> I know a port exists, but for all I know it's an add-on to an already existing djgpp install, so no <thread> header becomes available after installing it. But if pth could be built during build-time of djgpp, <thread> would become available. Does any build script (for linux) feature this? I tried to do the hack myself, but it took too much time. Maybe there's an alternative to GNU pth to get <thread>?
>

Hi,

Installing GNU pth before building libstdc++ is an interesting idea, I might
experiment with that sometime. If I ever get anywhere with that I'll let you
know.

Although, pth uses cooperative scheduling, so any existing code that you might
want to port (if that is your goal) will have to be modified to call
this_thread::yield() at regular intervals.

Another thought, when libstdc++ detects thread support then things like
std::shared_ptr will be accessed via mutexes, that overhead may be undesirable.

For now, I have std::thread and std::jthread implementations in my dpmi
library [0], you may find that useful. It is cooperative like pth, but
pre-emptive scheduling could be implemented without much effort. So far I
haven't had any use for that though.

[0] https://github.com/jwt27/libjwdpmi/blob/experimental/include/jw/thread.h

Re: GNU pth during djgpp build time?

<c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=163&group=comp.os.msdos.djgpp#163

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:ac8:578c:0:b0:2f3:a7b7:878f with SMTP id v12-20020ac8578c000000b002f3a7b7878fmr1353425qta.186.1651472883040;
Sun, 01 May 2022 23:28:03 -0700 (PDT)
X-Received: by 2002:a25:3783:0:b0:645:73b9:5e39 with SMTP id
e125-20020a253783000000b0064573b95e39mr8986060yba.102.1651472882856; Sun, 01
May 2022 23:28:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Sun, 1 May 2022 23:28:02 -0700 (PDT)
In-Reply-To: <e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.255.248; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.255.248
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com> <e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
Subject: Re: GNU pth during djgpp build time?
From: janezz55@gmail.com (janezz55)
Injection-Date: Mon, 02 May 2022 06:28:03 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 6
 by: janezz55 - Mon, 2 May 2022 06:28 UTC

Perhaps my insight will help you:
1. I have found gnu pth supported the largest subset of pthreads of all alternatives, but it requires wattcp in order to build,
2. zlib is a dependency of wattcp, so it needs to be built first,
3. both zlib and wattcp require hacks to build,
4. gnu pth itself requires hacks to build, alas too many for me.

I stopped at 4th step.

Re: GNU pth during djgpp build time?

<1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=164&group=comp.os.msdos.djgpp#164

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 02 May 2022 07:03:26 -0500
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=t2cEz1p1ekBxdr0T/v8cnfkpjdRbksPCY6RrKuwj19k=;
b=fJLY7p/4BGVZOtbEzEfmQuxTcmAETqzoWYGzzx3RMwQx32To3OQvQMG9Kweo/gLHLL
goET02cweeBgm3SIv8SVVN70FZ2LTViiYDbPAth7M+pwXMz/aAQ3DR3Zw9VYkG5yJMUb
I4u0lhjVaHnd/h31RYvhIAeA/4zO54SG4V6Dfl+HQERSHS+lZIVrq9LoAhNn7s1Hpgeb
Usw+5XECXPlPg5zdNzGhdV8+iTernKMggxXqI8IX69OLGahJ+HZw+L9IRru+paTFXYt5
/bh3r3yrUuJZU7CwGq+ZEo+ek9NpI1nJMh8Rh2D2LDtsRWNfRN/rrlZyIMABvmtCyWYq
wwZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=t2cEz1p1ekBxdr0T/v8cnfkpjdRbksPCY6RrKuwj19k=;
b=aenwsoEjbZmj0jFEY7Lj293SHouSb1VmE0T8DG2Hg75COEsWFX0m3a5IhAh6rE2Eue
sB3pk5zBqBj/FIdattIEYG/RyeHfyLkulase+sf+sffpSlARyijreAv9uqtAxPGDwiZc
9c4HTtY3M1CPw3OpPPjisz6BP5NWfT+6V/klX2vnBKSiv87tOi4UGqDoZXOGOyQS4Rln
KUKvFOYu5DF9OhLl3r/EVLCcmZmZOAqg1EwxFaiJf7BDYiJuzfKOWCQh7QAwcdvkeQz0
44asPq8DjqtyRz9w35NcCtrTeOolAeXFMyxIYUQxIUXwUXBDkXlxRm0/3l3YaYcsYaek
KQ5A==
X-Gm-Message-State: AOAM530kQxdrhcVHGJWaVBn0IBhS02n6Wfv8YhMZLtbgTxsJd4JAH2hP
Ovs9/nOnPaRPrl5sUDFZtd7BjILmdpI=
X-Google-Smtp-Source: ABdhPJx5FHvBOQMojX3vmEI73LhX/GjVsAtl5tQBEfT/8GaRV9jfxmpGTEMos4RMJfOlgZDZwf7f7Q==
X-Received: by 2002:ac8:7e96:0:b0:2f3:82f4:e37c with SMTP id w22-20020ac87e96000000b002f382f4e37cmr10002354qtj.687.1651492994254;
Mon, 02 May 2022 05:03:14 -0700 (PDT)
Message-ID: <1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com>
Date: Mon, 2 May 2022 08:03:12 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Subject: Re: GNU pth during djgpp build time?
Content-Language: en-US
To: djgpp@delorie.com
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com>
<c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
From: djgpp@delorie.com (Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com])
In-Reply-To: <c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 13
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-c7Sp2O1r5To0MOkJKj7VaZguiyqLxWUC1Jo6C32rk8MC3koKim7P5HZnzgc53Iv96qCaR/USb1l8AJa!tmynZId1hl93e0hHBSRaX4o6EgpglSnJ5UrCGxqNJ95afS2w7sXiR/k3uc/fTb7AnU+9v4u1cnaU
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4221
 by: Frank Sapone (emoadd - Mon, 2 May 2022 12:03 UTC

On 5/2/2022 2:28 AM, janezz55 (janezz55@gmail.com) [via
djgpp@delorie.com] wrote:
> Perhaps my insight will help you:
> 1. I have found gnu pth supported the largest subset of pthreads of all alternatives, but it requires wattcp in order to build,
> 2. zlib is a dependency of wattcp, so it needs to be built first,
> 3. both zlib and wattcp require hacks to build,
> 4. gnu pth itself requires hacks to build, alas too many for me.
>
> I stopped at 4th step.

I don't recall zlib being needed to build wattcp and I don't recall it
being a hack to build for DJGPP either.  Did you read the docs?

Re: GNU pth during djgpp build time?

<69cccf40-7233-4bc4-86b1-5bd2ad12de20n@googlegroups.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=165&group=comp.os.msdos.djgpp#165

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:6214:e6a:b0:446:154a:7e02 with SMTP id jz10-20020a0562140e6a00b00446154a7e02mr9693385qvb.82.1651500550517;
Mon, 02 May 2022 07:09:10 -0700 (PDT)
X-Received: by 2002:a25:3783:0:b0:645:73b9:5e39 with SMTP id
e125-20020a253783000000b0064573b95e39mr9972490yba.102.1651500550296; Mon, 02
May 2022 07:09:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 2 May 2022 07:09:10 -0700 (PDT)
In-Reply-To: <1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.255.248; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.255.248
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com> <c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
<1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <69cccf40-7233-4bc4-86b1-5bd2ad12de20n@googlegroups.com>
Subject: Re: GNU pth during djgpp build time?
From: janezz55@gmail.com (janezz55)
Injection-Date: Mon, 02 May 2022 14:09:10 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 20
 by: janezz55 - Mon, 2 May 2022 14:09 UTC

Don't worry about me, I too managed to get zlib to build:

sed -i -e 's,"zlib/zlib\.h",<zlib.h>,' pcdbug.c
sed -i -e '/define Z_PREFIX/ d' config.h

sed -i -e '
s,\tar,\t$(AR),
s,\.\./util/nasm32,\t$(NASM),
s,\.\./util/bin2c,\t$(BIN2C),
s,-O2,-Ofast,
' makefile.all zlib/makefile.all
sed -i -e "
/CFLAGS/ s,=,= -fno-strict-aliasing -fgnu89-inline -march=i586 -I${srcdir}/zlib-${_zlver},
" makefile.all zlib/makefile.all
bash "$srcdir/mkmake.bash" DJGPP RELEASE <makefile.all >djgpp.mak

I don't really recall why I needed zlib, though, it was a long time ago. I am only guessing wattcp.

On Monday, May 2, 2022 at 2:03:32 PM UTC+2, Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com] wrote:
> I don't recall zlib being needed to build wattcp and I don't recall it
> being a hack to build for DJGPP either. Did you read the docs?

Re: GNU pth during djgpp build time?

<CAA2C=vCwMPo11zTXgcdgA2COrhkA3r16kNE8P3-QsguvTFoB+g@mail.gmail.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=166&group=comp.os.msdos.djgpp#166

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 02 May 2022 09:23:20 -0500
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=nojBRChVGtFNbJBlOke3mJZuzklopv9qsuaRd0T3SRk=;
b=BQTPIABeQepz82tuNPo7HlVr56Xo2EB7gxpRBqDP3NON0sNY22+4WIVHjRJOtpx2rt
mOpKegwCIYWnGGDeMy4WcCyNHOeYpGF8a3U2ONzdGXwxJCC4o8DB2npekKC83QduOjrU
Mz/9ze3UDomYeKLNLI5jtuFXKiLVndpfQDvXZNFiw4U29EzKtQoI7lnBzRn5IO6xkEsg
x3me+RpguLS3Oxsf7amg4b2JhfFSc2W1WHnVlg6teELioAVPxJ62Vg2RO76pA1k/I4xB
IhPqZOeoju4Q1ujLC8pAu8edxfRKerL0cJDqbSQJcKtQifAmgDjNt76+KtXfr0Jkn57q
9CqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=nojBRChVGtFNbJBlOke3mJZuzklopv9qsuaRd0T3SRk=;
b=kF0Hd9FY3C41Xga/RcWKiP0qdKqO6Q58RWNoqTNsW4mO/EqtTwchmYAdEmpQ5c74OF
fLL9AKRmIVHSH3IaKO0c9MjXMHGmS1SBKhS8uya4DjF+t21eVSOvBd21xiPUOyaTXXfB
+w/yvVEHHESSX/SI8rMd+eNlz5gaMo1JVJnU2IDU4gZSF1qhsvg0Qg7Wvt/xcjLzp/1t
ozKmSRatSdnRZJ9erku1LJssnlW65wCEe0N2Dhwd7vKQBU6SH/3M/YoxoyiWfebKz7/q
P10ahTvf4yMofmyfSXlIiHfKs3qjog1r9YxXI+LpCRYciWlfL781hPxY7Ku1l01ZblaQ
E+4g==
X-Gm-Message-State: AOAM530bnCo/2JjxACFaYAJWU8w8M0uf6TjKNxIaQXWi9v+wFkSweLZ9
XnXoB0qztHBY5B01JMPVVE+420zuVK9RbXpkAhv4vfMK
X-Google-Smtp-Source: ABdhPJz9gKhaKRvysDlkGaS4W/xe9XkqbrrPoyb0fZWUKchjAPf719RUPgKqG1WeRDKWXsbme5fMLtY4cjqAWbA6mog=
X-Received: by 2002:a05:6808:19a5:b0:326:26b7:984a with SMTP id
bj37-20020a05680819a500b0032626b7984amr272823oib.12.1651501383869; Mon, 02
May 2022 07:23:03 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <69cccf40-7233-4bc4-86b1-5bd2ad12de20n@googlegroups.com>
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com> <c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
<1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com> <69cccf40-7233-4bc4-86b1-5bd2ad12de20n@googlegroups.com>
From: djgpp@delorie.com (Ozkan Sezer (sezeroz@gmail.com) [via djgpp@delorie.com])
Date: Mon, 2 May 2022 17:23:03 +0300
Message-ID: <CAA2C=vCwMPo11zTXgcdgA2COrhkA3r16kNE8P3-QsguvTFoB+g@mail.gmail.com>
Subject: Re: GNU pth during djgpp build time?
To: djgpp@delorie.com
Content-Type: text/plain; charset="UTF-8"
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 6
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-MboQ3dL0+eLLME6lP4uWm1Rj/qT9lBAk8PX57aMTGP+ZlAKkYJzO9qfNbfne/RjvkiE6XLRdWll5U3o!VZJOk8D4tO3SWCa4Yj/xxcBNgP9dbBn3rBbnVdrLzkpD5nvl/1w9dceEuYawkuNH8SP5XME4hq4I!DVNoJjwqnFyoS6PBGmEHz6eKSI8=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3748
 by: Ozkan Sezer (sezeroz - Mon, 2 May 2022 14:23 UTC

On 5/2/22, janezz55 (janezz55@gmail.com) [via djgpp@delorie.com]
<djgpp@delorie.com> wrote:
> I don't really recall why I needed zlib, though, it was a long time ago. I
> am only guessing wattcp.

Zlib is a configurable wattcp option: see USE_GZIP_COMPR in config.h

Re: GNU pth during djgpp build time?

<980f9df1-91d7-4b29-a774-fda996354f9fn@googlegroups.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=167&group=comp.os.msdos.djgpp#167

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:ad4:5c4a:0:b0:456:4edb:3c04 with SMTP id a10-20020ad45c4a000000b004564edb3c04mr9849181qva.26.1651502342724;
Mon, 02 May 2022 07:39:02 -0700 (PDT)
X-Received: by 2002:a25:e792:0:b0:645:7ddb:b5eb with SMTP id
e140-20020a25e792000000b006457ddbb5ebmr10766088ybh.482.1651502342521; Mon, 02
May 2022 07:39:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 2 May 2022 07:39:02 -0700 (PDT)
In-Reply-To: <CAA2C=vCwMPo11zTXgcdgA2COrhkA3r16kNE8P3-QsguvTFoB+g@mail.gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.255.248; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.255.248
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com> <c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
<1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com> <69cccf40-7233-4bc4-86b1-5bd2ad12de20n@googlegroups.com>
<CAA2C=vCwMPo11zTXgcdgA2COrhkA3r16kNE8P3-QsguvTFoB+g@mail.gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <980f9df1-91d7-4b29-a774-fda996354f9fn@googlegroups.com>
Subject: Re: GNU pth during djgpp build time?
From: janezz55@gmail.com (janezz55)
Injection-Date: Mon, 02 May 2022 14:39:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 10
 by: janezz55 - Mon, 2 May 2022 14:39 UTC

On Monday, May 2, 2022 at 4:23:26 PM UTC+2, Ozkan Sezer (sezeroz@gmail.com) [via djgpp@delorie.com] wrote:
> > I don't really recall why I needed zlib, though, it was a long time ago.. I
> > am only guessing wattcp.
> Zlib is a configurable wattcp option: see USE_GZIP_COMPR in config.h
I don't really care anymore, I only built it, because it is a gnu pth dependency and if you build wattcp, you might zlib just as well. But building gnu pth failed for sure. This was done using xgcc, during gcc build-time. Maybe one of you manages to build gnu pth as well and then there will be a <thread> header available and pthreads.

Re: GNU pth during djgpp build time?

<122bf752-c95d-11fb-c578-4e06489c5bbc@gmail.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=168&group=comp.os.msdos.djgpp#168

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 02 May 2022 09:54:54 -0500
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=d1Wtd+KBLfaTPCFgLgInHODMwKZx3AY6LEcvZ5n6/7g=;
b=AnjHeXWdOaG0j4N0UtMyigMwa6ZhVFwMVTbx7+RvVGNmvzXlaD3cjYTR9RRBcYoFYU
kGS3F5O2T7CRMsgxW3CJo1AKSp+VBbVT1LDoxZIBS/zC24lRaU0sbmaZFFezkQ3tSzCU
94hLxM1wU5/OUm77GB7IYk6Ab8jFPXNkuaRt881ywJCqKoyqRBb7TUdJu4HXRv1N7yBQ
pbH+CndVHekbCKQJJ9C+HaVffcsiitNLt7kvNDn0MFkhnu+2StCFR7H34l/SBXS9ooXa
OJFOik1/sNwgBOZNDBt+wha/h6CJN/osd3y9H7MBKJV72DtNpSUa5fnKhA95EzaSR8tI
8g1w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=d1Wtd+KBLfaTPCFgLgInHODMwKZx3AY6LEcvZ5n6/7g=;
b=xqeYooLcpx7KZ2qoP7N9BtzAA47v5XTjH4LLJ6lLvTHXMXHYvOFuuLQjR/Mogma0re
6I2565tyqGKrOorrToFkptdCouwzATRtAhgZhamSlfaWf3PhaKilguEIeLziNAQBglD9
gJRM+RMU370UM81d1+xwATGu0xUJR8a+SAaFOmmg4hjfpR0Hc5koObfWNVXUtH1zfKZq
3m6+ixPIXfbp//ab0rDM7yRDot89PIT36ppMazTh3rn7oMttEkIkPy6u6rVmDxA0UR4G
UQDRuukF02GBe+iJ0WMHpxqTGlDd1TxY1IgUN1kQ2SeEBT3xBySQobzbG7Nnqn45KWr/
FDPQ==
X-Gm-Message-State: AOAM530c4nB3LBlneJIYMjYsxby8ezGnYjjiuES7IDoArVqZJAHfvgr2
li7ymA3EhYyWMtXQ7I/HcaUV8qlrNyc=
X-Google-Smtp-Source: ABdhPJzwlxowB+3i9XrfthJOMXjyzZ4lI9JvHABp+cI6lDIkryN0dZAaVEwprqDcQASKfEjOh2Zr0w==
X-Received: by 2002:a05:620a:2404:b0:69e:8102:acaf with SMTP id d4-20020a05620a240400b0069e8102acafmr8319458qkn.528.1651503289546;
Mon, 02 May 2022 07:54:49 -0700 (PDT)
Message-ID: <122bf752-c95d-11fb-c578-4e06489c5bbc@gmail.com>
Date: Mon, 2 May 2022 10:54:47 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Subject: Re: GNU pth during djgpp build time?
Content-Language: en-US
To: djgpp@delorie.com
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com>
<c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
<1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com>
<69cccf40-7233-4bc4-86b1-5bd2ad12de20n@googlegroups.com>
<CAA2C=vCwMPo11zTXgcdgA2COrhkA3r16kNE8P3-QsguvTFoB+g@mail.gmail.com>
<980f9df1-91d7-4b29-a774-fda996354f9fn@googlegroups.com>
From: djgpp@delorie.com (Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com])
In-Reply-To: <980f9df1-91d7-4b29-a774-fda996354f9fn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 9
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-4elG7H+i53K+l+JMg+es4NanSj0nbxHFdZ1SI+sTGgD/d4KqLtiCMGJyjCQgMqpsE6KkXll8OGAlDGp!0NkMu75d7GFmbJUP/1XzEVaCZbx2ANeZ7Ohr9yNU5iwmn6oBq/KS1kdNK/A9f1iMUgLhv0Q4coNf
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4493
 by: Frank Sapone (emoadd - Mon, 2 May 2022 14:54 UTC

On 5/2/2022 10:39 AM, janezz55 (janezz55@gmail.com) [via
djgpp@delorie.com] wrote:
>
> I don't really care anymore, I only built it, because it is a gnu pth dependency and if you build wattcp, you might zlib just as well. But building gnu pth failed for sure. This was done using xgcc, during gcc build-time. Maybe one of you manages to build gnu pth as well and then there will be a <thread> header available and pthreads.

Sorry you are getting frustrated.  I've never had to use pthreads under
DOS so I really have no idea if anyone has done it successfully and if
there's a precompiled port of it ready to go for your project.

Re: GNU pth during djgpp build time?

<72bea5e3-b6ae-4dd4-8f37-17248a198d4cn@googlegroups.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=169&group=comp.os.msdos.djgpp#169

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:620a:371c:b0:6a0:324:f9c9 with SMTP id de28-20020a05620a371c00b006a00324f9c9mr498293qkb.685.1651547842820;
Mon, 02 May 2022 20:17:22 -0700 (PDT)
X-Received: by 2002:a0d:eb4b:0:b0:2f8:9089:3ad4 with SMTP id
u72-20020a0deb4b000000b002f890893ad4mr13649152ywe.65.1651547842600; Mon, 02
May 2022 20:17:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 2 May 2022 20:17:22 -0700 (PDT)
In-Reply-To: <122bf752-c95d-11fb-c578-4e06489c5bbc@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.255.248; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.255.248
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com> <c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
<1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com> <69cccf40-7233-4bc4-86b1-5bd2ad12de20n@googlegroups.com>
<CAA2C=vCwMPo11zTXgcdgA2COrhkA3r16kNE8P3-QsguvTFoB+g@mail.gmail.com>
<980f9df1-91d7-4b29-a774-fda996354f9fn@googlegroups.com> <122bf752-c95d-11fb-c578-4e06489c5bbc@gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <72bea5e3-b6ae-4dd4-8f37-17248a198d4cn@googlegroups.com>
Subject: Re: GNU pth during djgpp build time?
From: janezz55@gmail.com (janezz55)
Injection-Date: Tue, 03 May 2022 03:17:22 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 4
 by: janezz55 - Tue, 3 May 2022 03:17 UTC

On Monday, May 2, 2022 at 4:55:00 PM UTC+2, Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com] wrote:
> Sorry you are getting frustrated. I've never had to use pthreads under
> DOS so I really have no idea if anyone has done it successfully and if
> there's a precompiled port of it ready to go for your project.
I'm just the maintainer of the "dosbox-gcc" PKGBUILD and was sharing thoughts with the rest of you. There is a lot of room for improvement: OpenGL (mesa3d), <thread>, sockets, ...

Re: GNU pth during djgpp build time?

<79e2521c-dd17-3ad7-a1c1-692bda907e2f@gmail.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=170&group=comp.os.msdos.djgpp#170

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 02 May 2022 23:11:37 -0500
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=xmjXoUAip4T7wFo4s5drZkfhBEZ20zY2Qpr9ctgVY1E=;
b=oLH3N38OVck+qExVwkTk4XBkkrItBzuU4t6gwTiVOCjnGqEWchIMp8Ihnp+UPfSPFh
UI5NXBASMskRtgXS6LveQYo5dAyM/rWvlWvHwSphi4hGAZR2VVp7J9uX5VSHik1hyktC
nzHMsYiv3C7NQ3WJFKd7d2NdJ1rXeTWuUE8w9bQWhELu32t/7gsxyvZo9trpMNz3LXrG
ggJW7BNNw5ptn4F5tZuG1JxpxaqKmiXIzCFsKL/v/0QjBsWZYpAJz1J8VT28oFH/WmVZ
p2SkztACbp8R8VPgFKSXDctafOSJ7EmSomSgZE7kwRbgd0bZ91rqQlsg2uw4KU0v4OqF
C9XA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=xmjXoUAip4T7wFo4s5drZkfhBEZ20zY2Qpr9ctgVY1E=;
b=cotBfm5Aqc7HavWcSzZIhUN6464ZVLur2OrXufm7wgayyMZYi14yA3VO/MrXg8Ezy5
SEjDw/MjIIWPxKZCeLA7eJk52hlR9wB6W9sHJ89B4rAYCRNVpz6nIn2gok+cTtrhGcSx
qDd1JcyWYiic/M/H4+cXc8ywUuelpiDAvsl5jSxyRZGl8CE1ngdHzbqCbLUNc8tSfJC1
HV2YJRklB7jd8aW6yxmhp43sue6loaKDswRzANDuQ4M8R1ebjDTxUysYrTgBDIjT+tLI
ltOqFMt/nmuKXtEO7xM8nKzojFMLmX8y1qv6PWSy6LB8mlC6Y4X8ccgO8sv6CNbuOr/9
jUgQ==
X-Gm-Message-State: AOAM532Sa6DOpLngt1y3u4CV5khB5hB0RKMmNYOfZosiyFxKHgeQ/FM8
B/zAOHCdYE6fXCCMVm6wirXT1mKHgj8=
X-Google-Smtp-Source: ABdhPJxTLLhJOatOXUszcGe8LuagDnUa6XVisvEFv8YowEKgEQqQnT3aRMNGeVW68/GlTe604OnKJg==
X-Received: by 2002:a05:6214:212c:b0:443:cacc:ee8 with SMTP id r12-20020a056214212c00b00443cacc0ee8mr12151824qvc.96.1651551090182;
Mon, 02 May 2022 21:11:30 -0700 (PDT)
Message-ID: <79e2521c-dd17-3ad7-a1c1-692bda907e2f@gmail.com>
Date: Tue, 3 May 2022 00:11:28 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Subject: Re: GNU pth during djgpp build time?
Content-Language: en-US
To: djgpp@delorie.com
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com>
<c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
<1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com>
<69cccf40-7233-4bc4-86b1-5bd2ad12de20n@googlegroups.com>
<CAA2C=vCwMPo11zTXgcdgA2COrhkA3r16kNE8P3-QsguvTFoB+g@mail.gmail.com>
<980f9df1-91d7-4b29-a774-fda996354f9fn@googlegroups.com>
<122bf752-c95d-11fb-c578-4e06489c5bbc@gmail.com>
<72bea5e3-b6ae-4dd4-8f37-17248a198d4cn@googlegroups.com>
From: djgpp@delorie.com (Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com])
In-Reply-To: <72bea5e3-b6ae-4dd4-8f37-17248a198d4cn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 13
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-3ZyVgN5UF0jaCM8sDPxrsGbRnpUpbshQ6+lI45Pc8HhS+8WQ0mlmJto0PmfA4hcMPg2D2ltv20B55uV!4iSqrNL2wq0g7ZGz5WvEJnHNEO+0+ZAMcrByGHNc+Hib+Cyx2Ixgf3/1AlgIOt41m92UeSsjr59m
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4780
 by: Frank Sapone (emoadd - Tue, 3 May 2022 04:11 UTC

On 5/2/2022 11:17 PM, janezz55 (janezz55@gmail.com) [via
djgpp@delorie.com] wrote:
> On Monday, May 2, 2022 at 4:55:00 PM UTC+2, Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com] wrote:
>> Sorry you are getting frustrated. I've never had to use pthreads under
>> DOS so I really have no idea if anyone has done it successfully and if
>> there's a precompiled port of it ready to go for your project.
> I'm just the maintainer of the "dosbox-gcc" PKGBUILD and was sharing thoughts with the rest of you. There is a lot of room for improvement: OpenGL (mesa3d), <thread>, sockets, ...

I found the Arch Linux site for this but I am confused by the
description "djgpp cross-compiler for the dosbox environment". What does
this mean?  I thought DJGPP could run in dosbox as-is or am I mistaken?

Re: GNU pth during djgpp build time?

<cf5abf25-dbe2-44cd-a192-7ad320bf2d79n@googlegroups.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=171&group=comp.os.msdos.djgpp#171

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:622a:15d1:b0:2f3:4dad:9f4 with SMTP id d17-20020a05622a15d100b002f34dad09f4mr13331419qty.287.1651552812447;
Mon, 02 May 2022 21:40:12 -0700 (PDT)
X-Received: by 2002:a05:6902:1026:b0:649:438f:c4a4 with SMTP id
x6-20020a056902102600b00649438fc4a4mr12715045ybt.266.1651552812201; Mon, 02
May 2022 21:40:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 2 May 2022 21:40:11 -0700 (PDT)
In-Reply-To: <79e2521c-dd17-3ad7-a1c1-692bda907e2f@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.255.248; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.255.248
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<e3969ae3-a0eb-82e5-3481-95178159a844@gmail.com> <c898f7bb-e6d0-477d-ac23-ad1221a063bbn@googlegroups.com>
<1b1d050b-474b-8a0c-8013-24b67efba30e@gmail.com> <69cccf40-7233-4bc4-86b1-5bd2ad12de20n@googlegroups.com>
<CAA2C=vCwMPo11zTXgcdgA2COrhkA3r16kNE8P3-QsguvTFoB+g@mail.gmail.com>
<980f9df1-91d7-4b29-a774-fda996354f9fn@googlegroups.com> <122bf752-c95d-11fb-c578-4e06489c5bbc@gmail.com>
<72bea5e3-b6ae-4dd4-8f37-17248a198d4cn@googlegroups.com> <79e2521c-dd17-3ad7-a1c1-692bda907e2f@gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cf5abf25-dbe2-44cd-a192-7ad320bf2d79n@googlegroups.com>
Subject: Re: GNU pth during djgpp build time?
From: janezz55@gmail.com (janezz55)
Injection-Date: Tue, 03 May 2022 04:40:12 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 6
 by: janezz55 - Tue, 3 May 2022 04:40 UTC

On Tuesday, May 3, 2022 at 6:11:44 AM UTC+2, Frank Sapone (emoaddict15@gmail.com) [via djgpp@delorie.com] wrote:
> On 5/2/2022 11:17 PM, janezz55 (jane...@gmail.com) [via
> dj...@delorie.com] wrote:
> I found the Arch Linux site for this but I am confused by the
> description "djgpp cross-compiler for the dosbox environment". What does
> this mean? I thought DJGPP could run in dosbox as-is or am I mistaken?
It's a cross-compiler, so it runs under arch linux. The default "djgpp-gcc" PKGBUILD targets the i686 IA, which is NOT supported by dosbox.

Re: GNU pth during djgpp build time?

<224eb9dc-337e-f78f-ea4e-58bb15eb580b@gmail.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=189&group=comp.os.msdos.djgpp#189

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 25 May 2022 11:54:39 -0500
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=2zpT3ZlpWMWwyPhoy2r/OG00HsfOu/FNMdrgrvZk46A=;
b=TiQvsnWxT9egfFF6lKk60wTO7u2c5ExoPfuo6pBv+cq/xZ9Ec0kj5eJsGG1PFrAV/C
UNwc5aid0uO6lthotKq5LbYTWaqjNVohaql2fhU6EE/y30mFN92GPA/EInl0Dxxehjbd
3PhAex5qhoovaNMo47jufL9tj3A/UnRCxJzzIqFQKJkMKmPEXbBPzQKgUCX9tYnrUHeY
HZ9LqAbV5s/yX5gx70zjzPsfNNe3NJPnf+jQTWiryeW9AXFqk/D+hwPbgiPylg0NeIwC
yib7996WI1y6vKK0K0iUUgiOPqAqMjR4mxE+AtjMlGswwweKupALFOF4NCGrQhBk9aAX
j6tA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=2zpT3ZlpWMWwyPhoy2r/OG00HsfOu/FNMdrgrvZk46A=;
b=ygfNN5vd9tH2RGAzPcLqOPmImEYZ2Bd3D9wLDfxH9l4n9KyW+la/tQNm5bHeMvw9FP
a26E5uyWFNlM1mw5hXwFg/UWaJDOMIwUJCuSOGklJsm77COTlrhMIfP0AqsoCNf14PEI
iHkTrQTNWKviHD9x1ZjMYoQ9h2ymo154hzcgpXJWFI5g1C3GHgYmLm+7J8rqints76GZ
hdbwJTjLNxuIrnw4UcsE2FZCsAAy5xFGKP+iSko6uM92wWhBOaqY5Q9oKr5PnjUlam4n
eOpWB5rJ+IL+1gEhgUItLt++AfBUBxkCmfc7x3iSk9NevhEHND1jC9UnYK8rBtsc4W5p
GL4w==
X-Gm-Message-State: AOAM5306GwQ9FYERAdZNHdY7GOQBsF4wnMZFPsbQQEKDkWZvLIvUFqO0
ocXpGKYFMwfhTnQE4JN3dlDfvJpX3NM=
X-Google-Smtp-Source: ABdhPJy8KD8VOnmlYT6EMPQ0Zr4H8Ytl+G1l7/3dIKtWXtf8zhrf7U3zTFAuHOBULGP44F0QwAOufQ==
X-Received: by 2002:a17:906:9b86:b0:6fe:d37f:b29d with SMTP id dd6-20020a1709069b8600b006fed37fb29dmr16228910ejc.327.1653497663069;
Wed, 25 May 2022 09:54:23 -0700 (PDT)
Message-ID: <224eb9dc-337e-f78f-ea4e-58bb15eb580b@gmail.com>
Date: Wed, 25 May 2022 18:54:22 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Subject: Re: GNU pth during djgpp build time?
Content-Language: en-US
To: djgpp@delorie.com
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
From: djgpp@delorie.com (J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com])
In-Reply-To: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 31
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-BB5IKu0CkLx8fiYQWXFo7x9c989S+U9BVbzEvleiaPsZqnrxF3ZCMZUyMVDTrUI0CWzL+najPiELsyg!8MMV3VzgAloN68PX7zOUZ+ZT3E4v4ICYEvikC+i2R631ZVPLJrAcqGEpevEY2rqakD+0OsUzx1FM
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 5247
 by: J.W. Jagersma (jwjag - Wed, 25 May 2022 16:54 UTC

On 2022-05-02 05:49, janezz55 (janezz55@gmail.com) [via djgpp@delorie.com] wrote:
> I know a port exists, but for all I know it's an add-on to an already existing djgpp install, so no <thread> header becomes available after installing it. But if pth could be built during build-time of djgpp, <thread> would become available. Does any build script (for linux) feature this? I tried to do the hack myself, but it took too much time. Maybe there's an alternative to GNU pth to get <thread>?

Hi again,

I have some progress to report: it doesn't work :)

Surprisingly, configuring gcc with --enable-threads is actually possible, but
it did require a small patch to Pth. The executables it produces however, will
not run. A thread-aware libgcc will try to lock a mutex in
__register_frame_info(), which is invoked from crt0 before __crt1_startup().
But locking a mutex involves a whole series of libc functions that rely on
things like _dos_ds, which are only initialized from __crt1_startup().

Fixing this would involve reordering the crt0 startup logic. Or maybe libgcc
could be patched to not use a mutex at that point. If you (or anyone else)
want to experiment with that, you can use the following build scripts:

https://github.com/jwt27/build-gcc/tree/pth

Checkout branch 'pth', then first build a regular toolchain:

$ ./build-djgpp.sh --prefix=$HOME/djgpp djgpp-cvs binutils gcc

Then use that toolchain to compile Pth and build a second toolchain configured
with --enable-threads=posix (this is done automatically in one step):

$ PATH="$HOME/djgpp/bin:$PATH" \
./build-djgpp.sh --prefix=$HOME/djgpp-pth djgpp-cvs binutils gcc watt32 pth

Linking requires -lstdc++ -lpthread -lsocket, in that order.

Re: GNU pth during djgpp build time?

<7466fdea-7958-467e-aa06-f051df1bf3fen@googlegroups.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=190&group=comp.os.msdos.djgpp#190

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:622a:87:b0:2fb:c893:2a35 with SMTP id o7-20020a05622a008700b002fbc8932a35mr1125460qtw.94.1653501190923;
Wed, 25 May 2022 10:53:10 -0700 (PDT)
X-Received: by 2002:a81:d0c:0:b0:2f1:49ec:3eac with SMTP id
12-20020a810d0c000000b002f149ec3eacmr33486337ywn.451.1653501190714; Wed, 25
May 2022 10:53:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Wed, 25 May 2022 10:53:10 -0700 (PDT)
In-Reply-To: <224eb9dc-337e-f78f-ea4e-58bb15eb580b@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.254.94; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.254.94
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com> <224eb9dc-337e-f78f-ea4e-58bb15eb580b@gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7466fdea-7958-467e-aa06-f051df1bf3fen@googlegroups.com>
Subject: Re: GNU pth during djgpp build time?
From: janezz55@gmail.com (janezz55)
Injection-Date: Wed, 25 May 2022 17:53:10 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1686
 by: janezz55 - Wed, 25 May 2022 17:53 UTC

> Surprisingly, configuring gcc with --enable-threads is actually possible, but
> it did require a small patch to Pth. The executables it produces however, will
> not run. A thread-aware libgcc will try to lock a mutex in
> __register_frame_info(), which is invoked from crt0 before __crt1_startup().
> But locking a mutex involves a whole series of libc functions that rely on
> things like _dos_ds, which are only initialized from __crt1_startup().

patch libgcc? Why would it want to lock a mutex anyway?

Re: GNU pth during djgpp build time?

<13904ce4-1b5c-c82f-7939-d0cc40c61d3b@gmail.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=191&group=comp.os.msdos.djgpp#191

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 25 May 2022 14:17:20 -0500
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=zgzG+S9wg8YQbw5ImM7ElVZAbd80UCBAmtl5NHw42a8=;
b=dHeMltAYCsFDwfrjHIfv5rQcKN5X/G8xmM2WoXGdl93wLyTt+s/agl51PvRU1AqkYu
aswY/ubh+Lo6FYXlS8rXqdhNVVYMbVHTJq1AOB4gw4WuA/qyqpszIpG9YQOOQWHn/WBr
Akvyb06ADBpECEQz70l151MX1k03iIeR0Qe6nvK5HlXjw5hNSWFz6CecCnQYtSOhIIZN
34QUg7CcnZnNR0s7ub1ILK+w+UCKNUC7mWrcWUibvPfBoFy/BJ3GlMwgjbeXpIGqOWOK
y51u2NLP4k3hbQeGmHwTLUF/lZr0kloKjbz7JbQXRccSvRrSvsBK8LVDAXaMmNNh5AuK
2AVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=zgzG+S9wg8YQbw5ImM7ElVZAbd80UCBAmtl5NHw42a8=;
b=1FHF7uBOpUV6EjasP2Gt+MUkHmDGH6elhc+1Ri3D2yOfnIrbWK+Yl8FkkMvzdg5zmm
iixH73OwndjUKOxaOHRe+7SGPgpiqsmyonuVUmSobEz3L0Cm9hiUzBWfqeZoWVhI6MxV
HvuHKKzyE5NFPQf4bC1FawjMygcf2BHdktCK7BGT1Qx35e+2mOfrCUeQLsmvNYK22lsV
Jwh/QoodeTAcU7lfflHk9G3OgsD+sFesXXRfqXsNwYruzas94lyBld9uInyGzmcghyoI
FXkxaZ9JBFilRkZn+9Vsey35ItTSTAA6cTf3dQawkDrxQjT5Iv0xq/RlxWdtWWWatW8p
TGTg==
X-Gm-Message-State: AOAM532OsttwIWcBYeYYsRC5TISx9WXUf3RUkDvROOT5C213/csn0y4K
u1cSCRQ3viaJVUAJDqd4VOLjuNXcVV8=
X-Google-Smtp-Source: ABdhPJwaLrpU1fW43OK2pKWHH8q4NqPPp76kLdWCWVNnz/nQpdId0ivNE6zolDs4h1IWmpSycnPX3w==
X-Received: by 2002:a05:6402:1007:b0:428:beb6:f483 with SMTP id c7-20020a056402100700b00428beb6f483mr36185041edu.391.1653506230703;
Wed, 25 May 2022 12:17:10 -0700 (PDT)
Message-ID: <13904ce4-1b5c-c82f-7939-d0cc40c61d3b@gmail.com>
Date: Wed, 25 May 2022 21:17:10 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Subject: Re: GNU pth during djgpp build time?
Content-Language: en-US
To: djgpp@delorie.com
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<224eb9dc-337e-f78f-ea4e-58bb15eb580b@gmail.com>
<7466fdea-7958-467e-aa06-f051df1bf3fen@googlegroups.com>
From: djgpp@delorie.com (J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com])
In-Reply-To: <7466fdea-7958-467e-aa06-f051df1bf3fen@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 15
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-xbhoPknSmq7qloLUfFe9yd5aMXOgqyQWI03BvK9ZUMDUwoDGvNMZhwISnNSo1HcnXJ1AO4iE3LPNY5v!YTvSra/wYSd+DL9F+LZpVHQWNx2S+NkjVlH5J3nTx5lZ664pMsNJEC8rj0CGUEE5A0oTh6XgCbMO
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4583
 by: J.W. Jagersma (jwjag - Wed, 25 May 2022 19:17 UTC

On 2022-05-25 19:53, janezz55 (janezz55@gmail.com) [via djgpp@delorie.com] wrote:
>> Surprisingly, configuring gcc with --enable-threads is actually possible, but
>> it did require a small patch to Pth. The executables it produces however, will
>> not run. A thread-aware libgcc will try to lock a mutex in
>> __register_frame_info(), which is invoked from crt0 before __crt1_startup().
>> But locking a mutex involves a whole series of libc functions that rely on
>> things like _dos_ds, which are only initialized from __crt1_startup().
>
> patch libgcc? Why would it want to lock a mutex anyway?

As I understand it, __register_frame_info() is called to register .eh_frame
sections in a global list. This also happens on shared library loads, at which
point there may be multiple active threads. The same list is also accessed
whenever an exception is thrown. So it makes sense to use a mutex here, but
in our case it's just not necessary to do so on startup.

Re: GNU pth during djgpp build time?

<13cd46e4-48a2-4cbf-804a-07c637ee1f37n@googlegroups.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=192&group=comp.os.msdos.djgpp#192

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:6214:29ce:b0:462:3e67:bdcd with SMTP id gh14-20020a05621429ce00b004623e67bdcdmr14498853qvb.94.1653512693055;
Wed, 25 May 2022 14:04:53 -0700 (PDT)
X-Received: by 2002:a25:3545:0:b0:64d:a20c:6006 with SMTP id
c66-20020a253545000000b0064da20c6006mr33828865yba.503.1653512692861; Wed, 25
May 2022 14:04:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Wed, 25 May 2022 14:04:52 -0700 (PDT)
In-Reply-To: <13904ce4-1b5c-c82f-7939-d0cc40c61d3b@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.254.94; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.254.94
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<224eb9dc-337e-f78f-ea4e-58bb15eb580b@gmail.com> <7466fdea-7958-467e-aa06-f051df1bf3fen@googlegroups.com>
<13904ce4-1b5c-c82f-7939-d0cc40c61d3b@gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <13cd46e4-48a2-4cbf-804a-07c637ee1f37n@googlegroups.com>
Subject: Re: GNU pth during djgpp build time?
From: janezz55@gmail.com (janezz55)
Injection-Date: Wed, 25 May 2022 21:04:53 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1533
 by: janezz55 - Wed, 25 May 2022 21:04 UTC

> whenever an exception is thrown. So it makes sense to use a mutex here, but
> in our case it's just not necessary to do so on startup.

Yeah, I have a feeling you're already working on a patch :) So, we will have std::thread under dos, amazing.

Re: GNU pth during djgpp build time?

<a7cb87a5-a7a6-d44f-506c-dd575a3df476@gmail.com>

 copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=193&group=comp.os.msdos.djgpp#193

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 28 May 2022 09:24:55 -0500
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112;
h=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=sXWFUVXV6l6PjWb3r8zNuyeRLuKHxR9VkcsUz3fr2f4=;
b=GsmFtiwOPCrFh/iqfM6LS2nJWQB8MpXskwb7cZ+RYwklfGI0lZOKjAmym1p8HvPQ1G
j3Azfrszg5ooAJMeH7/ST0GxTLGYEQeqjtqoVpnswQVvs+0oRN+hfr3TYsLz6hIrN523
5Sbjk2H1SDfa1A2RHUUP30m0/ymOxhcqGaw3J4mA93nQXfrbKSLGsJKP9FSbn/lsjczN
LdEu5rG12OA1sbKsB3O4lQoZnRLdpD04iAIixx5MD42K5HvMXs0D/cSC8kGF5TpMgGAZ
47BUczhKUqAZXtW/sbcTkPl7bEoNVRJlkEWi3KDBGga5oiHIVfS9H2GTaLqueHeAkPAO
A99w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=sXWFUVXV6l6PjWb3r8zNuyeRLuKHxR9VkcsUz3fr2f4=;
b=RfuQbQq+JS4b7o59fXcXLcrap6ewXpSWXt5JTu5ETd87TfD1bGBtlvPUKUzIHy7OfW
/x1lXh3LeDZeC6BuyudXm7uTC2pD8fzwhhjuW/m6ohPI6dFF5Ja66X6fm1G4SwKyw1AU
Jrr5zN0pN8BbNtaX1eZ4ANKJEY++54nqIoAHcI32rXk/rfViaau7sPvbiOjp/3Vwv2tW
/JpWo0I/0ZQoHNVMaq9Vn24UGg+Z+khn7Jbq6XsztIlsYJ7PzWRRT/D8lFQlncjmkHmS
3UGojb1jvlQ37BM0qQJ+I6Ff/TzvOx/Y45XqpIUgHAzyxQF2ZFv7QKpqC7ns6OZC4Lz0
okRg==
X-Gm-Message-State: AOAM5335sLBKNy3eGEmEqUYVI8hWz3gw9WzG9ap3TYm9b/9c660n7zE5
Hsg58e512/1FjV4lGGjQYVAX6hbzb+8=
X-Google-Smtp-Source: ABdhPJwYLSlcSs11WHlDQgR1IPt1eRqSwJ+UXcl925Z+/qtpAapGxQDKf2Fa3VuY0jiXJbMo+uqt6A==
X-Received: by 2002:a05:6402:2694:b0:42b:251d:185 with SMTP id w20-20020a056402269400b0042b251d0185mr43072396edd.44.1653747874786;
Sat, 28 May 2022 07:24:34 -0700 (PDT)
Message-ID: <a7cb87a5-a7a6-d44f-506c-dd575a3df476@gmail.com>
Date: Sat, 28 May 2022 16:24:33 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Subject: Re: GNU pth during djgpp build time?
Content-Language: en-US
To: djgpp@delorie.com
References: <a52c077b-55b2-4a1f-877e-ebdcef7c1e01n@googlegroups.com>
<224eb9dc-337e-f78f-ea4e-58bb15eb580b@gmail.com>
<7466fdea-7958-467e-aa06-f051df1bf3fen@googlegroups.com>
<13904ce4-1b5c-c82f-7939-d0cc40c61d3b@gmail.com>
<13cd46e4-48a2-4cbf-804a-07c637ee1f37n@googlegroups.com>
From: djgpp@delorie.com (J.W. Jagersma (jwjagersma@gmail.com) [via djgpp@delorie.com])
In-Reply-To: <13cd46e4-48a2-4cbf-804a-07c637ee1f37n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 11
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-90Jjx2zQUD8t1bIlA6nqbyewW+eZtURDZfjsaX4ps1lmkMwe/SNpW4XNwsKbEnfDSHREnanMKMAoK7m!ODiAt6mWRTy3c6aGxZKWDUzULBAX7YTic4+4sksmyLflJhD1lFSOR1WDzm+EL4Cr/hILp9eQq6l2
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4393
 by: J.W. Jagersma (jwjag - Sat, 28 May 2022 14:24 UTC

On 2022-05-25 23:04, janezz55 (janezz55@gmail.com) [via djgpp@delorie.com] wrote:
>> whenever an exception is thrown. So it makes sense to use a mutex here, but
>> in our case it's just not necessary to do so on startup.
>
> Yeah, I have a feeling you're already working on a patch :) So, we will have std::thread under dos, amazing.

I haven't looked further into it yet. Should be trivial to remove the mutex
access and see if any other issues pop up. But I don't like the idea of
requiring a custom patched gcc for this. Plus the whole thing seems far less
efficient than what I already have, and I think gcc will also generate overall
worse code with --enable-threads.

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor