OpenBCM V1.13-36-g8006 (Linux)

Packet Radio Mailbox

DB0FFL

[Box DB0FFL]

 Login: GAST





  
PE1RRR > BPQ      29.04.20 12:34l 132 Lines 6936 Bytes #999 (0) @ WW
BID : 8702_PE1RRR
Read: GAST
Subj: Compiling LinBPQ Beta on 64bit systems
Path: DB0FFL<DB0FHN<DB0BLO<DB0ERF<IZ3LSV<I3XTY<I0OJJ<I0OJJ<GB7CIP<PE1RRR
Sent: 200429/1016Z 8702@PE1RRR.NLD.EURO LinBPQ6.0.20


Hi folks

While a build of the sources on 64bit linux WILL work, will RUN, it will get a lot of things very wrong and cause serious data 
integrity issues. You MUST compile the sources with 32bit libraries, here are my findings for doing that on a fresh Debian 10 6
4bit system. A way to see a 64bit build failing spectacularly is by running 'nrr' from that host to any neighbor and watch the 
fireworks occur in the traffic monitor as a netrom death spiral occurs (but still doesn't crash!).

Here's the procedure I created below for working with the CommonSources.zip:


> Hi John (cc: Lee for info)
>
> Did some more digging.
>
> Compiled linbpq with forced 32bit compile, had to install some extra 32 bit libs, upshot is nrr now fine, and no errors or wa
rnings in build on 64bit platform. This probably also solved some of the data integrity issues I was encountering when I had re
al-world traffic traversing this node, it borked out a lot.
>
> Steps, this is on Debian 10.
>
Add 32bit compatibility libs:

 sudo dpkg --add-architecture i386
 sudo apt-get update
 sudo apt-get install libcap-dev:i386 libconfig-dev:i386
 apt will install bunch of dependencies.
 sudo ldconfig

Edit makefile:

 (Adding -m32 to gcc lines)

 CC = gcc -m32

 linbpq: $(OBJS)
 gcc -m32 $(OBJS) -Xlinker -Map=output.map -lrt -lm -lpthread -lconfig -lpcap -o linbpq
 sudo setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq


make
> gcc -m32 -DLINBPQ -MMD -g   -c -o adif.o adif.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o bpqhdlc.o bpqhdlc.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o SerialPort.o SerialPort.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o WebMail.o WebMail.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o utf8Routines.o utf8Routines.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o VARA.o VARA.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o LzFind.o LzFind.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o Alloc.o Alloc.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o LzmaDec.o LzmaDec.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o LzmaEnc.o LzmaEnc.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o LzmaLib.o LzmaLib.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o Multicast.o Multicast.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o ARDOP.o ARDOP.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o IPCode.o IPCode.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o FLDigi.o FLDigi.c
> FLDigi.c: In function 'ExtProc':
> FLDigi.c:584:47: warning: passing argument 3 of 'SendXMLCommand' makes pointer from integer without a cast [-Wint-conversion]

>        SendXMLCommand(TNC, "modem.set_carrier", atoi(&buff->L2DATA[5]), 'I');
>                                                 ^~~~~~~~~~~~~~~~~~~~~~
> FLDigi.c:97:66: note: expected 'char *' but argument is of type 'int'
>   VOID SendXMLCommand(struct TNCINFO * TNC, char * Command, char * Value, char ParamType);
>                                                             ~~~~~~~^~~~~
> gcc -m32 -DLINBPQ -MMD -g   -c -o linether.o linether.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o TNCEmulators.o TNCEmulators.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o CMSAuth.o CMSAuth.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o APRSCode.o APRSCode.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o BPQtoAGW.o BPQtoAGW.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o KAMPactor.o KAMPactor.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o AEAPactor.o AEAPactor.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o HALDriver.o HALDriver.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o MULTIPSK.o MULTIPSK.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o BBSHTMLConfig.o BBSHTMLConfig.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o ChatHTMLConfig.o ChatHTMLConfig.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o HTMLCommonCode.o HTMLCommonCode.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o BBSUtilities.o BBSUtilities.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o bpqaxip.o bpqaxip.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o BPQINP3.o BPQINP3.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o BPQNRR.o BPQNRR.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o cMain.o cMain.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o Cmd.o Cmd.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o CommonCode.o CommonCode.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o compatbits.o compatbits.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o config.o config.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o datadefs.o datadefs.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o FBBRoutines.o FBBRoutines.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o HFCommon.o HFCommon.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o Housekeeping.o Housekeeping.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o HTTPcode.o HTTPcode.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o kiss.o kiss.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o L2Code.o L2Code.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o L3Code.o L3Code.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o L4Code.o L4Code.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o lzhuf32.o lzhuf32.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o MailCommands.o MailCommands.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o MailDataDefs.o MailDataDefs.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o LinBPQ.o LinBPQ.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o MailRouting.o MailRouting.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o MailTCP.o MailTCP.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o MBLRoutines.o MBLRoutines.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o md5.o md5.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o Moncode.o Moncode.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o NNTPRoutines.o NNTPRoutines.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o RigControl.o RigControl.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o TelnetV6.o TelnetV6.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o WINMOR.o WINMOR.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o TNCCode.o TNCCode.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o UZ7HODrv.o UZ7HODrv.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o WPRoutines.o WPRoutines.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o SCSTrackeMulti.o SCSTrackeMulti.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o SCSPactor.o SCSPactor.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o SCSTracker.o SCSTracker.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o HanksRT.o HanksRT.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o UIRoutines.o UIRoutines.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o AGWAPI.o AGWAPI.c
> gcc -m32 -DLINBPQ -MMD -g   -c -o AGWMoncode.o AGWMoncode.c
> gcc -m32 adif.o bpqhdlc.o SerialPort.o WebMail.o  utf8Routines.o VARA.o LzFind.o Alloc.o LzmaDec.o LzmaEnc.o LzmaLib.o Multic
ast.o ARDOP.o IPCode.o FLDigi.o linether.o TNCEmulators.o CMSAuth.o APRSCode.o BPQtoAGW.o KAMPactor.o AEAPactor.o HALDriver.o M
ULTIPSK.o BBSHTMLConfig.o ChatHTMLConfig.o HTMLCommonCode.o BBSUtilities.o bpqaxip.o BPQINP3.o BPQNRR.o cMain.o Cmd.o CommonCod
e..o compatbits.o config.o datadefs.o FBBRoutines.o HFCommon.o Housekeeping.o HTTPcode.o kiss.o L2Code.o L3Code.o L4Code.o lzhu
f32.o MailCommands.o MailDataDefs.o LinBPQ.o MailRouting.o MailTCP.o MBLRoutines.o md5.o Moncode.o NNTPRoutines.o RigControl.o 
TelnetV6.o WINMOR.o TNCCode.o UZ7HODrv.o WPRoutines.o SCSTrackeMulti.o SCSPactor.o SCSTracker.o HanksRT.o  UIRoutines.o AGWAPI.
o AGWMoncode.o -Xlinker -Map=output.map -lrt -lm -lpthread -lconfig -lpcap -o linbpq
> sudo setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq



-- 
Red <pe1rrr@pe1rrr.ampr.org>



Lese vorherige Mail | Lese naechste Mail


 06.04.2026 11:11:28lZurueck Nach oben