Python-ueberzug-git not building

ueberzug/X/display.c:214:1: warning: ‘Display_get_screen_height’ defined but not used [-Wunused-function]
  214 | Display_get_screen_height(DisplayObject *self, void *closure) {
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -Iueberzug/X -I/usr/include/python3.9 -c ueberzug/X/window.c -o build/temp.linux-x86_64-3.9/ueberzug/X/window.o
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fno-semantic-interposition -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-3.9/ueberzug/X/X.o build/temp.linux-x86_64-3.9/ueberzug/X/Xshm.o build/temp.linux-x86_64-3.9/ueberzug/X/display.o build/temp.linux-x86_64-3.9/ueberzug/X/window.o -L/usr/lib -lX11 -lXext -lXRes -o build/lib.linux-x86_64-3.9/ueberzug/X.cpython-39-x86_64-linux-gnu.so
/usr/bin/ld: build/temp.linux-x86_64-3.9/ueberzug/X/Xshm.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/display.h:27: multiple definition of `DisplayType'; build/temp.linux-x86_64-3.9/ueberzug/X/X.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/display.h:27: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/ueberzug/X/Xshm.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/Xshm.c:279: multiple definition of `ImageType'; build/temp.linux-x86_64-3.9/ueberzug/X/X.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/Xshm.h:6: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/ueberzug/X/display.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/display.h:27: multiple definition of `DisplayType'; build/temp.linux-x86_64-3.9/ueberzug/X/X.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/display.h:27: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/ueberzug/X/window.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/display.h:27: multiple definition of `DisplayType'; build/temp.linux-x86_64-3.9/ueberzug/X/X.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/display.h:27: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/ueberzug/X/window.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/window.c:299: multiple definition of `WindowType'; build/temp.linux-x86_64-3.9/ueberzug/X/X.o:/home/xircon/.cache/paru/clone/python-ueberzug-git/src/ueberzug/ueberzug/X/window.h:6: first defined here
collect2: error: ld returned 1 exit status
error: command '/usr/bin/gcc' failed with exit code 1

Any ideas? That is Greek to me :smiley:

Have you tried clean building it?

Yes, same incomprehensible error.

It doesn’t build for me either. It is a *-git package so possibly it is just broken right now.

1 Like

Thanks for the confirmation, there isn’t an issue section on their github page :frowning:

It seems like the most recent merge is cauing the issue.

For me, it builds if you build from commit f5414aa20155caf50c4776e679d97a284a586ae4

Like this:

# Maintainer: mehalter <micah at mehalter.com>

_pkgname=ueberzug
pkgname=python-${_pkgname}-git
pkgver=18.1.5.a8ac9c3
pkgrel=1
pkgdesc="ueberzug is an python script which aims to replace w3mimgdisplay"
arch=('any')
url="https://github.com/seebye/${_pkgname}"
license=('GPL3')
depends=("libxext" "python-pillow" "python" "python-xlib" "python-docopt" "python-psutil" "python-attrs")
makedepends=("python" "git" "python-setuptools")
source=("git+${url}.git#commit=f5414aa20155caf50c4776e679d97a284a586ae4")
md5sums=('SKIP')
conflicts=("python-${_pkgname}")
provides=("python-${_pkgname}=${pkgver}")

build() {
  cd "$srcdir/$_pkgname"
  python setup.py build
}

package() {
  cd "$srcdir/$_pkgname"
  python setup.py install --prefix=/usr --root "${pkgdir}" || return 1
}
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.