Code Monkey home page Code Monkey logo

disputils's People

Contributors

tudurom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

duckwork shizonic

disputils's Issues

Build failure while creating AUR package

Hello!

I'm trying to create a PKGBUILD to post these set of utils on the Arch User Repository (AUR) so that other users can conveniently install and use these tools. For some reason however, when I try to build the pkg through makepkg -si I get the following error:

==> Starting build()...
CC util.c
CC randr.c
CC lsd.c
LD lsd
/sbin/ld: util.o: in function `init_xcb':
util.c:(.text+0xa): undefined reference to `xcb_connect'
/sbin/ld: util.c:(.text+0x16): undefined reference to `xcb_connection_has_error'
/sbin/ld: util.o: in function `kill_xcb':
util.c:(.text+0x4a): undefined reference to `xcb_disconnect'
/sbin/ld: util.o: in function `get_screen':
util.c:(.text+0x66): undefined reference to `xcb_get_setup'
/sbin/ld: util.c:(.text+0x6f): undefined reference to `xcb_setup_roots_iterator'
/sbin/ld: randr.o: in function `get_providers':
randr.c:(.text+0x10): undefined reference to `xcb_randr_get_providers'
/sbin/ld: randr.c:(.text+0x1d): undefined reference to `xcb_randr_get_providers_reply'
/sbin/ld: randr.c:(.text+0x2e): undefined reference to `xcb_randr_get_providers_providers'
/sbin/ld: randr.c:(.text+0x40): undefined reference to `xcb_randr_get_providers_providers_length'
/sbin/ld: randr.o: in function `get_outputs':
randr.c:(.text+0x70): undefined reference to `xcb_randr_get_provider_info'
/sbin/ld: randr.c:(.text+0x7d): undefined reference to `xcb_randr_get_provider_info_reply'
/sbin/ld: randr.c:(.text+0x8e): undefined reference to `xcb_randr_get_provider_info_outputs'
/sbin/ld: randr.c:(.text+0xa0): undefined reference to `xcb_randr_get_provider_info_outputs_length'
/sbin/ld: randr.o: in function `get_output_info':
randr.c:(.text+0xc8): undefined reference to `xcb_randr_get_output_info'
/sbin/ld: randr.c:(.text+0xd5): undefined reference to `xcb_randr_get_output_info_reply'
/sbin/ld: randr.o: in function `get_output_name':
randr.c:(.text+0x10f): undefined reference to `xcb_randr_get_output_info'
/sbin/ld: randr.c:(.text+0x11c): undefined reference to `xcb_randr_get_output_info_reply'
/sbin/ld: randr.c:(.text+0x12f): undefined reference to `xcb_randr_get_output_info_name'
/sbin/ld: randr.c:(.text+0x13b): undefined reference to `xcb_randr_get_output_info_name_length'
/sbin/ld: randr.c:(.text+0x16b): undefined reference to `xcb_randr_get_output_info_name_length'
/sbin/ld: randr.o: in function `get_output_connection':
randr.c:(.text+0x1a8): undefined reference to `xcb_randr_get_output_info'
/sbin/ld: randr.c:(.text+0x1b5): undefined reference to `xcb_randr_get_output_info_reply'
/sbin/ld: randr.o: in function `get_output_crtc_info':
randr.c:(.text+0x1e8): undefined reference to `xcb_randr_get_crtc_info'
/sbin/ld: randr.c:(.text+0x1f6): undefined reference to `xcb_randr_get_crtc_info_reply'
/sbin/ld: randr.o: in function `get_focused_window':
randr.c:(.text+0x20c): undefined reference to `xcb_get_input_focus'
/sbin/ld: randr.c:(.text+0x219): undefined reference to `xcb_get_input_focus_reply'
/sbin/ld: randr.o: in function `get_window_geometry':
randr.c:(.text+0x25f): undefined reference to `xcb_get_geometry'
/sbin/ld: randr.c:(.text+0x26c): undefined reference to `xcb_get_geometry_reply'
/sbin/ld: randr.o: in function `get_primary_output':
randr.c:(.text+0x2cc): undefined reference to `xcb_randr_get_output_primary'
/sbin/ld: randr.c:(.text+0x2d9): undefined reference to `xcb_randr_get_output_primary_reply'
collect2: error: ld returned 1 exit status
make: *** [Makefile:22: lsd] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

There is no problem building and installing when I manually clone this repo and execute the commands (from the README) myself in the shell. So far, my guess is that it has something to do with build flags but I don't know C so I have no idea what's appropriate. Here's the PKGBUILD I'm trying to write:

# Maintainer: Cullen Ross <[email protected]>

_pkgname='disputils'
pkgname="${_pkgname}-git"
pkgver=r71.1dcbe31
pkgrel=1
pkgdesc='set of utilities for querying information about connected X displays'
arch=('any')
url="https://github.com/tudurom/${_pkgname}"
license=('ISC')
depends=('libxcb' 'libxrandr' 'xcb-util')
makedepends=('make' 'git')
provides=('disputils')
source=("${_pkgname}::git+${url}.git")
md5sums=(SKIP)

pkgver() {
    cd "${_pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
  sed -i -e 's|/local||g' config.mk
  make
}

package() {
    cd "${srcdir}/${_pkgname}"
    make install
}

It's obviously a work in progress and I appreciate any suggestions for it!

needs fixing under ubuntu

LD lsd
util.o: In function `init_xcb':
util.c:(.text+0x9): undefined reference to `xcb_connect'
util.c:(.text+0x14): undefined reference to `xcb_connection_has_error'
util.o: In function `get_screen':
util.c:(.text+0x65): undefined reference to `xcb_get_setup'
util.c:(.text+0x6d): undefined reference to `xcb_setup_roots_iterator'
util.o: In function `kill_xcb':
util.c:(.text+0x49): undefined reference to `xcb_disconnect'
randr.o: In function `get_providers':
randr.c:(.text+0xf): undefined reference to `xcb_randr_get_providers'
randr.c:(.text+0x1b): undefined reference to `xcb_randr_get_providers_reply'
randr.c:(.text+0x2b): undefined reference to `xcb_randr_get_providers_providers'
randr.o: In function `get_outputs':
randr.c:(.text+0x6f): undefined reference to `xcb_randr_get_provider_info'
randr.c:(.text+0x7b): undefined reference to `xcb_randr_get_provider_info_reply'
randr.c:(.text+0x8b): undefined reference to `xcb_randr_get_provider_info_outputs'
randr.o: In function `get_output_info':
randr.c:(.text+0xc7): undefined reference to `xcb_randr_get_output_info'
randr.c:(.text+0xd3): undefined reference to `xcb_randr_get_output_info_reply'
randr.o: In function `get_output_name':
randr.c:(.text+0x106): undefined reference to `xcb_randr_get_output_info_name'
randr.c:(.text+0x111): undefined reference to `xcb_randr_get_output_info_name_length'
randr.c:(.text+0x142): undefined reference to `xcb_randr_get_output_info_name_length'
randr.o: In function `get_output_crtc_info':
randr.c:(.text+0x187): undefined reference to `xcb_randr_get_crtc_info'
randr.c:(.text+0x193): undefined reference to `xcb_randr_get_crtc_info_reply'
randr.o: In function `get_focused_window':
randr.c:(.text+0x1a5): undefined reference to `xcb_get_input_focus'
randr.c:(.text+0x1b1): undefined reference to `xcb_get_input_focus_reply'
randr.o: In function `get_window_geometry':
randr.c:(.text+0x1ec): undefined reference to `xcb_get_geometry'
randr.c:(.text+0x1f8): undefined reference to `xcb_get_geometry_reply'
randr.o: In function `get_primary_output':
randr.c:(.text+0x24a): undefined reference to `xcb_randr_get_output_primary'
randr.c:(.text+0x256): undefined reference to `xcb_randr_get_output_primary_reply'
randr.o: In function `get_providers':
randr.c:(.text+0x3d): undefined reference to `xcb_randr_get_providers_providers_length'
randr.o: In function `get_outputs':
randr.c:(.text+0x9d): undefined reference to `xcb_randr_get_provider_info_outputs_length'
collect2: error: ld returned 1 exit status
Makefile:21: recipe for target 'lsd' failed
make: *** [lsd] Error 1

Several issues on OpenBSD

I use cwm.

  1. lsd, pfd, phd and ppd regularly print strange characters.
  2. dattr can't find output output sometimes.
  3. pfd cannot get output name for Firefox. (The only one I've encountered so far)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.