Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"To YOU I'm an atheist; to God, I'm the Loyal Opposition." -- Woody Allen


devel / comp.os.msdos.djgpp / Signess issues in dxe3gen.c inhibits the compilation of the repository code.

SubjectAuthor
* Signess issues in dxe3gen.c inhibits the compilation of theJuan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com]
`- Re: Signess issues in dxe3gen.c inhibits the compilation of theOzkan Sezer (sezeroz@gmail.com) [via djgpp@delorie.com]

1
Signess issues in dxe3gen.c inhibits the compilation of the repository code.

<20230326011007.03df3795@gmx.de>

 copy mid

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

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 26 Mar 2023 00:13:35 +0000
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.de; s=s31663417;
t=1679789412; i=juan.guerrero@gmx.de;
bh=h055z9Qhv0NEZjEQOcdywYVTp6F2rc8v4MLo7+HwSLc=;
h=X-UI-Sender-Class:Date:From:To:Subject;
b=fSdc5HP7HkNLWLGy0T9ls1kh3B6opkrT9MfvDWy/Q13Et/B2sE1HxggC7X9QsaoL6
VVwcPY8mep7vvYyHRVYNNZMAIw7P5+ZVjm6NGLGEl9NO7sS+FroDdMXvyLqbGDi/Vq
dWpyw7X524Eif8ul7AMZXiTuE8jss7WDlS8DHs+XTr9d2WMEWnoKB2osti+VKfQGQU
WoSw2gGDYDHW3tq7Ee0BzP6Gn1Ka3wiMafIhPyJhNIx3gtcWxyNnwM/WWkm8BCLWNL
hprYAJcpbPwQI6GkyTjVS5IaQc1b28iyHywQkXODFC+8/1wt2RP1g3nOnpD6QuOt3M
BgDsGdidOgsug==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Date: Sun, 26 Mar 2023 01:10:07 +0100
From: djg...@delorie.com (Juan Manuel Guerrero (juan.guerrero@gmx.de) [via djgpp@delorie.com])
To: djgpp@delorie.com
Subject: Signess issues in dxe3gen.c inhibits the compilation of the
repository code.
Message-ID: <20230326011007.03df3795@gmx.de>
X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.34; x86_64-suse-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:tfTURQMBISanl5bDs5+kjUb+9RxRi/w5dnYaS/up8yJAdQy4V5R
BxI94aSyBJh4ee2WazLE7+SHoMVkdk5TiZey0OY71TAPcw9g9mDbi3vGMFg/fhbYE5Bzc3Q
FCg8+fXm8ROzhbichqRwKHKRvJo2FXfxhM7p8irxTV48pUe6gQAsCsfNcAaSbJke8hJ5AC8
vh22VMgGTf8oJwxtXUqfA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:VgJ1LFqS0Yw=;WDsQQHi3nkOS4MMheE3f9PUwPPE
0OIIE6u5FtSwFtLPzeyBbATK+5l7WSNIDxMRBwhqo25mC2cSNf62qr9zKkAHPAd4lEbZni5Il
FbtvIdi0o+iTCxbS2tPzq1/K2QRi3X2T1UGaYcUkVKfp65UNimTKFGXxAeDVRzOMUQqgWL3Ed
hwBMSgqTc98IigjhEldQpoqwWeso9IjaFZtd4KNeDK9SYhw53agxnrQZWyRql+JvDdUBqRy0o
EKI8T9TxE3yr7boVf7ahkNo7Tq6dvg+5K9igqz05rEe3h0ugwbUso+3iugK9Gc4N6P35DSZGL
gdS1sqiLGNQX21ycKqAwmebhCS3p8PXNtR2GGJ3nDdN5Mtq7c2cgqbruXynwg3IWstjCghzdC
DnUIUb4ZHCbuQ0U8TXRwHGjOea18ZsPAhGhgMRITtUKuitNqObEmuqi5IsVu9T6mSE5Edbhmm
9ugulJfDVeH6gq1GKQViYWxX1HHoSA8hUOTUkN9IgsUy6EeFfp/BWc0G/UVzPAKrJk61fAFA8
3k+JAVpi6pwcmtCGKVS1KLYK4qa1Jo7cKJFa5Yx662ENEZcdriqlfOpz8tkuwqnI+YYJJseRn
7vPuuwA7860B1szS4GMCohsFhWE9Dt2v1nukQOhO3Bfplsg7Cqs2YFp7dxkbJnkyCdNd42aOZ
rFCqRhknXlr7oDUY2m578S0ABeF26eA9srTyX9epEp2VEEtbyXKm+2SNjPulYJE45OwQGnTp2
NuGn+1KmDVtsikGc4OcDDE6cgpQR9xXq9sLYmE2pJ4z5xdQ69QQJxtQOwoq/N77eyM79Jf8/4
fQ83+AeWrmQIYm50W/KcxkwM4BfmxWMtCMQ55S6kD5zsmhn5YFELv90ugMstOqrCiBLRfdize
vANytm2CnEavPks9AzHyHFuJz6Lp8obaecYkfPDecpwbPGJ/9OPc8usBHhB67qj+8IHODA3zF
A/zC7IaGKKIuRTl4/HNMxe83eRk=
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-Q6I4GorDXKd38ByfTW76ThDj8SCFcsQ77EysWGtR25Kcb1bt1S+3+PciQnnxqMuXYL1ky5uVDBP4X2k!7LsnOq2IUypRnt9sEBLyyi3i9xJ88UrEkbtL7wBywYg5UiT//+DgV5k=
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-Received-Bytes: 4717
 by: Juan Manuel Guerrero - Sun, 26 Mar 2023 00:10 UTC

In /cvs/djgpp/djgpp/src/dxe/dxe3gen.c 2023/01/31 20:15:02 1.28
the variables max_names and num_names are declared as unsigned int.
Later at line 1323 in dxe3gen.c, num_names gets compared with n_exp_syms
that is declared as LONG32 in dxe.h inhibiting the compilation of the
current repository code. max_names and num_names are members of the
struct opt defined in dxe3gen.c and n_exp_syms is a member of the
struct dxe3_header defined in dxe.h.
Modifying the signess of opt.num_names generates new signess
issues like this:
gcc -g -DDXE_CC=\"gcc\" -DDXE_AR=\"ar\" dxe3gen.c -o ../../hostbin/dxegen.exe
gcc ... -c dxe3gen.c
dxe3gen.c: In function `process_exp_file':
dxe3gen.c:513: warning: comparison between signed and unsigned
dxe3gen.c: In function `write_dxe':
dxe3gen.c:1285: warning: comparison between signed and unsigned
dxe3gen.c:1334: warning: comparison between signed and unsigned
make[1]: *** [../makefile.inc:90: dxe3gen.o] Error 1
make: *** [makefile:48: subs] Error 2

Is there any reason for this difference in signess of the members
of those structs if they shall be compared some where in the code?

Regards,
Juan M. Guerrero

Re: Signess issues in dxe3gen.c inhibits the compilation of the repository code.

<CAA2C=vBu3ET9E6tEvxWKkURkC_WXcpwMEiBWLUyMvA2LjuEDPw@mail.gmail.com>

 copy mid

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

 copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 26 Mar 2023 12:01:56 +0000
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; t=1679831923;
h=to:subject:message-id:date:from:references:in-reply-to:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=luMT+xRJb48190+jimy150V4KtKXqSWVc10vbUycTd0=;
b=Bn1/uMRG4jsnXR6uxrRi5dfieyrJlAvpEaWZFaHYQvfOTuRLjdRbLLllIVXAkxUtkY
HVH1dsrIhJQ+Rf/wJwvAbNg+xTTeN3XtSP0nwkrr9zclTvqk7P0hw5dQw4TLbm4OnXfH
Tb3pV/t/Gy1qfNKIynSeOcz+e2mmorHT4sS1CQjArZr7f4hYUdG/JD//RNbNX6EaLAI6
3VRVXr2hQMGU7qxpdiD0kSGgFGjljFFg+KANpCizVYx/Lp8aK9MyDU7R66H+AKfaeSop
6vwSmPLw+dBotWYmiVUlRxWnn7ND6EMSdzYq8JZOMz0NoIE10aKqtGW9HjHHcC/C+6ad
e9sg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112; t=1679831923;
h=to:subject:message-id:date:from:references:in-reply-to:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=luMT+xRJb48190+jimy150V4KtKXqSWVc10vbUycTd0=;
b=UDOH1JduWZpvYUIl4rHyPSPrIUe5GP51FGtweCssLN6Ve8FoJFuCkt7TP0C2H4IRJZ
cxfIUgWkGrJlOSKae4jetc1koVPVf7wmTp+jt+C9E6e7+05IO8AJVIofTzkzqvJp4uP1
202KAaXLC/8BMBH8PnZ9UZUUdcUWQ0gwTrzI+fr+tE4KXLqKpU0n53yRq5zdqzGO4IFt
dk6uhZr1gHp86S2E4QM5mTCH29K4u27+qd9cBgXx49AlMtf3Kt7pZNmx6zYesSv+sWMm
tt8zkFWxf4UfJhFscz80Cr1qzgtRxy4uVR2zb14ORJbL6kb3ab4KdiYa/gQ0/71Q/8/E
ZWeg==
X-Gm-Message-State: AAQBX9eaPoi7IL+2cHB18uTeFnGEAOahWKjKXOLaTu9Yppib1ttZtAVD
HlL+o0nfCoL+QmLghS0UZu4KnxJ1nVE5xFWaVSfHNhSY
X-Google-Smtp-Source: AKy350Yoep9LnnBLkmFeRDaZ+JB/vfDt/F8pTtqn4JSiUYjIthEdw03aiLvLBuTVU+TvFQAY5e+PM1H5AFXDZlK1hAs=
X-Received: by 2002:a5d:69c5:0:b0:2cf:e740:8293 with SMTP id
s5-20020a5d69c5000000b002cfe7408293mr1701103wrw.9.1679831923396; Sun, 26 Mar
2023 04:58:43 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <20230326011007.03df3795@gmx.de>
References: <20230326011007.03df3795@gmx.de>
From: djg...@delorie.com (Ozkan Sezer (sezeroz@gmail.com) [via djgpp@delorie.com])
Date: Sun, 26 Mar 2023 14:58:42 +0300
Message-ID: <CAA2C=vBu3ET9E6tEvxWKkURkC_WXcpwMEiBWLUyMvA2LjuEDPw@mail.gmail.com>
Subject: Re: Signess issues in dxe3gen.c inhibits the compilation of the
repository code.
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: 27
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-ylm758xg2dvlFmYgRx6OoGF3BRBQAzJ5z13Ip91vGYmyabmmMPS9BqjC8oabgq8cEj+XsCvRRryev1D!Lve82qZNYqxv0YNmp6Yh88X0Vaatjh25yOBLMe6EX+qh34khhsrTSK9fpSjJ97cqWzFmSfNGAMNC!r3Brhg4OotlnnqP+oROsDKioeWI=
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
 by: Ozkan Sezer (sezeroz - Sun, 26 Mar 2023 11:58 UTC

> In /cvs/djgpp/djgpp/src/dxe/dxe3gen.c 2023/01/31 20:15:02 1.28
> the variables max_names and num_names are declared as unsigned int.
> Later at line 1323 in dxe3gen.c, num_names gets compared with n_exp_syms
> that is declared as LONG32 in dxe.h inhibiting the compilation of the
> current repository code. max_names and num_names are members of the
> struct opt defined in dxe3gen.c and n_exp_syms is a member of the
> struct dxe3_header defined in dxe.h.
> Modifying the signess of opt.num_names generates new signess
> issues like this:
> gcc -g -DDXE_CC=\"gcc\" -DDXE_AR=\"ar\" dxe3gen.c -o
> ../../hostbin/dxegen.exe
> gcc ... -c dxe3gen.c
> dxe3gen.c: In function `process_exp_file':
> dxe3gen.c:513: warning: comparison between signed and unsigned
> dxe3gen.c: In function `write_dxe':
> dxe3gen.c:1285: warning: comparison between signed and unsigned
> dxe3gen.c:1334: warning: comparison between signed and unsigned
> make[1]: *** [../makefile.inc:90: dxe3gen.o] Error 1
> make: *** [makefile:48: subs] Error 2
>
> Is there any reason for this difference in signess of the members
> of those structs if they shall be compared some where in the code?

No, not really. You can avoid that warning at line 1323 like:

- if (opt.num_names && opt.num_names != dh.n_exp_syms)
+ if (opt.num_names && opt.num_names != (ULONG32)dh.n_exp_syms)

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor