Okay, I adopted the AUR package and whatscli will automatically publish to AUR on each release from now on.
![]() |
VOOZH | about |
| Git Clone URL: | https://aur.archlinux.org/whatscli.git (read-only, click to copy) |
|---|---|
| Package Base: | whatscli |
| Description: | A command line interface for WhatsApp, based on go-whatsmeow and tview |
| Upstream URL: | https://github.com/normen/whatscli |
| Keywords: | |
| Submitter: | pjvds |
| Maintainer: | normen |
| Last Packager: | normen |
| Votes: | 9 |
| Popularity: | 0.74 |
| First Submitted: | 2020-11-19 09:47 (UTC) |
| Last Updated: | 2026-06-02 13:20 (UTC) |
Okay, I adopted the AUR package and whatscli will automatically publish to AUR on each release from now on.
I finally got around to actually making a new version of whatscli - in case this AUR is still alive, please update from git :)
I am neither the maintainer nor a developer of whatscli or any of its dependencies. The project depends on the library https://github.com/Rhymen/go-whatsapp, which has been inactive for more than five years.
It is likely that changes have occurred in the upstream WhatsApp protocols during that time. As a result, the application no longer works correctly. For example, SessionManager::getConnection in messages/session_manager.go is unable to establish a new connection.
Given the state of the dependency and the lack of maintenance, it may be best to consider this project effectively unmaintained and let it rest — unless someone steps up to maintain the go-whatsapp package.
I got the same error as @E_D3V, seems like it's not possible to install it anymore. I'm on Cachy OS.
I was able to build according to @gurban's edit, but when executing whatscli I got a SIGSEGV crash.
signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x56213a1d735e
goroutine 29 [running]:
github.com/Rhymen/go-whatsapp.(*Conn).Login(0x0, 0x3df99eca2bd0) github.com/Rhymen/go-whatsapp@v0.1.2-0.20210615184944-2b8a3e9b8aa2/session.go:191+0x7e
github.com/normen/whatscli/messages.(*SessionManager).loginWithConnection(0x3df99ece0370, 0x0)
github.com/normen/whatscli/messages/session_manager.go:234 +0x1f9
github.com/normen/whatscli/messages.(*SessionManager).
runManager(0x3df99ece0370)
github.com/normen/whatscli/messages/session_manager.go:71 +0x45
created by github.com/normen/whatscli/messages.(*SessionManager).StartManager in goroutine 1
github.com/normen/whatscli/messages/session_manager.go:65 +0x65
Thank you @gurban, it does work with your edit.
==> Making package: whatscli 1.0.11-1 (Thu 03 Apr 2025 10:49:48 PM +0330)
==> Retrieving sources...
-> Found whatscli-1.0.11.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha1sums...
whatscli-1.0.11.tar.gz ... Passed
:: (1/1) Parsing SRCINFO: whatscli
==> Making package: whatscli 1.0.11-1 (Thu 03 Apr 2025 10:49:51 PM +0330)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found whatscli-1.0.11.tar.gz
==> Validating source files with sha1sums...
whatscli-1.0.11.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting whatscli-1.0.11.tar.gz with bsdtar
==> Sources are ready.
==> Making package: whatscli 1.0.11-1 (Thu 03 Apr 2025 10:49:58 PM +0330)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
# command-line-arguments
flag provided but not defined: -Wl,--sort-common
usage: link [options] main.o
-B note
set ELF NT_GNU_BUILD_ID note or Mach-O UUID; use "gobuildid" to generate it from the Go build ID; "none" to disable
-E entry
set entry symbol name
-H type
set header type
-I linker
.....
.....
.....
-tmpdir directory
use directory for temporary files
-v print link trace
-w disable DWARF generation
==> ERROR: A failure occurred in build().
Aborting...
-> error making: whatscli-exit status 4
-> Failed to install the following packages. Manual intervention is required:
whatscli - exit status 4
I changed PKGBUILD as following and package built successfully.
diff --git a/PKGBUILD b/PKGBUILD
index 991f475..24e0198 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,7 +15,7 @@ build() {
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
- go build -o ${pkgname} -ldflags "-extldflags ${LDFLAGS} -s -w -X main.version=${pkgver}" main.go
+ go build -o ${pkgname} -ldflags "-extldflags -s -w -X main.version=${pkgver}" main.go
}
package() {
Doesn't build for me.
# command-line-arguments
flag provided but not defined: -Wl,--sort-common
usage: link [options] main.o
Seg faults as soon as I launch the CLI, please fix