[aur-general] surf-git doesn't build (for me, anyway)
hi. surf-git https://aur.archlinux.org/packages/surf-git/ gets an error when building with makepkg (see below). the problem is correctable by cp -p src/surf/config.def.h src/surf/config.h i.e., copying the suckless-supplied "default" config.h (named config.def.h) to the config.h used in the build, then doing a makepkg -e (there are also config.h files in . and in ./src identical to the one supplied in ./src/surf; i didn't need to change those and am not sure what they are for.) cheers, Greg ps: here's the error (the older function scroll() in surf was split into two, i guess): ---- c99 `pkg-config --cflags x11` `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0` -DVERSION=\"2.0\" -DWEBEXTDIR=\"/usr/lib/surf\" -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c surf.c In file included from surf.c:302: config.h:149:43: error: ‘scroll’ undeclared here (not in a function); did you mean ‘scrollh’? 149 | { MODKEY, GDK_KEY_j, scroll, { .i = 'd' } }, | ^~~~~~ | scrollh
Added a comment on the AUR package how to fix the build. On Thu, Dec 12, 2019 at 2:45 AM Greg Minshall <minshall@acm.org> wrote:
hi. surf-git
https://aur.archlinux.org/packages/surf-git/
gets an error when building with makepkg (see below). the problem is correctable by
cp -p src/surf/config.def.h src/surf/config.h
i.e., copying the suckless-supplied "default" config.h (named config.def.h) to the config.h used in the build, then doing a
makepkg -e
(there are also config.h files in . and in ./src identical to the one supplied in ./src/surf; i didn't need to change those and am not sure what they are for.)
cheers, Greg
ps: here's the error (the older function scroll() in surf was split into two, i guess): ---- c99 `pkg-config --cflags x11` `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0` -DVERSION=\"2.0\" -DWEBEXTDIR=\"/usr/lib/surf\" -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c surf.c In file included from surf.c:302: config.h:149:43: error: ‘scroll’ undeclared here (not in a function); did you mean ‘scrollh’? 149 | { MODKEY, GDK_KEY_j, scroll, { .i = 'd' } }, | ^~~~~~ | scrollh
-- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
participants (2)
-
Christoph Gysin
-
Greg Minshall