[SOLVED] Compile error when running Devilspie slackbuild
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried to run devilspie.SlackBuild and it spits out this error:
./configure: line 5487: syntax error near unexpected token `yes'
./configure: line 5487: `GNOME_COMPILE_WARNINGS(yes)'
and kicks me back to the prompt.
It might be more helpful if I can generate a log... How do I do that?
Looking at this more closely, it seems like overkill to require gnome-common just for a macro you don't really need.
If you edit devilspie.SlackBuild so it removes the offending lines from Makefile (not Makefile.am) you won't need to autoreconf and
therefore won't need gnome-common:
Thanks guys. I'll give these a try tonight, but I'm staying the night at my girls' house and she doesn't have internet, so I'll get back to you tomorrow and report the results.
Hey guys , sorry for not replying yesterday. I didn't get a chance to... Anyway when I run any of your scripts in the slackbuild, with autoreconf commented, Iget this:
Making all in po
make[1]: Entering directory `/tmp/SBo/devilspie-0.22/po'
file=`echo de | sed 's,.*/,,'`.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file de.po
make[1]: Leaving directory `/tmp/SBo/devilspie-0.22/po'
Making all in src
make[1]: Entering directory `/tmp/SBo/devilspie-0.22/src'
cd .. && /bin/sh /tmp/SBo/devilspie-0.22/missing --run automake-1.10 --gnu src/Makefile
/tmp/SBo/devilspie-0.22/missing: line 54: automake-1.10: command not found
WARNING: `automake-1.10' is missing on your system. You should only need it if
you modified `Makefile.am', `acinclude.m4' or `configure.in'.
You might want to install the `Automake' and `Perl' packages.
Grab them from any GNU archive site.
cd .. && /bin/sh ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
make[1]: Leaving directory `/tmp/SBo/devilspie-0.22/src'
make[1]: Entering directory `/tmp/SBo/devilspie-0.22/src'
make all-am
make[2]: Entering directory `/tmp/SBo/devilspie-0.22/src'
gcc -DHAVE_CONFIG_H -I. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libwnck-1.0 -I/usr/include/startup-notification-1.0 -I/usr/include/atk-1.0 -I/usr/include/harfbuzz -DLOCALEDIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -DDATADIR=\""/usr/share"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DWNCK_I_KNOW_THIS_IS_UNSTABLE -Wall -Wmissing-prototypes -g -O2 -MT devilspie.o -MD -MP -MF .deps/devilspie.Tpo -c -o devilspie.o devilspie.c
mv -f .deps/devilspie.Tpo .deps/devilspie.Po
gcc -DHAVE_CONFIG_H -I. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libwnck-1.0 -I/usr/include/startup-notification-1.0 -I/usr/include/atk-1.0 -I/usr/include/harfbuzz -DLOCALEDIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -DDATADIR=\""/usr/share"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DWNCK_I_KNOW_THIS_IS_UNSTABLE -Wall -Wmissing-prototypes -g -O2 -MT xutils.o -MD -MP -MF .deps/xutils.Tpo -c -o xutils.o xutils.c
xutils.c: In function 'my_wnck_atom_get':
xutils.c:43:29: error: 'gdk_display' undeclared (first use in this function)
retval = XInternAtom (gdk_display, atom_name, FALSE);
^
xutils.c:43:29: note: each undeclared identifier is reported only once for each function it appears in
xutils.c: In function 'my_wnck_change_state':
xutils.c:79:25: error: 'gdk_display' undeclared (first use in this function)
xev.xclient.display = gdk_display;
^
xutils.c: In function 'my_wnck_error_trap_pop':
xutils.c:103:10: error: 'gdk_display' undeclared (first use in this function)
XSync (gdk_display, False);
^
xutils.c: In function 'my_wnck_get_string_property_latin1':
xutils.c:125:32: error: 'gdk_display' undeclared (first use in this function)
result = XGetWindowProperty (gdk_display,
^
xutils.c: In function 'my_wnck_window_get_xscreen':
xutils.c:182:25: error: 'gdk_display' undeclared (first use in this function)
XGetWindowAttributes(gdk_display, xid, &attrs);
^
xutils.c: In function 'my_wnck_get_cardinal_list':
xutils.c:205:32: error: 'gdk_display' undeclared (first use in this function)
result = XGetWindowProperty (gdk_display,
^
xutils.c: In function 'my_wnck_get_cardinal':
xutils.c:245:32: error: 'gdk_display' undeclared (first use in this function)
result = XGetWindowProperty (gdk_display,
^
make[2]: *** [xutils.o] Error 1
make[2]: Leaving directory `/tmp/SBo/devilspie-0.22/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/SBo/devilspie-0.22/src'
make: *** [all-recursive] Error 1
The line was just missing in my (first) copy of "devilspie.SlackBuild".
I found the reason for our disagreement. Apparently, the LDFLAGS="-lX11" line is only in SBo devilspie slackbuilds for Slackware 14.0 and
later (I used 14.1's to make my patch). Slackbuilds for Slackware 13.37 and earlier don't have it. Mystery solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.