LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2014, 12:19 PM   #1
SlackerFeast
LQ Newbie
 
Registered: Oct 2014
Location: Michigan, USA
Distribution: Slackware 14.1, 32 bit
Posts: 16

Rep: Reputation: Disabled
Question Compile error when running Devilspie slackbuild


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?
 
Old 10-12-2014, 12:55 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
You can comment line 57 in devilspie.SlackBuild : # autoreconf

.. and you will probably have to use / include the two patches ..
devilspie-0.22-dsofix.patch, devilspie-0.22-gtk-2.22.1.patch
-
Attached Files
File Type: txt devilspie-0.22-dsofix.patch.txt (415 Bytes, 21 views)
File Type: txt devilspie-0.22-gtk-2.22.1.patch.txt (5.5 KB, 16 views)
 
Old 10-12-2014, 12:57 PM   #3
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Hi. You probably didn't install gnome-common (a stated dep of devilspie per SBo). That package provides the macro you seem
to be choking on.

--mancha
 
Old 10-12-2014, 01:18 PM   #4
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
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:

Code:
--- devilspie.SlackBuild.sbo
+++ devilspie.SlackBuild
@@ -50,10 +50,6 @@ find -L . \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;
 
-# Allow DEPRECATED functions or build fails on gtk+2-2.24.3.
-sed -i -e '/-DG.*_DISABLE_DEPRECATED/d' src/Makefile.am
-autoreconf
-
 LDFLAGS="-lX11" \
 CFLAGS="$SLKCFLAGS" \
 CPPFLAGS="$SLKCFLAGS" \
@@ -64,6 +60,9 @@ CPPFLAGS="$SLKCFLAGS" \
   --mandir=/usr/man \
   --build=$ARCH-slackware-linux

+# Allow DEPRECATED functions or build fails on gtk+2-2.24.3.
+sed -i -e '/-DG.*_DISABLE_DEPRECATED/d' src/Makefile
+
 make
 make install DESTDIR=$PKG
--mancha

Last edited by mancha; 10-12-2014 at 01:24 PM. Reason: use same sed as SBo
 
1 members found this post helpful.
Old 10-12-2014, 07:17 PM   #5
SlackerFeast
LQ Newbie
 
Registered: Oct 2014
Location: Michigan, USA
Distribution: Slackware 14.1, 32 bit
Posts: 16

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-14-2014, 04:40 PM   #6
SlackerFeast
LQ Newbie
 
Registered: Oct 2014
Location: Michigan, USA
Distribution: Slackware 14.1, 32 bit
Posts: 16

Original Poster
Rep: Reputation: Disabled
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

what to do?
 
Old 10-15-2014, 03:54 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #6 .

There is a bug in the @mancha-devilspie.patch →
Line 11, LDFLAGS="-lX11" \
... is an added line. ( Should be : +LDFLAGS="-lX11" \ )

The usable Slackbuild script is attached.
As `devilspie-Oct2014.SlackBuild.txt'.
-
Attached Files
File Type: txt devilspie-Oct2014.SlackBuild.txt (2.1 KB, 17 views)
 
Old 10-15-2014, 03:59 AM   #8
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
← #6 .

There is a bug in the @mancha-devilspie.patch →
Line 11, LDFLAGS="-lX11" \
... is an added line. ( Should be : +LDFLAGS="-lX11" \ )

The usable Slackbuild script is attached.
As `devilspie-Oct2014.SlackBuild.txt'.
-

I disagree. My patch against devilspie.SlackBuild is correct as I posted it.

--mancha
 
Old 10-15-2014, 07:42 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #8 .

Sorry.
The line was just missing in my (first) copy of "devilspie.SlackBuild".
 
Old 10-15-2014, 01:12 PM   #10
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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.

--mancha
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile slackbuild for another architecture the_zone Slackware 2 05-23-2013 02:03 AM
Compile error with slackbuild and auctex. Says I'm missing LaTeX. kevin01123 Slackware 9 07-07-2011 08:35 PM
[SOLVED] Who can compile qstardict slackbuild for me? Please help..) Dinobot Bluewhite64 2 04-04-2010 10:25 PM
Need help running devilspie asdc Linux - Newbie 1 02-20-2007 05:35 PM
Getting a compile error running emerge --emptytree system jon_k Linux - Software 2 06-13-2005 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration