Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Can't build recent sxiv (sxiv-git from the AUR). #153

Closed
qwerty007 opened this issue Jul 24, 2014 · 1 comment
Closed

Can't build recent sxiv (sxiv-git from the AUR). #153

qwerty007 opened this issue Jul 24, 2014 · 1 comment

Comments

@qwerty007
Copy link

I've tried to build sxiv-git https://aur.archlinux.org/packages/sxiv-git/ and I failed:

==> Starting build()...                                                                                    [40/110]
gcc -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -st
d=c99 -Wall -pedantic -O2 -I/usr/include -D_XOPEN_SOURCE=500 -DHAVE_LIBEXIF -DHAVE_GIFLIB -DVERSION=\"git-20140723\
" -c -o commands.o commands.c
gcc -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -st
d=c99 -Wall -pedantic -O2 -I/usr/include -D_XOPEN_SOURCE=500 -DHAVE_LIBEXIF -DHAVE_GIFLIB -DVERSION=\"git-20140723\
" -c -o image.o image.c
gcc -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -st
d=c99 -Wall -pedantic -O2 -I/usr/include -D_XOPEN_SOURCE=500 -DHAVE_LIBEXIF -DHAVE_GIFLIB -DVERSION=\"git-20140723\
" -c -o main.o main.c
In file included from main.c:43:0:
config.h:72:36: error: ‘it_quit’ undeclared here (not in a function)
  { 0,            XK_q,             it_quit,              (arg_t) None },
                                    ^
config.h:73:36: error: ‘it_switch_mode’ undeclared here (not in a function)
  { 0,            XK_Return,        it_switch_mode,       (arg_t) None },
                                    ^
config.h:74:36: error: ‘it_toggle_fullscreen’ undeclared here (not in a function)
  { 0,            XK_f,             it_toggle_fullscreen, (arg_t) None },
                                    ^
config.h:75:36: error: ‘it_toggle_bar’ undeclared here (not in a function)
  { 0,            XK_b,             it_toggle_bar,        (arg_t) None },
                                    ^
config.h:77:36: error: ‘it_prefix_external’ undeclared here (not in a function)
  { ControlMask,  XK_x,             it_prefix_external,   (arg_t) None },
                                    ^
config.h:79:36: error: ‘it_reload_image’ undeclared here (not in a function)
  { 0,            XK_r,             it_reload_image,      (arg_t) None },
                                    ^
config.h:81:36: error: ‘it_remove_image’ undeclared here (not in a function)
  { 0,            XK_D,             it_remove_image,      (arg_t) None },
                                    ^
config.h:90:36: error: ‘it_first’ undeclared here (not in a function)
  { 0,            XK_g,             it_first,             (arg_t) None },
                                    ^
config.h:91:36: error: ‘it_n_or_last’ undeclared here (not in a function)
  { 0,            XK_G,             it_n_or_last,         (arg_t) None },
                                    ^
config.h:97:36: error: ‘it_toggle_image_mark’ undeclared here (not in a function)
  { 0,            XK_m,             it_toggle_image_mark, (arg_t) None },
                                    ^
config.h:98:36: error: ‘it_reverse_marks’ undeclared here (not in a function)
  { 0,            XK_M,             it_reverse_marks,     (arg_t) None },
                                    ^
config.h:99:36: error: ‘it_navigate_marked’ undeclared here (not in a function)
  { 0,            XK_N,             it_navigate_marked,   (arg_t) +1 },
                                    ^
config.h:102:36: error: ‘it_scroll_move’ undeclared here (not in a function)
  { 0,            XK_h,             it_scroll_move,       (arg_t) DIR_LEFT },
                                    ^
config.h:111:36: error: ‘it_scroll_screen’ undeclared here (not in a function)
  { ControlMask,  XK_h,             it_scroll_screen,     (arg_t) DIR_LEFT },
                                    ^
config.h:158:2: error: initializer element is not constant
  { 0,            4,                it_scroll_move,       (arg_t) DIR_UP },
  ^
config.h:158:2: error: (near initialization for ‘buttons[3].cmd’)
config.h:159:2: error: initializer element is not constant
  { 0,            5,                it_scroll_move,       (arg_t) DIR_DOWN },
  ^
config.h:159:2: error: (near initialization for ‘buttons[4].cmd’)
config.h:160:2: error: initializer element is not constant
  { ShiftMask,    4,                it_scroll_move,       (arg_t) DIR_LEFT },
  ^
config.h:160:2: error: (near initialization for ‘buttons[5].cmd’)
config.h:161:2: error: initializer element is not constant
  { ShiftMask,    5,                it_scroll_move,       (arg_t) DIR_RIGHT },
  ^
config.h:161:2: error: (near initialization for ‘buttons[6].cmd’)
config.h:162:2: error: initializer element is not constant
  { 0,            6,                it_scroll_move,       (arg_t) DIR_LEFT },

config.h:162:2: error: (near initialization for ‘buttons[7].cmd’)
config.h:163:2: error: initializer element is not constant
  { 0,            7,                it_scroll_move,       (arg_t) DIR_RIGHT },
  ^
config.h:163:2: error: (near initialization for ‘buttons[8].cmd’)
Makefile:20: recipe for target 'main.o' failed
make: *** [main.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
@qwerty007
Copy link
Author

Aaaah, using the supplied config.def.h instead of the one from the AUR. works.
Sorry for the noise.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant