OpenBCM V1.07b6_bn2 (Linux)

Packet Radio Mailbox

FFLB0X

[[FFL-B0X]]

 Login: GAST





  
MD2SAW > TNN      02.04.24 21:05l 200 Lines 6640 Bytes #999 (0) @ EU
BID : 000530MD2SAW
Read: GAST
Subj: FIX: TNN Crash DE/ENG
Path: FFLB0X<DBO841<DBO595<DBX320<MD2BBS
Sent: 240401/0826Z @:MD2BBS.#SAW.SAA.DEU.EU #:20313 [Salzwedel] $:000530MD2SAW
From: MD2SAW@MD2BBS.#SAW.SAA.DEU.EU
To  : TNN@EU


Dank Ralph(Y02HAL) und Peter(PE1FLT) haben wir eine Lösung für das Problem.
Der Bug scheint erst ab Version xx49 aufzutreten.
Peter konnte die Funktion, die für den Crash verantwortlich ist finden worauf hin Ralph die 
Funktion mit der alten Version vergleichen konnte. Und siehe da.. 
Es scheint zu funktionieren und läuft bereits so auf verschiedenen Systemen..
Yeah..

Ich habe das ganze als Bug Report auf GitHub(TNN Delta Lima) eingereicht und hoffe auf ein baldiges update.
github.com/DeltaLima/TheNetNode-CB/issues/1

BugFix :

(Bitte seit euch im klaren darüber, dass ihr diese Modifikation auf eigene Gefahr durch führt. 
Es können durch diese Modifikation andere Bugs entstehen, was zu Missverständnissen führen kann, 
wenn ein neuer Bug gemeldet wird, ohne zu wissen das sich Eure Version um eine Modifizierte Version handelt !!! 
Es ist für die Developer extrem schwer nachzuvollziehen und kann viel nervenaufreibende Arbeit bedeuten, 
bis man endlich erkennt, dass der Bug durch die Mod ausgelöst wird. 
Also Bitte erwartet kein Support mit dieser Modifizierten Version.)
-------------------------------------------------------------------------------------------------------
Im TNN Ordner,
in der Datei src/callstr.c
Zeile 418 ändern von
   if (strlen(*n) >= 1)
zu
   if (n[-1] != *a)


und neu kompilieren.
Das wars.. Vor dem neuen Kompilieren immer einmal 'make clean' machen.

-------------------------------------------------------------------------------------------------------


Jetzt folgt noch eine Anweisung zum korrekten kompilieren von TNN als 32-bit Anwendung 
auf ein 64-bit System.
Der Peter(PE1FLT) hat diese Anweisung dankenswerter weise erarbeitet und getestet auf folgenden Systemen.
(Debian 11, Ubuntu 22)
Das Problem an noch aktuelleren Versionen ist, dass sich TNN nur mit GCC Kompiliere bis Version 9 
kompilieren lässt.
Ich habe schon gelesen das es jemand mit Version 10 geschafft hat aber die folgende Anweisung ist 
für gcc Version 9.

Kompilieren:
-------------------------------------------------------------------------------------------------------

Natürlich erst mal git und buildtools installieren:

   sudo apt install git build-essential

Dann das GCC Version 9:

   sudo apt install gcc-9 gcc-9-multilib

Danach die GCC-9 als default einstellen:

   update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9

Kontrollieren mal die Gcc-Version:

   gcc -v

sollte was mit 9.xx rauskommen.

TNN (mache ich direkt als root):

   sudo -i

git-repo herunterladen:

   cd /usr/src
   git clone github.com/DeltaLima/TheNetNode-CB.git
   cd TheNetNode-CB

Ggf. Bugfix durchführen,
dann kompilieren als 32-Bit

   make CC="gcc -m32"

Kontrollieren ob es wirklich 32bit geworden ist.

   file bin/*

es sollte alles elf32 sein. Außer bin/cleaner das ist 64-bit, das ist aber richtig so da es nicht zum tnn gehört.
Dann

make baseinstall

Fertig ..
------------------------------------------------------------------------------------------
Danke an Peter !!
===================================================================================================



Thanks to Ralph(Y02HAL) and Peter(PE1FLT) we have a solution to the problem.
The bug only seems to occur from version xx49.
Peter was able to find the function responsible for the crash and Ralph was able to compare it with the old version. 
And lo and behold. It seems to work and is already running on different systems...
Yeah...

I have submitted the whole thing as a bug report on GitHub(TNN Delta Lima) and hope for an update soon.
github.com/DeltaLima/TheNetNode-CB/issues/1

BugFix :
(Please be aware that you do this modification at your own risk. This modification may cause other bugs, 
which can lead to misunderstandings if a new bug is reported without knowing that your version is a modified version !!!! 
It is extremely difficult for the developers to understand and can mean a lot of nerve-wracking work until you finally 
realize that the bug is caused by the mod. So please do not expect support with this modified version).
-------------------------------------------------------------------------------------------------------
In the TNN folder,
in the file src/callstr.c
Change line 418 from
   if (strlen(*n) >= 1)
to
   if (n[-1] != *a)


and recompile.
That's it. Always 'make clean' once before recompiling.

-------------------------------------------------------------------------------------------------------

Now follows an instruction on how to correctly compile TNN as a 32-bit application 
on a 64-bit system.
Peter(PE1FLT) has thankfully developed and tested this instruction on the following systems.
(Debian 11, Ubuntu 22)
The problem with even more recent versions is that TNN can only be compiled with GCC compiler up to version 9 
can be compiled.
I have already read that someone has managed it with version 10 but the following instruction is 
for gcc version 9.

Compile:
-------------------------------------------------------------------------------------------------------

Of course install git and buildtools first:

   sudo apt install git build-essential

Then the GCC version 9:

   sudo apt install gcc-9 gcc-9-multilib

Then set GCC-9 as the default:

   update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9

Check the Gcc version:

   gcc -v

should come out with 9.xx.

TNN (I do this directly as root):

   sudo -i

Download git-repo:

   cd /usr/src
   git clone github.com/DeltaLima/TheNetNode-CB.git
   cd TheNetNode-CB

Perform bugfix if necessary,
then compile as 32-bit

   make CC="gcc -m32"

Check whether it has really become 32bit.

   file bin/*

everything should be elf32. Except bin/cleaner which is 64-bit, but that is correct as it is not part of tnn.
Then

   make baseinstall

Done ...
------------------------------------------------------------------------------------------
Thanks to Peter !!!

--
73 Manuel.

========================================================================

8b   d8 888b. d88b .d88b.    db  Yb        dP  Sysop:Manuel
8YbmdP8 8   8 " dP YPwww.   dPYb  Yb  db  dP  QTH: Salzwedel - JO52NU
8  "  8 8   8  dP      d8  dPwwYb  YbdPYbdP  BBS: MD2BBS.#SAW.SAA.DEU.EU
8     8 888P' d888 `Y88P' dP    Yb  YP  YP  QRV: 27.235 MHz / 27.025 MHz
                                           Web: packetradio-salzwedel.de
PR-Mail:  MD2SAW@MD2BBS.#SAW.SAA.DEU.EU
E-MAil:   cb0saw@e-mail.de
Terminal: MD2SAW via CB0SAW
CB0SAW Teamspeak3-/I-Net-/HF-Gateway/I-Gate AXIP: cb0saw-ddnss.de U 8093
========================================================================


Lese vorherige Mail | Lese naechste Mail


 02.05.2024 02:19:14lZurueck Nach oben