Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Per buck you get more computing action with the small computer. -- R. W. Hamming


devel / comp.os.msdos.djgpp / Re: binutils 2.37 fails PDCurses library make with "ar: invalid operation"

SubjectAuthor
* binutils 2.37 fails PDCurses library make with "ar: invalid operation"Jamie Bainbridge
+- Re: binutils 2.37 fails PDCurses library make with "ar: invalidJuan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com]
`* Re: binutils 2.37 fails PDCurses library make with "ar: invalidJuan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com]
 `* Re: binutils 2.37 fails PDCurses library make with "ar: invalid operation"Jamie Bainbridge
  `- Re: binutils 2.37 fails PDCurses library make with "ar: invalidJuan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com]

1
binutils 2.37 fails PDCurses library make with "ar: invalid operation"

<ac1dadfd-435e-4f3f-a126-04cfafb8b571n@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:ac8:6d35:: with SMTP id r21mr33657590qtu.9.1641009838335;
Fri, 31 Dec 2021 20:03:58 -0800 (PST)
X-Received: by 2002:a05:6902:124a:: with SMTP id t10mr22052508ybu.287.1641009838021;
Fri, 31 Dec 2021 20:03:58 -0800 (PST)
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: Fri, 31 Dec 2021 20:03:57 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=180.150.111.33; posting-account=Q2OZEwoAAAANKo2GT_l3uUEobIMUphXY
NNTP-Posting-Host: 180.150.111.33
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ac1dadfd-435e-4f3f-a126-04cfafb8b571n@googlegroups.com>
Subject: binutils 2.37 fails PDCurses library make with "ar: invalid operation"
From: jamie.ba...@gmail.com (Jamie Bainbridge)
Injection-Date: Sat, 01 Jan 2022 04:03:58 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 22
 by: Jamie Bainbridge - Sat, 1 Jan 2022 04:03 UTC

Hello,

Compiling the PDCurses-3.9 source with the latest binutils (bnu237b) fails to create the library file with:

ar: curses.a: invalid operation

You can also reproduce the same error easily with the same command manually:

ar rcv curses.a *.o

ar makes a small 8-byte curses.a file but that's obviously not valid.

Trying several previous versions (bnu232b, bnu234b, bnu2351b) with the same compiled object files all work fine.

I'm compiling the latest stable PDCurses from upstream: https://github.com/wmcbrine/PDCurses/releases/tag/3.9

The only change I've made is to add -DPDC_RGB to CFLAGS and change the LIBCURSES variable to "curses.a".

My environment is dosbox-staging. I've set "LFN=n" in djgpp.env as DOSBox doesn't have LFN support (at least not this fork of it). There are no long filenames involved here anyway.

I hope that's a useful enough error report. Please let me know if I can provide any more information.

Jamie

Re: binutils 2.37 fails PDCurses library make with "ar: invalid operation"

<20220101142459.49e4f49c@gmx.de>

 copy mid

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

 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, 01 Jan 2022 07:25:19 -0600
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/simple; d=gmx.net;
s=badeba3b8450; t=1641043504;
bh=c8aSPGyRSEYGYJcIWYACtoF4+c9pA2nnEL9PM3naQio=;
h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References;
b=WE+IofkMpcclysvLn1LFqaXTdECiDtFFM4NVsifbJdkMlwK6KForJQY9xVT3A0b+a
cA/Ad/TX4KpmDrfksjYQXyvXSXuZajYs0bJ16csuk9M78oqmEM+L3A0qaEh5Fn4JqE
l+9pxUp7cGhExqDGgoQ7IH0D77o11LaAfkcxGdE0=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Date: Sat, 1 Jan 2022 14:24:59 +0100
From: djg...@delorie.com (Juan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com])
To: djgpp@delorie.com
Subject: Re: binutils 2.37 fails PDCurses library make with "ar: invalid
operation"
Message-ID: <20220101142459.49e4f49c@gmx.de>
In-Reply-To: <ac1dadfd-435e-4f3f-a126-04cfafb8b571n@googlegroups.com>
References: <ac1dadfd-435e-4f3f-a126-04cfafb8b571n@googlegroups.com>
X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-Provags-ID: V03:K1:Sy5U6PWCl9giUVJz0w5BkExJT/lkfJBhYAtGSoeP6EHKmReUuar
M8KSag/1lgeErHKgxJsTelRsxMdsQoJ9bSFyCLMCBaSNE1D3t55hsK43Nv13moVhs2gKrmi
FERBbAjkSEllSVMGw33dRQ6KHtNzs5WYBKK5hTRCZU7f7kEcFOnzs1IsnUDyle9qfn9X1VL
8IBUl/bSuSytyn1BjdmZg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:1cUTByfvL5Q=:ZgRv5Vu3FSAOFl2zgeDelp
fq5+Ht8XxNezKkld5KZ9xvmPGjmd4diBM9fRMdfxJCj62b13DdlCiW1tIaHHaxFFgGuWxcpkL
Buw6HnvSd2hWhtnPtbXViGHvdFoUM/7dJbI3ePtDc9iLdIHMsuVBaWXtcHzwwRU0xeUePPP5s
kfZQmmAFfhizLJgnRrazbwn37AU5Yg0djSM3SmTJS6YQASLnT8HOyNv3bk9lDGLRcCCr4jOXq
yUZVU7GHIpHoyHZBKj+ke8p8MEfiUAW5+MJEbUeJ+AvN+tjD7lIz9NKbFpb6NU1G+7xwDzjzd
8889ctfPSveAw0z8ybKrYBTGomEFRsmhNx7ZYNu1R9KY16wySYuQV4mnwEOR5RvX9lbyvIbAr
lSO75a9q+KO25jmJ5tZqDdgsTjXzM7bfcEOdkIF+fKs2YPcCY0rs2uVE7GQQG7019A4ar35If
zZiwl46v42gHZatBXy4TN6A0EjbkaZdVCSXsi8jujfESBhxZ6w+buUa03QVyJGJUqTcqjS4sv
WnUiK02+hdOUCAICFgIsuxnXbG4Pg/1I2rvYGVOoOafnHk7+k3cTjZ8o/tVKuS8/aPw7kPIu7
aTkubo4GtV3ycSIOOKEK2wg9SHvkp5MsxdeCQRS6sP8i2RXbE72jQ5kd2NzdIksqs8XfkdDPA
Ghm+ZF2nKAWCreFYKsaWGnB8QAV4k6Ekf4HzBAQ38o5XIdYqrtnCNIB3MZlUTCTyO1IPs+Cf3
qdLHxifA/2bFQP790czfhLAfNpBQkmTpVlTsEotM92xn2HgGzeEL+KHBLg+ynsuur+4J+tGFn
hHuW0BS3v5s5by0LMwXHOnSv0cI1oI4BgsYfiVcz3jeZcWhY34iYZRWlBIw1DPclRZtsCQLYe
+dZuaePg3Fe+L+oMOsEmdHUqsjf3kUUFINA6SoPpDxutLlGpXsjJLDvqZDaUg5K7HLavKXmP9
gbT3ZlJ4sTbYgE7fklzpJ+RXnXHaQg5kmYi2Tr7Z9PA0pRgY7RGnOkBe6CmRLhFUkqMouy2is
cC7cLrOjrpERYgA64DDAHXQ492NCLTs/a+WAXBxiKL/x/k662YrIMAZ2+16CjZ9qnnxu9l/+g
fcWLlf362qd7bE=
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 201DPAjX006581
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: 62
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-gr9gpys+im+dcgG9T3M3VR/W+MoJtsW7HcDxVS/5/vdanD3bdNIGUEU8lQzOkkWEz1NivztiVHfzJeU!yt3wEnPhb8R+9zr6XfrJl/ELpnn1/jKUN91T1nPLSU/dBYQpeNCu7b8=
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: 5872
 by: Juan Manuel Guerrero - Sat, 1 Jan 2022 13:24 UTC

Am Fri, 31 Dec 2021 20:03:57 -0800 (PST)
schrieb "Jamie Bainbridge (jamie.bainbridge@gmail.com) [via
djgpp@delorie.com]" <djgpp@delorie.com>:

> Hello,
>
> Compiling the PDCurses-3.9 source with the latest binutils (bnu237b)
> fails to create the library file with:
>
> ar: curses.a: invalid operation
>
> You can also reproduce the same error easily with the same command
> manually:
>
> ar rcv curses.a *.o
>
> ar makes a small 8-byte curses.a file but that's obviously not valid.
>
> Trying several previous versions (bnu232b, bnu234b, bnu2351b) with
> the same compiled object files all work fine.
>
> I'm compiling the latest stable PDCurses from upstream:
> https://github.com/wmcbrine/PDCurses/releases/tag/3.9
>
> The only change I've made is to add -DPDC_RGB to CFLAGS and change
> the LIBCURSES variable to "curses.a".
>
> My environment is dosbox-staging. I've set "LFN=n" in djgpp.env as
> DOSBox doesn't have LFN support (at least not this fork of it). There
> are no long filenames involved here anyway.
>
> I hope that's a useful enough error report. Please let me know if I
> can provide any more information.
>
> Jamie

Hello,

Sorry but I cannot reproduce this at all.
I only use VMware as virtual machine. I have tested it on four
different environments:
- DOS box of Windows 98 SE without LFN support
- MS-DOS 7.1 without LFN support
- MS-DOS 6.22 without LFN support
- FreeDOS 1.3 RC5 without LFN support

My DJGPP installation uses djdev206 (aka cvs repository code), gcc346b
and bnu237b. I have compiled the DJGPP port of PDCurses-3.9 (aka
pdcur39s) but I do not think that this shall have any impact in the
analysis of this issue. None of the builds have failed. It was also
possible to manually create an archive issuing the command:
ar rcv curses.a *.o
All builds have been checked by building the test programs. They all
have run flawlessly. The builds have been repeated 5 times for every
environment, with and without defining PDC_RGB. But I think that neither
LFN support nor -DPDC_RGB have any impact in this issue.
I will try to install dosbox and see if I can reproduce the issue there.

Regards,
Juan M. Guerrero

Re: binutils 2.37 fails PDCurses library make with "ar: invalid operation"

<20220102000102.7d7b014f@gmx.de>

 copy mid

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

 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: Sat, 01 Jan 2022 17:01:33 -0600
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/simple; d=gmx.net;
s=badeba3b8450; t=1641078071;
bh=wqhq0yekzq2uyhKjE6hyMj9bHjIvsnjHIlKMIpcF7Hs=;
h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References;
b=aZVcY2EZdUwDRcSmdyTYRZZ6+MfWyDYkcPgiSr/yXoqjBEBosEdUU63ebtNMVsSdV
M3fgrEJP/E00+DBEiv3YGpvlbQ7hNv15EJr3zcmWPlSW6JVGviQb/3DhFObEsDodO8
sf1+5iwk1Nkn3uQEaVIX0UtwcHLg4fezy+egV8ys=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Date: Sun, 2 Jan 2022 00:01:02 +0100
From: djg...@delorie.com (Juan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com])
To: djgpp@delorie.com
Subject: Re: binutils 2.37 fails PDCurses library make with "ar: invalid
operation"
Message-ID: <20220102000102.7d7b014f@gmx.de>
In-Reply-To: <ac1dadfd-435e-4f3f-a126-04cfafb8b571n@googlegroups.com>
References: <ac1dadfd-435e-4f3f-a126-04cfafb8b571n@googlegroups.com>
X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-Provags-ID: V03:K1:2fST/EAcKnegKpJauSoQAitPaQO8H14a3Kgl1HL8ovj8UtX56BW
t96RDFw6X7AqUO6NE7Lxpix6GX2+oQbiDtcx+sHzr7KoQcOO1/jwvRYy3/bwlh9VLGyArug
MqUM8fJlUBHRinYtsjDKTQo0ZHq9kh+CxqNQZvq04QLNQ5RplQ+by0qz26LQkKvb8rAfG2R
FvpeWfrLUMYZW9sZ3OCog==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:3td7RnKzUh4=:vmCk8ZQ519iLBvYL6AYMPt
ePRNdJ6dMWJ7byNNlRS4Zu6L7tim80O/39UQIeuRD29RjJ7zmBqELTarwvMvbkXTIWapkSgVD
SuUMNvM2pWhO5HHYMwHjBrlGBktsQZK9SaVoARdBnosmIh9ImfJ5SWTl4QbbNq5o3FKy9s4yz
DQMmowk1QztdhzgLpjyH/fdJvQ3KP7YZRidnU6BVjL2AjLgLbFbvFUv11hGMvtdZb7o1AHWPe
VzYqqxqw6zw5aMYqWQcidC2/ZtReEfoRofA+U/yXfAVacj8g95j2R5UzvD1FTb5z6q0DvzyDZ
DvP8Pwn3m4Rqi0r8CAynzYZ21dqmFFWsatV3KxixsXHoSLHtvdPhGQkQ011oU3mpNlAKqBSLj
KwTqSNH05Am4x9iCdFFUJmIgydCmxwW14wwV1rAclisjaSq3cBnSYfVCxT58Y5AwO7YOUsM3g
EaCQ4+OXZoGNpPH7Riq0eESrWQJ5zA+Neceks1LmxBDp1O/WuJJdpOfF0gjaS86kDTq4G9MUc
mPNBG/Ujo7GverDyph6agc36VZTbObz65upSTjHa74JjIZiRtKMMxHy+MaCpcyNamyO0pFjQj
4WCmCh5H7I6qh9jzMR5RHfzMD+SidJAMrCzOAER6u3jMky9tVSeOWK2hMNDwqnO3Hrx4UhMxl
u9Wckh//MkMw+yjPZm3HUFJeRuxpuue4tWbAhrY051aWFnEdaKzLV+OdMGtCYsyASpBq/Ggby
GDtW5umRRxH6udGst4TriFatf/4Kv7pyB2JMnuENhNyASWZ0F4nRTHc66FRaac+/V7hV3CSkz
ZBLBKI85NdIs9DoeFgV1DExuSEx0S+bbbrRlQKrAGgsbWnrhkuPziwhlLPAWnk80BsJfzNefg
bjDemIL8mU6AG8CjlI2SRrz4LcdPlg1GDfRJ33snybEzNpPE8jmMVUylIlcd0ZHVdWOT2Luba
5hCJOe/KdW/yz31wymzl5GrRGbaGkllwZe/p/fFPzDoKYMJPecSOk9VN46+Va+K3eCgLJnJlL
Dfd60yFuxcDBzPymSFa0f9/u9ntTxbO5WLk1EpehMtRfQdfCxZsQaecgFvm6pXH7P1xBTGk7r
JuS1jD3P6iqbWM=
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 201N1JG3031638
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: 51
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-tR7m5AuH1Eok9Aq6AWUWBGo66aLmaOot6ibjMPXW7DSN9cN+3MZV7laIqAHyEBmAJHKP+xG0g2HIKzu!1YMZVI1vmnL2uQpMS9APIGpxdx8Sr77YY3XQYVuI0lbWvxiTD7/H3VE=
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: 5345
 by: Juan Manuel Guerrero - Sat, 1 Jan 2022 23:01 UTC

Am Fri, 31 Dec 2021 20:03:57 -0800 (PST)
schrieb "Jamie Bainbridge (jamie.bainbridge@gmail.com) [via
djgpp@delorie.com]" <djgpp@delorie.com>:

> Hello,
>
> Compiling the PDCurses-3.9 source with the latest binutils (bnu237b)
> fails to create the library file with:
>
> ar: curses.a: invalid operation
>
> You can also reproduce the same error easily with the same command
> manually:
>
> ar rcv curses.a *.o
>
> ar makes a small 8-byte curses.a file but that's obviously not valid.
>
> Trying several previous versions (bnu232b, bnu234b, bnu2351b) with
> the same compiled object files all work fine.
>
> I'm compiling the latest stable PDCurses from upstream:
> https://github.com/wmcbrine/PDCurses/releases/tag/3.9
>
> The only change I've made is to add -DPDC_RGB to CFLAGS and change
> the LIBCURSES variable to "curses.a".
>
> My environment is dosbox-staging. I've set "LFN=n" in djgpp.env as
> DOSBox doesn't have LFN support (at least not this fork of it). There
> are no long filenames involved here anyway.
>
> I hope that's a useful enough error report. Please let me know if I
> can provide any more information.
>
> Jamie

OFYI, after having installed DOSBox I was able to reproduce the bug.
What the maintariners of binutils have changed between bnu2351b and
bnu237b is completely unknown to me. It seems to be a DOSBox specific
issue and AFIAK DOSBox has never been recommended to be used as DJGPP
development environment. I will try to investigate this issue when I
have enough time. This will not be quite soon.

Use bnu2351b; AFAIK there are no DJGPP specific changes between
bnu2351b and bnu237b.

Regrads,
Juan M. Guerrero

Re: binutils 2.37 fails PDCurses library make with "ar: invalid operation"

<0c1dd41b-c587-4822-9b41-5d8e1586058an@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:622a:1902:: with SMTP id w2mr36653934qtc.498.1641087044205;
Sat, 01 Jan 2022 17:30:44 -0800 (PST)
X-Received: by 2002:a25:3006:: with SMTP id w6mr53940431ybw.691.1641087044036;
Sat, 01 Jan 2022 17:30:44 -0800 (PST)
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: Sat, 1 Jan 2022 17:30:43 -0800 (PST)
In-Reply-To: <20220102000102.7d7b014f@gmx.de>
Injection-Info: google-groups.googlegroups.com; posting-host=180.150.111.33; posting-account=Q2OZEwoAAAANKo2GT_l3uUEobIMUphXY
NNTP-Posting-Host: 180.150.111.33
References: <ac1dadfd-435e-4f3f-a126-04cfafb8b571n@googlegroups.com> <20220102000102.7d7b014f@gmx.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0c1dd41b-c587-4822-9b41-5d8e1586058an@googlegroups.com>
Subject: Re: binutils 2.37 fails PDCurses library make with "ar: invalid operation"
From: jamie.ba...@gmail.com (Jamie Bainbridge)
Injection-Date: Sun, 02 Jan 2022 01:30:44 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 66
 by: Jamie Bainbridge - Sun, 2 Jan 2022 01:30 UTC

On Sunday, 2 January 2022 at 9:01:39 am UTC+10, Juan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com] wrote:
> Am Fri, 31 Dec 2021 20:03:57 -0800 (PST)
> schrieb "Jamie Bainbridge (jamie.ba...@gmail.com) [via
> dj...@delorie.com]" <dj...@delorie.com>:
> > Hello,
> >
> > Compiling the PDCurses-3.9 source with the latest binutils (bnu237b)
> > fails to create the library file with:
> >
> > ar: curses.a: invalid operation
> >
> > You can also reproduce the same error easily with the same command
> > manually:
> >
> > ar rcv curses.a *.o
> >
> > ar makes a small 8-byte curses.a file but that's obviously not valid.
> >
> > Trying several previous versions (bnu232b, bnu234b, bnu2351b) with
> > the same compiled object files all work fine.
> >
> > I'm compiling the latest stable PDCurses from upstream:
> > https://github.com/wmcbrine/PDCurses/releases/tag/3.9
> >
> > The only change I've made is to add -DPDC_RGB to CFLAGS and change
> > the LIBCURSES variable to "curses.a".
> >
> > My environment is dosbox-staging. I've set "LFN=n" in djgpp.env as
> > DOSBox doesn't have LFN support (at least not this fork of it). There
> > are no long filenames involved here anyway.
> >
> > I hope that's a useful enough error report. Please let me know if I
> > can provide any more information.
> >
> > Jamie
> OFYI, after having installed DOSBox I was able to reproduce the bug.
> What the maintariners of binutils have changed between bnu2351b and
> bnu237b is completely unknown to me. It seems to be a DOSBox specific
> issue and AFIAK DOSBox has never been recommended to be used as DJGPP
> development environment. I will try to investigate this issue when I
> have enough time. This will not be quite soon.
>
> Use bnu2351b; AFAIK there are no DJGPP specific changes between
> bnu2351b and bnu237b.
>
>
> Regrads,
> Juan M. Guerrero

I'm also unable to reproduce this in a DOS 6.22 virtual machine. I
agree it's a DOSBox-specific issue.

Thinking about DOSBox limits, there are a hard-coded number of FILES
and FCBs, I thought maybe ar has generally changed the way it reads
input files and is hitting a limit. However, trying the DOSBox-X fork
which allows these to be configured, FILES=10 produced a different
more specific error "ar: Too many open files (EMFILE)" so at least a
file limit doesn't appear to be the problem.

Thank you for your time testing. I agree there's no rush to fix it and
DOSBox isn't such a great environment for DJGPP anyway.

It's possible to work around this with a DOS VM (probably FreeDOS
too), or cross-compile on Linux, or just use bnu2351b in DOSBox.
That's plenty of valid alternatives.

Jamie

Re: binutils 2.37 fails PDCurses library make with "ar: invalid operation"

<20220102134857.2ed3b871@gmx.de>

 copy mid

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

 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: Sun, 02 Jan 2022 06:49:12 -0600
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/simple; d=gmx.net;
s=badeba3b8450; t=1641127740;
bh=ES3wR6KjdqbJ1vmDT4j3PJ84SI/ihAz/n6uNZ4/klgk=;
h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References;
b=F7g8yb8ON+8kX53UaCuFU1PTXbTOmO+IBJ+4KqMd2baNMC/J5OVjKi7Cv1h3xjvhp
iVdPvVG/G3u3XaZXLplg6U0FzAj7sTZtH+h+NR9YamnmJyOJs5jOmVyJht8WdpPFT/
HsrjpJwz73kKZoRWEfv7G3mqe8bWRijM98yfcMis=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Date: Sun, 2 Jan 2022 13:48:57 +0100
From: djg...@delorie.com (Juan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com])
To: djgpp@delorie.com
Subject: Re: binutils 2.37 fails PDCurses library make with "ar: invalid
operation"
Message-ID: <20220102134857.2ed3b871@gmx.de>
In-Reply-To: <0c1dd41b-c587-4822-9b41-5d8e1586058an@googlegroups.com>
References: <ac1dadfd-435e-4f3f-a126-04cfafb8b571n@googlegroups.com>
<20220102000102.7d7b014f@gmx.de>
<0c1dd41b-c587-4822-9b41-5d8e1586058an@googlegroups.com>
X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-Provags-ID: V03:K1:8/zE1Lpgj3d1H/HVoWqAyJHJ3a0Zh9wLJAgiHx0rEmG7wN52nFp
z3NN+wTCd8TYmLfLVW6oAlOcuBMvd2+9yz4yUc71qyhwRX5b+7dlSiy+MAfOpJuUra2JtYm
0Kp3l4nVi5HW85ScYpMiU80i3qRwpc0k3YAekgOiQ4KlwduEa8XnLxTwKziVFP9bZZMLKoK
r44tTYGSOdL7c/UH81yZg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:bLpJES0nuko=:eG9wsMwZSDQF54xcGobQhW
OPA7c5/qqS6Fbm4rudC6gcCF7AKKcwdHqUakprsgVwBaaRo26hbWGP0KsfYP8Upk/M755ynbO
BvdlYHR/BUyi93KfoQiAYBvXXShfKyh4psJn72dQUWtOCGPI7+9qHR6i/Z2/TUQX+wg0a76G5
OUr9c8l1BU3Dt/Grh4fmyVK+R0eSjRhH2Fx3p3olHPKCJ4Hkhk15gxPvPY3418oIUebs2tyzc
dRT8/6tUDRzqQsAP+RYZPLkTCVDgc+NX8ushlOrAUEPA40AMIBOSdmtDSkc67r1d1eh/6St0H
LC9BT0teVRJGTZkCCdv+UOyUsQxegxWS3D+peEPFz2g6vq2Fq1/qS4ytJBgkxz2Yt46EQSZtt
blfNPx6SHJy+V3AcDg7ZATnC1ARdoq7VC5u/gbvdcP6LmkzuyMXHIpCBZhDD0xSlH3+KqosCh
TZY2d6FkzzQGfbOSlYzLLypEetr0Slv9khpGNRPn7qfO4rtN+xJRWZizXhGxhX+MAdId/nmmE
vCMM64v0MvA21Xa5DjdMAF4B+hy2eMVaCoM60y0xY11J+KHy2SMotAVyFQZ8p4/rTikYYXDxG
JY1/cC9zQLySPrgiJFvtZyIC+TsBCrN5/qBbNDESSY2ac0C1mV21fSxHJRj1cKY62qnB6+sfY
EqlYsWYRC1c9eNTPmQVceWoApseLguFYVfqY00AX94WUfAKQUACbZxTlqwuFRIQtyUsLu5GSZ
1Lqh1KUkkTQNM+5WSOG8/QYzYv/ZT9zq/8WnhZaWfEA/LeqRzMkrQeo9rggc+YyH0XRe+rIkg
wxm7Myl7POeR8cDoz7ZcmDGspdpV9p3WubwdqxdIFJGxhJykJYqD8XM9yZWb4rsKPZRrbNsDk
CKZM+mhtNhSckYnv9nESiYTxYN/lGWw3dHiZ0ZfD+OVqtxOtp1D3zDznwGqXQKsrCfYy++6nE
Np+Ytq4YKRYGZdVZEwDr+ACey4m08hTU0MKvrL/qrC546/nddvmMUsrwRCNydQ+77KxE6Uq7i
tXPtYIij3wo0zfy/lnMeClCcIKvLJxafvFYZqpWS4zQoKDWxDw6Stkx+H1p7mnB6fwcUx/YDC
ZJ2Z1o2qpE14Q4=
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 202Cn49B009324
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: 93
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-rXvg9yMP5iZ13UEBlYM2F2it3XOCmfxQ0W33mAtNj8thr78Jvgcbn8FxHK6CUxfNHmgsPUEWS6Y5+Hg!RB7I96M3TC3uaHmWywkRZgLwt+cdQd77aB8PavTA1nXz3upXw0eZz3A=
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: 7535
 by: Juan Manuel Guerrero - Sun, 2 Jan 2022 12:48 UTC

Am Sat, 1 Jan 2022 17:30:43 -0800 (PST)
schrieb "Jamie Bainbridge (jamie.bainbridge@gmail.com) [via
djgpp@delorie.com]" <djgpp@delorie.com>:

> On Sunday, 2 January 2022 at 9:01:39 am UTC+10, Juan Manuel Guerrero
> (juan.guerrero@gmx.de) [via djgpp@delorie.com] wrote:
> > Am Fri, 31 Dec 2021 20:03:57 -0800 (PST)
> > schrieb "Jamie Bainbridge (jamie.ba...@gmail.com) [via
> > dj...@delorie.com]" <dj...@delorie.com>:
> > > Hello,
> > >
> > > Compiling the PDCurses-3.9 source with the latest binutils
> > > (bnu237b) fails to create the library file with:
> > >
> > > ar: curses.a: invalid operation
> > >
> > > You can also reproduce the same error easily with the same
> > > command manually:
> > >
> > > ar rcv curses.a *.o
> > >
> > > ar makes a small 8-byte curses.a file but that's obviously not
> > > valid.
> > >
> > > Trying several previous versions (bnu232b, bnu234b, bnu2351b)
> > > with the same compiled object files all work fine.
> > >
> > > I'm compiling the latest stable PDCurses from upstream:
> > > https://github.com/wmcbrine/PDCurses/releases/tag/3.9
> > >
> > > The only change I've made is to add -DPDC_RGB to CFLAGS and
> > > change the LIBCURSES variable to "curses.a".
> > >
> > > My environment is dosbox-staging. I've set "LFN=n" in djgpp.env
> > > as DOSBox doesn't have LFN support (at least not this fork of
> > > it). There are no long filenames involved here anyway.
> > >
> > > I hope that's a useful enough error report. Please let me know if
> > > I can provide any more information.
> > >
> > > Jamie
> > OFYI, after having installed DOSBox I was able to reproduce the
> > bug. What the maintariners of binutils have changed between
> > bnu2351b and bnu237b is completely unknown to me. It seems to be a
> > DOSBox specific issue and AFIAK DOSBox has never been recommended
> > to be used as DJGPP development environment. I will try to
> > investigate this issue when I have enough time. This will not be
> > quite soon.
> >
> > Use bnu2351b; AFAIK there are no DJGPP specific changes between
> > bnu2351b and bnu237b.
> >
> >
> > Regrads,
> > Juan M. Guerrero
>
> I'm also unable to reproduce this in a DOS 6.22 virtual machine. I
> agree it's a DOSBox-specific issue.
>
> Thinking about DOSBox limits, there are a hard-coded number of FILES
> and FCBs, I thought maybe ar has generally changed the way it reads
> input files and is hitting a limit. However, trying the DOSBox-X fork
> which allows these to be configured, FILES=10 produced a different
> more specific error "ar: Too many open files (EMFILE)" so at least a
> file limit doesn't appear to be the problem.
>
> Thank you for your time testing. I agree there's no rush to fix it and
> DOSBox isn't such a great environment for DJGPP anyway.
>
> It's possible to work around this with a DOS VM (probably FreeDOS
> too), or cross-compile on Linux, or just use bnu2351b in DOSBox.
> That's plenty of valid alternatives.
>
> Jamie

To finish this issue, I have installed MSDOS 6.22 and FreeDOS 1.3RC5
on VirtualBOX and compiled the DJGPP port of PDCurses-3.9 (aka
pdcur39s.zip) and I have expirienced no issues at all. All the test
programs of PDCurses-3.9 run flawlessly. The port itself is OK and has
been used to create the DJGPP port of lynx (aka l290d10b.zip). Both
ports have been created using bnu237b.

It seems to be an DosBOX issue that I will investigate ASAP, but to be
honest I am not aware of any DJGPP specific reason that justifies the
update from bnu2351b to bnu237b. So if some one preferes to use DosBOX
as development environment for DJGPP, then there is no reason at all to
use bnu237b instead of bnu2351b, especially if he uses gcc346b.zip like
me.

Regards,
Juan M. Guerrero

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor