You are not logged in.

#1 2013-11-11 17:26:40

life617
Member
Registered: 2013-11-10
Posts: 33

xorg-xpyb-git build error

Whenever I try and install xorg-xpyb-git for pager-multihead-git and pytyle3 which are both mentioned in the openbox wiki I get a build error. I am unsure how to view the full log but what is on my screen now

KeryError: 'init64_t'
Makefile:1038: recipe for target 'sync.py' failed
make[1]: *** [sync.py] Error 1
make[1]: Leaving directory '/.............
makefile:464: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
==> ERROR: A failure occured in build().

I have tried installing it manually through the terminal and using yaourt and I get the same error. Is there anyway around this?

Offline

#2 2013-11-11 17:30:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: xorg-xpyb-git build error

Do you have base-devel group installed?

Offline

#3 2013-11-11 17:32:56

life617
Member
Registered: 2013-11-10
Posts: 33

Re: xorg-xpyb-git build error

Yes, I just reinstalled it to make sure and I am getting the same error.

Offline

#4 2013-11-11 17:34:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: xorg-xpyb-git build error

I get the same error on my 32-bit Arch:

python2 ./py_client.py -p /usr/lib/python2.7/site-packages /usr/share/xcb/sync.xml
Traceback (most recent call last):
  File "./py_client.py", line 626, in <module>
    module.generate()
  File "/usr/lib/python2.7/site-packages/xcbgen/state.py", line 103, in generate
    item.out(name)
  File "./py_client.py", line 513, in py_request
    _py_type_setup(self, name, 'Request')
  File "./py_client.py", line 231, in _py_type_setup
    _py_type_setup(field.type, field.field_type)
  File "./py_client.py", line 231, in _py_type_setup
    _py_type_setup(field.type, field.field_type)
  File "./py_client.py", line 213, in _py_type_setup
    self.py_format_str = _cardinal_types[_t(self.name)]
KeyError: 'int64_t'
Makefile:1038: recipe for target 'sync.py' failed
make[1]: *** [sync.py] Error 1
make[1]: Leaving directory '/home/karol/apps/xorg-xpyb-git/src/xpyb-build/src'
Makefile:464: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Offline

#5 2013-11-11 17:37:11

life617
Member
Registered: 2013-11-10
Posts: 33

Re: xorg-xpyb-git build error

Well I'm on 64-bit arch... maybe the package is outdated.

Offline

#6 2013-11-11 17:39:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: xorg-xpyb-git build error

It's a git package, so the source is as current as it gets :-)

Offline

#7 2013-11-11 17:42:38

life617
Member
Registered: 2013-11-10
Posts: 33

Re: xorg-xpyb-git build error

hmm guess ill try downloading and updating the dependencies xorg-xypb-git requires. By the way, where is the error log file located?

Offline

#8 2013-11-11 17:51:03

COPE
Member
Registered: 2013-11-03
Posts: 31

Re: xorg-xpyb-git build error

==> Finished making: xorg-xpyb-git 20120808-3 (Mon Nov 11 19:47:47 EET 2013)

Seems that a few files are missing some type declarations (specifically for this case, INT64).

$ find <SOURCE_DIRECTORY> -type f -name py_client.py

In EACH of those files you'll see a block:

_cardinal_types = {'CARD8':  'B', 'uint8_t': 'B',
                   'CARD16': 'H','uint16_t': 'H',
                   'CARD32': 'I','uint32_t': 'I',
                   'INT8':   'b', 'int8_t':  'b',
                   'INT16':  'h', 'int16_t': 'h',
                   'INT32':  'i', 'int32_t': 'i',
                   'BYTE': 'B',
                   'BOOL': 'B',
                   'char': 'b',
                   'void': 'B',
                   'float': 'f',
                   'double' : 'd'}

Just modify all of those files to include INT64:

_cardinal_types = {'CARD8':  'B', 'uint8_t': 'B',
                   'CARD16': 'H','uint16_t': 'H',
                   'CARD32': 'I','uint32_t': 'I',
                   'INT8':   'b', 'int8_t':  'b',
                   'INT16':  'h', 'int16_t': 'h',
                   'INT32':  'i', 'int32_t': 'i',
                   'INT64':  'i', 'int64_t': 'i',
                   'BYTE': 'B',
                   'BOOL': 'B',
                   'char': 'b',
                   'void': 'B',
                   'float': 'f',
                   'double' : 'd'}

Rebuild by running:

$ makepkg -e

Offline

#9 2013-11-11 18:04:51

life617
Member
Registered: 2013-11-10
Posts: 33

Re: xorg-xpyb-git build error

Awesome, you rock! Thanks for the help. ^_^

Offline

#10 2013-11-11 18:33:49

life617
Member
Registered: 2013-11-10
Posts: 33

Re: xorg-xpyb-git build error

It looks like I'm running into another error this time while trying to build "pager-multihead-git"

/usr/lib/python2.7/site-package/gtk-2.0/gtk/__init__.py:57: GtkWarning: Could not open display
warning.warn(str(e), _gtk.Warning)
/usr/lib/python2.7/site-packages/keybinder/__init__py:26: GtkWarning: IA__gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed from _keybinder import*
/usr/lib/python2.7/site-packages/keybinder/__init__py.26:  GtkWarning: IA__gdk__screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed from _keybinder import*
/home/joseph/builds/pager-multihead-git/PKGBUILD: line 22: 9342 segmentation fault   (core dumped) python2 ./setup.py install --root$pkgdir

Does this mean I need to install GTK?

Offline

#11 2013-11-11 21:20:49

COPE
Member
Registered: 2013-11-03
Posts: 31

Re: xorg-xpyb-git build error

https://wiki.archlinux.org/index.php/makepkg#Usage

If required dependencies are missing, makepkg will issue a warning before failing. To build the package and install needed dependencies automatically, simply use the command:

$ makepkg -s

Offline

#12 2013-11-12 02:57:44

life617
Member
Registered: 2013-11-10
Posts: 33

Re: xorg-xpyb-git build error

It worked this time using the -s switch but I am still a bit confused because it didnt download anything.
Anyways thanks again COPE. ^_^

Offline

Board footer

Powered by FluxBB