Package Details: paho-mqtt-c 1.3.16-1

Git Clone URL: https://aur.archlinux.org/paho-mqtt-c.git (read-only, click to copy)
Package Base: paho-mqtt-c
Description: Eclipse Paho C Client Library for the MQTT Protocol
Upstream URL: https://eclipse.dev/paho/
Licenses: EPL-2.0
Provides: libpaho-mqtt3a.so, libpaho-mqtt3as.so, libpaho-mqtt3c.so, libpaho-mqtt3cs.so
Submitter: MrAnno
Maintainer: vitaliikuzhdin
Last Packager: vitaliikuzhdin
Votes: 10
Popularity: 1.54
First Submitted: 2021-06-18 12:01 (UTC)
Last Updated: 2026-06-15 09:35 (UTC)

Latest Comments

vitaliikuzhdin commented on 2026-07-05 09:14 (UTC) (edited on 2026-07-05 09:15 (UTC) by vitaliikuzhdin)

@tevd, worked for me back when I wrote it, still works now. What errors are you getting specifically?

$ gpg --delete-keys 0C3CFB4764727BB13196B0ABA7AE1A8F2CCAB186
gpg (GnuPG) 2.4.9; Copyright (C) 2025 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


pub  ed25519/A7AE1A8F2CCAB186 2025-01-07 Ian Craggs (Github signing) <icraggs@gmail.com>

Delete this key from the keyring? (y/N) y
$ makepkg -f
==> Making package: paho-mqtt-c 1.3.16-1 ([...])
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating paho.mqtt.c git repo...
==> Validating source files with sha256sums...
    paho.mqtt.c ... Passed
==> Verifying source file signatures with gpg...
    paho.mqtt.c git repo ... FAILED (unknown public key A7AE1A8F2CCAB186)
==> ERROR: One or more PGP signatures could not be verified!
$ gpg --recv-keys 0C3CFB4764727BB13196B0ABA7AE1A8F2CCAB186
gpg: key A7AE1A8F2CCAB186: public key "Ian Craggs (Github signing) <icraggs@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
$ makepkg -f
==> Making package: paho-mqtt-c 1.3.16-1 ([...])
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating paho.mqtt.c git repo...
==> Validating source files with sha256sums...
    paho.mqtt.c ... Passed
==> Verifying source file signatures with gpg...
    paho.mqtt.c git repo ... Passed
==> Extracting sources...
  -> Creating working copy of paho.mqtt.c git repo...
Reset branch 'makepkg'
==> Removing existing $pkgdir/ directory...
==> Starting build()...

tevd commented on 2026-06-28 18:20 (UTC)

It looks like the GPG key used to sign the the latest release tag is different than the one in the pkgbuild. Right now the package refuses to build due to certificate verification errors.

thefrow commented on 2026-02-23 04:18 (UTC)

There's been another version released. Latest is 1.3.16 as of 2026-02-22 via

https://github.com/eclipse-paho/paho.mqtt.c/releases/tag/v1.3.16

tapajos commented on 2025-05-01 01:05 (UTC)

gcc15 uses c23 by default

diff --git a/PKGBUILD b/PKGBUILD
index 500a664..3248b10 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,6 +16,7 @@ build() {
   cd "${pkgname//-/.}-${pkgver}"
   cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr \
     -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_SAMPLES=TRUE \
+    -DCMAKE_C_STANDARD=11 \
     -S . -B build
   cmake --build build

destroyedlolo commented on 2024-10-13 20:16 (UTC)

Hello,

Can you unlock installation on arm7h architecture ? This library is perfectly working on it :)

Thanks

jasonc commented on 2023-09-12 05:19 (UTC) (edited on 2023-09-12 05:26 (UTC) by jasonc)

I was running into a build error during the package step:

...
[125/125] Linking C executable test/test95
==> Starting check()...
==> Entering fakeroot environment...
==> Starting package()...
ninja: error: unknown target 'DESTDIR=/home/jasonc/.cache/paru/clone/paho-mqtt-c/pkg/paho-mqtt-c'
==> ERROR: A failure occurred in package().
Aborting...
error: failed to build 'paho-mqtt-c-1.3.12-1':

It looks like the makefile was treating DESTDIR=... as a target. Note I am using ninja makefile generator for cmake by default. This issue does not exist for normal unix makefiles.

This patch to the PKGBUILD fixed the issue for me and works with both ninja and unix makefiles:

diff --git a/PKGBUILD b/PKGBUILD
index 511e1a6..30c891d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,7 +27,7 @@ check() {

package() {
cd "${pkgname//-/.}-${pkgver}"
-  cmake --build build --target install -- DESTDIR="$pkgdir/"
+  DESTDIR="$pkgdir/" cmake --install build

install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 edl-v10 "${pkgdir}/usr/share/licenses/${pkgname}/edl-v10"