¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: linbpq build error


 

more update on aarch64 system that failed earlier.
i redownloaded libjansson-dev(arm64 version). both arm64 and armhf dids't exist on my buster repository.
install libjansson-dev_2.12-1_arm64.deb and recompiled, now it worked.?

linbpq with?mqtt support compiled!
harry@aml linbpq (master) $ ./linbpq -h
G8BPQ AX25 Packet Switch System Version 6.0.24.47 October 2024
Copyright 01-2024 John Wiseman G8BPQ

thanks folks
73 Hari?



On Wed, Oct 23, 2024 at 11:57?AM Hari Hendaryanto via <harihend1973=[email protected]> wrote:
updated:

32 bit version and libjansson doesn't work on my aarch64 system (s905)
harry@aml linbpq (master) $ lscpu
Architecture: ? ? ? ?aarch64
Byte Order: ? ? ? ? ?Little Endian
CPU(s): ? ? ? ? ? ? ?4
On-line CPU(s) list: 0-3
Thread(s) per core: ?1
Core(s) per socket: ?4
Socket(s): ? ? ? ? ? 1
Vendor ID: ? ? ? ? ? ARM
Model: ? ? ? ? ? ? ? 4
Model name: ? ? ? ? ?Cortex-A53
--snipped--

but it worked on my X86_64 system.
hari@APRS linbpq (master) $ lscpu
Architecture: ? ? ? ? ? ? ? ? ? ? ? ? x86_64
CPU op-mode(s): ? ? ? ? ? ? ? ? ? ? ? 32-bit, 64-bit
Byte Order: ? ? ? ? ? ? ? ? ? ? ? ? ? Little Endian
Address sizes: ? ? ? ? ? ? ? ? ? ? ? ?36 bits physical, 48 bits virtual
CPU(s): ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 4
On-line CPU(s) list: ? ? ? ? ? ? ? ? ?0-3
Thread(s) per core: ? ? ? ? ? ? ? ? ? 1
Core(s) per socket: ? ? ? ? ? ? ? ? ? 4
Socket(s): ? ? ? ? ? ? ? ? ? ? ? ? ? ?1
NUMA node(s): ? ? ? ? ? ? ? ? ? ? ? ? 1
Vendor ID: ? ? ? ? ? ? ? ? ? ? ? ? ? ?GenuineIntel
CPU family: ? ? ? ? ? ? ? ? ? ? ? ? ? 6
Model: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?76
Model name: ? ? ? ? ? ? ? ? ? ? ? ? ? Intel(R) Atom(TM) x5-Z8350 ?CPU @ 1.44GHz
--snipped--

gcc pngwtran.o pngrtran.o pngset.o pngrio.o pngwio.o pngtrans.o pngrutil.o pngwutil.o pngread.o pngwrite.o png.o pngerror.o pngget.o pngmem.o APRSIconData.o AISCommon.o upnp.o APRSStdPages.o HSMODEM.o WinRPR.o KISSHF.o TNCEmulators.o bpqhdlc.o SerialPort.o adif.o WebMail.o utf8Routines.o VARA.o LzFind.o Alloc.o LzmaDec.o LzmaEnc.o LzmaLib.o Multicast.o ARDOP.o IPCode.o FLDigi.o linether.o CMSAuth.o APRSCode.o BPQtoAGW.o KAMPactor.o AEAPactor.o HALDriver.o MULTIPSK.o BBSHTMLConfig.o ChatHTMLConfig.o BBSUtilities.o bpqaxip.o BPQINP3.o BPQNRR.o cMain.o Cmd.o CommonCode.o HTMLCommonCode.o compatbits.o config.o datadefs.o FBBRoutines.o HFCommon.o Housekeeping.o HTTPcode.o kiss.o L2Code.o L3Code.o L4Code.o lzhuf32.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 DRATS.o FreeDATA.o base64.o Events.o nodeapi.o mailapi.o mqtt.o -Xlinker -Map=output.map -l:libminiupnpc.a -lrt -lm -lz -l:libpaho-mqtt3a.a -l:libjansson.a -lpthread -lconfig -lpcap -o linbpq
sudo setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq


?hari@APRS linbpq (master) $ ./linbpq -h
G8BPQ AX25 Packet Switch System Version 6.0.24.47 October 2024
Copyright 01-2024 John Wiseman G8BPQ

but still, it's 64 bit executable. i've never tried to switch my linbpq to this machine??

hari@APRS linbpq (master) $ file linbpq
linbpq: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=81fdef89868bd42977e0ddf12eb51cef64e995a7, for GNU/Linux 3.2.0, with debug_info, not stripped

73 Hari?

On Wed, Oct 23, 2024 at 5:26?AM Hari Hendaryanto via <harihend1973=[email protected]> wrote:
Hi john,

I belived i'm on 64 bit system. And libjansson-dev manually downloaded from debian website(binarry deb for buster). i've built lib-paho per yout instructions succesafully. libjansson-deb also installed manually. 32 bit packages can be installed using armhf.

73 hari?


On Tue, 22 Oct 2024, 6:52?pm John G8BPQ via , <john.wiseman=[email protected]> wrote:
Are you building a 32 bit or 64 bit version of linbpq? Do you have the right libraries for that architecture?

73,
John


On 22/10/2024 12:08, Hari Hendaryanto wrote:
hi John,

still no joy even i have those both static libraries now
harry@aml linbpq (master) $ ls /usr/lib/arm-linux-gnueabihf/libjansson*
/usr/lib/arm-linux-gnueabihf/libjansson.a ? /usr/lib/arm-linux-gnueabihf/libjansson.so.4
/usr/lib/arm-linux-gnueabihf/libjansson.so ?/usr/lib/arm-linux-gnueabihf/libjansson.so.4.11.1

harry@aml linbpq (master) $ ls /usr/lib/arm-linux-gnueabihf/libpaho-mqtt3*
/usr/lib/arm-linux-gnueabihf/libpaho-mqtt3a.a ? /usr/lib/arm-linux-gnueabihf/libpaho-mqtt3as.so ?/usr/lib/arm-linux-gnueabihf/libpaho-mqtt3cs.a
/usr/lib/arm-linux-gnueabihf/libpaho-mqtt3a.so ?/usr/lib/arm-linux-gnueabihf/libpaho-mqtt3c.a ? ?/usr/lib/arm-linux-gnueabihf/libpaho-mqtt3cs.so
/usr/lib/arm-linux-gnueabihf/libpaho-mqtt3as.a ?/usr/lib/arm-linux-gnueabihf/libpaho-mqtt3c.so

/usr/bin/ld: cannot find -l:libpaho-mqtt3a.a
/usr/bin/ld: cannot find -l:libjansson.a
collect2: error: ld returned 1 exit status
make: *** [makefile:35: linbpq] Error 1

i've end up compiling linbpq without mqtt support.

harry@aml linbpq (master) $ ./linbpq -h
G8BPQ AX25 Packet Switch System Version 6.0.24.47 October 2024
Copyright 01-2024 John Wiseman G8BPQ

thanks a bunch anyway
73 hari YD0BCX

On Tue, Oct 22, 2024 at 1:47?PM John G8BPQ via <john.wiseman=[email protected]> wrote:
Sorry, I forget to document this. BPQ now supports sending information to an mqtt broker. This adds dependencies on libjansson-dev and? libpaho-mqtt-dev. If you can't find a package for libpaho-mqtt3a.a? you can build without mqtt support:

make nomqtt. You may need a make clean first.

or install from source. This works for me:

git clone
cd paho.mqtt.c
cmake -Bbuild -H. -DPAHO_ENABLE_TESTING=OFF -DPAHO_BUILD_STATIC=ON -DPAHO_WITH_SSL=OFF -DPAHO_HIGH_PERFORMANCE=ON -DCMAKE_INSTALL_PREFIX=../install
cd build
cmake --build . --target install

Then copy to your lib directory. I use

sudo cp ./install/lib/libpaho-mqtt3a.a /usr/lib/arm-linux-gnueabihf
or
sudo cp ./install/lib/libpaho-mqtt3a.a /usr/lib/or i386-linux-gnu/

73, John



On 22/10/2024 05:24, Hari Hendaryanto wrote:
hi guys,
?
i was trying to build linbpq latest from source obaint from jon's repository(git://vps1.g8bpq.net/linbpq)
my system is kinda ancient using debian buster on armlogic s905.
?
previously i've never had any problem compiling the source until version 6.0.24.42 August 2024.
now i have :(
?
gcc pngwtran.o pngrtran.o pngset.o pngrio.o pngwio.o pngtrans.o pngrutil.o pngwutil.o pngread.o pngwrite.o png.o pngerror.o pngget.o pngmem.o APRSIconData.o AISCommon.o upnp.o APRSStdPages.o HSMODEM.o WinRPR.o KISSHF.o TNCEmulators.o bpqhdlc.o SerialPort.o adif.o WebMail.o utf8Routines.o VARA.o LzFind.o Alloc.o LzmaDec.o LzmaEnc.o LzmaLib.o Multicast.o ARDOP.o IPCode.o FLDigi.o linether.o CMSAuth.o APRSCode.o BPQtoAGW.o KAMPactor.o AEAPactor.o HALDriver.o MULTIPSK.o BBSHTMLConfig.o ChatHTMLConfig.o BBSUtilities.o bpqaxip.o BPQINP3.o BPQNRR.o cMain.o Cmd.o CommonCode.o HTMLCommonCode.o compatbits.o config.o datadefs.o FBBRoutines.o HFCommon.o Housekeeping.o HTTPcode.o kiss.o L2Code.o L3Code.o L4Code.o lzhuf32.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 DRATS.o FreeDATA.o base64.o Events.o nodeapi.o mailapi.o mqtt.o -Xlinker -Map=output.map -l:libminiupnpc.a -lrt -lm -lz -l:libpaho-mqtt3a.a -l:libjansson.a -lpthread -lconfig -lpcap -o linbpq
/usr/bin/ld: cannot find -l:libpaho-mqtt3a.a
/usr/bin/ld: cannot find -l:libjansson.a
collect2: error: ld returned 1 exit status
make: *** [makefile:35: linbpq] Error 1
?
i can manually installed libjansson.a static package from deb package for armhf. then do ldconfig.
however i cannot find any libpaho-mqtt3a.a for my debian buster anywhere.
?
any help would be appreciated.
?
Thanks in advance
Hari YD0BCX


Join [email protected] to automatically receive all group messages.