hoehermann / purple-gowhatsapp

Pidgin/libpurple plugin for WhatsApp Web.
GNU General Public License v3.0
276 stars 34 forks source link

Issue installing #158

Closed Shuggy999 closed 1 year ago

Shuggy999 commented 1 year ago

Hi there! Whenever I try and install, i get this issue.

[shuggy@shuggy-pc ~]$ yay -S purple-gowhatsapp
AUR Explicit (1): purple-gowhatsapp-1.0.0-1
:: (1/1) Downloaded PKGBUILD: purple-gowhatsapp
  1 purple-gowhatsapp                        (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
  1 purple-gowhatsapp                        (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
==> Making package: purple-gowhatsapp 1.0.0-1 (Wed 12 Apr 2023 20:20:57 CEST)
==> Retrieving sources...
  -> Downloading purple-gowhatsapp-1.0.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  121k    0  121k    0     0   107k      0 --:--:--  0:00:01 --:--:--  401k
==> Validating source files with sha256sums...
    purple-gowhatsapp-1.0.0.tar.gz ... Passed
:: (1/1) Parsing SRCINFO: purple-gowhatsapp
==> Making package: purple-gowhatsapp 1.0.0-1 (Wed 12 Apr 2023 20:20:59 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found purple-gowhatsapp-1.0.0.tar.gz
==> Validating source files with sha256sums...
    purple-gowhatsapp-1.0.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting purple-gowhatsapp-1.0.0.tar.gz with bsdtar
==> Sources are ready.
==> Making package: purple-gowhatsapp 1.0.0-1 (Wed 12 Apr 2023 20:21:00 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
-- The C compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking for module 'purple'
--   Found purple, version 2.14.12
-- PURPLE_INCLUDE_DIRS: /usr/include/libpurple;/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/sysprof-4
-- PURPLE_LIBRARY_DIRS: /usr/lib
-- PURPLE_LIBRARIES: purple;glib-2.0
-- PURPLE_PLUGIN_DIR: /usr/lib/purple-2
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/shuggy/.cache/yay/purple-gowhatsapp/src/purple-gowhatsapp-1.0.0/build
[  4%] Building C object src/go/CMakeFiles/purple-dummy.dir/purple-dummy.c.o
[  9%] Building C object src/go/CMakeFiles/purple-dummy.dir/__/c/constants.c.o
[ 14%] Linking C static library libpurple-dummy.a
[ 14%] Built target purple-dummy
[ 19%] Updating go modules...
go: downloading go.mau.fi/whatsmeow v0.0.0-20230410091758-46e30e265256
go: downloading github.com/go-sql-driver/mysql v1.6.0
go: downloading github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
go: downloading github.com/mattn/go-sqlite3 v1.14.10
go: downloading github.com/mdp/qrterminal/v3 v3.0.0
go: downloading github.com/jackc/pgx v3.6.2+incompatible
go: downloading google.golang.org/protobuf v1.28.1
go: downloading rsc.io/qr v0.2.0
go: downloading golang.org/x/crypto v0.5.0
go: downloading go.mau.fi/libsignal v0.1.0
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading filippo.io/edwards25519 v1.0.0
go: downloading golang.org/x/text v0.6.0
go: downloading github.com/google/go-cmp v0.5.5
go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go: finding module for package github.com/lib/pq
go: finding module for package github.com/gofrs/uuid
go: finding module for package github.com/pkg/errors
go: finding module for package github.com/jackc/fake
go: finding module for package github.com/shopspring/decimal
go: finding module for package github.com/cockroachdb/apd
go: downloading github.com/cockroachdb/apd v1.1.0
go: downloading github.com/jackc/fake v0.0.0-20150926172116-812a484cc733
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/lib/pq v1.10.7
go: downloading github.com/shopspring/decimal v1.3.1
go: downloading github.com/gofrs/uuid v4.4.0+incompatible
go: found github.com/pkg/errors in github.com/pkg/errors v0.9.1
go: found github.com/cockroachdb/apd in github.com/cockroachdb/apd v1.1.0
go: found github.com/gofrs/uuid in github.com/gofrs/uuid v4.4.0+incompatible
go: found github.com/jackc/fake in github.com/jackc/fake v0.0.0-20150926172116-812a484cc733
go: found github.com/shopspring/decimal in github.com/shopspring/decimal v1.3.1
go: found github.com/lib/pq in github.com/lib/pq v1.10.7
go: downloading github.com/mdp/qrterminal v1.0.1
[ 23%] Generating purple-go-whatsapp.a, purple-go-whatsapp.h
# command-line-arguments
./send_file.go:49:38: cannot use recipient (variable of type types.JID) as context.Context value in argument to handler.client.SendMessage: types.JID does not implement context.Context (missing method Deadline)
./send_file.go:49:49: cannot use "" (untyped string constant) as types.JID value in argument to handler.client.SendMessage
./profile.go:52:55: cannot use preview (variable of type bool) as *whatsmeow.GetProfilePictureParams value in argument to handler.client.GetProfilePictureInfo
./send_message.go:39:41: cannot use recipient (variable of type types.JID) as context.Context value in argument to handler.client.SendMessage: types.JID does not implement context.Context (missing method Deadline)
./send_message.go:39:52: cannot use "" (untyped string constant) as types.JID value in argument to handler.client.SendMessage
./send_message.go:48:108: cannot use ts (variable of type whatsmeow.SendResponse) as time.Time value in argument to purple_display_text_message
make[2]: *** [src/go/CMakeFiles/purple-go-whatsapp.dir/build.make:86: src/go/purple-go-whatsapp.a] Error 1
make[1]: *** [CMakeFiles/Makefile2:143: src/go/CMakeFiles/purple-go-whatsapp.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: purple-gowhatsapp-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
purple-gowhatsapp - exit status 4

Please tell me what do do to fix this issue.

hoehermann commented 1 year ago

https://aur.archlinux.org/packages/purple-gowhatsapp is horribly outdated. I have no control over what people add to the AUR. Please use https://aur.archlinux.org/packages/purple-gowhatsapp-git. I do not know Arch Linux too well, but I guess yay -S purple-gowhatsapp-git should work.

Shuggy999 commented 1 year ago

Thanks! That solved it.