LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-31-2009, 07:36 PM   #1
botnet
Member
 
Registered: May 2009
Posts: 158

Rep: Reputation: 40
Awesome WM compile error -- shape.h


I am trying to build awesome using sbopkg but I get this error:
Code:
In file included from client.c:24:
/usr/include/X11/extensions/shape.h:63: error: expected specifier-qualifier-list before 'Bool'
/usr/include/X11/extensions/shape.h:75: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XShapeQueryExtension'
/usr/include/X11/extensions/shape.h:83: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XShapeQueryVersion'
/usr/include/X11/extensions/shape.h:93: error: expected ')' before '*' token
/usr/include/X11/extensions/shape.h:105: error: expected ')' before '*' token
/usr/include/X11/extensions/shape.h:119: error: expected ')' before '*' token
/usr/include/X11/extensions/shape.h:131: error: expected ')' before '*' token
/usr/include/X11/extensions/shape.h:144: error: expected ')' before '*' token
/usr/include/X11/extensions/shape.h:152: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XShapeQueryExtents'
/usr/include/X11/extensions/shape.h:171: error: expected ')' before '*' token
/usr/include/X11/extensions/shape.h:179: error: expected ')' before '*' token
/usr/include/X11/extensions/shape.h:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
client.c: In function 'client_ban':
client.c:175: error: 'IconicState' undeclared (first use in this function)
client.c:175: error: (Each undeclared identifier is reported only once
client.c:175: error: for each function it appears in.)
client.c: In function 'client_focus':
client.c:187: warning: declaration of 'raise' shadows a global declaration
/usr/include/signal.h:129: warning: shadowed declaration is here
client.c: In function 'client_manage':
client.c:395: error: 'USPosition' undeclared (first use in this function)
client.c:395: error: 'PPosition' undeclared (first use in this function)
client.c:411: warning: implicit declaration of function 'XShapeSelectInput'
client.c: In function 'client_unban':
client.c:625: error: 'NormalState' undeclared (first use in this function)
client.c: In function 'client_unmanage':
client.c:655: error: 'WithdrawnState' undeclared (first use in this function)
client.c: In function 'client_updatewmhints':
client.c:669: error: 'XWMHints' undeclared (first use in this function)
client.c:669: error: 'wmh' undeclared (first use in this function)
client.c:671: warning: implicit declaration of function 'XGetWMHints'
client.c:673: error: 'XUrgencyHint' undeclared (first use in this function)
client.c:678: error: 'StateHint' undeclared (first use in this function)
client.c:678: error: 'WithdrawnState' undeclared (first use in this function)
client.c: In function 'client_updatesizehints':
client.c:691: error: 'XSizeHints' undeclared (first use in this function)
client.c:691: error: expected ';' before 'size'
client.c:693: warning: implicit declaration of function 'XGetWMNormalHints'
client.c:693: error: 'size' undeclared (first use in this function)
client.c:696: error: 'PBaseSize' undeclared (first use in this function)
client.c:701: error: 'PMinSize' undeclared (first use in this function)
client.c:708: error: 'PResizeInc' undeclared (first use in this function)
client.c:716: error: 'PMaxSize' undeclared (first use in this function)
client.c:737: error: 'PAspect' undeclared (first use in this function)
make[1]: *** [client.o] Error 1
make[1]: Leaving directory `/tmp/SBo/awesome-2.3.5'
make: *** [all] Error 2
google doesnt seem to help anything and I've never had a problem building awesome before. This is on slackware 12.2 with default X install

if anyone has an idea what the problem is, that would be very appreciated
 
Old 05-31-2009, 08:43 PM   #2
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Which version of awesome?
If its the latest 3.x.y versions you probably need to update most packages awesome depends on in order to work.
This particular WM uses many bleeding edge libraries in their recent versions. It might be helpful to see the README file included in the awesome source.
 
Old 05-31-2009, 08:47 PM   #3
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
I maintain awesome 2.3.5 for SBo and can confirm it works on a stock Slackware 12.2 install.

Have you installed 'confuse' and 'imlib2' which are listed as dependencies?
 
Old 05-31-2009, 09:00 PM   #4
botnet
Member
 
Registered: May 2009
Posts: 158

Original Poster
Rep: Reputation: 40
its awesome-2.3.5-1

i have installed imlib2 and confuse from source with ./configure --prefix=/usr

i will try building them with sbopkg and see if that makes a difference...


...


same error.

i am not sure what package supplies shape.h, but i have not done anything to any xorg packages that i am aware of

Last edited by botnet; 05-31-2009 at 09:03 PM.
 
Old 05-31-2009, 09:07 PM   #5
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
It actually seems you may not have some of the Xorg packages installed. Are you sure you did a full install of Slackware 12.2?

I just rebuilt and reinstalled confuse, imlib2, and awesome on 12.2 and everything compiled fine.
 
Old 05-31-2009, 09:10 PM   #6
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
You can use slackpkg install-new (after setting up slackpkg and selecting a 12.2 mirror) to see what you might be missing from a default full 12.2 install.

Last edited by chess; 05-31-2009 at 09:36 PM.
 
Old 05-31-2009, 09:23 PM   #7
botnet
Member
 
Registered: May 2009
Posts: 158

Original Poster
Rep: Reputation: 40
i didnt do a full install actually, but i did choose everything in the X category as far as i recall, well apart from most of the fonts, and drivers for other video cards and stuff

i mainly skipped kde stuff, and a few other series that i didnt wish to install, and i did go through each category and trimmed out things that i either lack the hardware for, or felt was not necessary.

slackpkg --install-new does not list everything off the dvd that i did not install and nothing listed looks relevant, but i do have the install dvd right here if you think re-installing the X series might be a wise idea
 
Old 05-31-2009, 09:36 PM   #8
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
The SlackBuilds at SlackBuilds.org are intended to be used on a default full install of Slackware and not guaranteed to run on anything other than a default full install. Clearly, there is a build time requirement that awesome is looking for that is part of the default install that you don't have. I cannot tell from the output what that might be, but it definitely appears to be X related. AFAIR, awesome needs xrandr, xinerama, libxft, cairo and I am sure there are some others.

If you set up slackpkg correctly by then it will list the packages you did not install.

Last edited by chess; 05-31-2009 at 09:37 PM.
 
Old 05-31-2009, 09:49 PM   #9
botnet
Member
 
Registered: May 2009
Posts: 158

Original Poster
Rep: Reputation: 40
I am not sure how i could have incorrectly set up slackpkg as the only set-up I have done is uncomment a mirror under 12.2 and run slackpkg update, but just the same, 'slackpkg --install-new' is definitely not trying to install everything that i left out of my installation

I guess i will have to do more experimenting then, X itself works fine, and i have not come across any other build errors with anything.

thanks for the suggestion, i will try and find what is missing
 
Old 05-31-2009, 09:54 PM   #10
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
It is 'slackpkg install-new' not 'slackpkg --install-new'. I had a typo in my earlier post that I corrected, sorry about that. Check out 'man slackpkg' for some good information on how to use it. Make sure you run 'slackpkg update' first.

If you find out what was missing, please do post back.
 
Old 05-31-2009, 10:08 PM   #11
botnet
Member
 
Registered: May 2009
Posts: 158

Original Poster
Rep: Reputation: 40
oh yeah, i did run slackpkg update, and then i ran slackpkg install-new

here is a screenshot to elucidate an example:

http://i41.tinypic.com/708gt5.png

I am showing that amarok, which is on the installation dvd, is not amongst my installed packages, and is also not listed in slackpkg

just an example as it is the first thing listed in the KDE series



once i do figure this out though, i will report back here


i have also looked through the portage ebuild for awesome, it looks like i have all dependencies listed installed, but i will look more thoroughly tonight

Last edited by botnet; 05-31-2009 at 10:11 PM.
 
Old 05-31-2009, 10:20 PM   #12
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Code:
slackpkg install slackware
should list all the missing packages.
 
Old 05-31-2009, 10:23 PM   #13
botnet
Member
 
Registered: May 2009
Posts: 158

Original Poster
Rep: Reputation: 40
ahh thanks wadsworth, that seems to do it.

will try to figure this out later tonight, thanks everyone
 
Old 06-01-2009, 02:13 AM   #14
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Make sure you have all the *-proto packages from the x series -they contain the headers needed for compiling stuff.
 
Old 06-01-2009, 12:49 PM   #15
botnet
Member
 
Registered: May 2009
Posts: 158

Original Poster
Rep: Reputation: 40
Turns out I wasn't missing anything, per se. I ran slackpkg install x xap and installed the rest of what I had left out in those series but I was getting the same error until I ran slackpkg reinstall x xap and re-installed everything from those two series, then awesome would build correctly. So I don't know which specific package got messed up or how it happened but somehow in the course of doing things I misplaced some libraries or headers somewhere, but all is well now.

Thanks chess and wadsworth for pointing me in the right direction.
 
  


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
Asterisk compile error make: *** [makeopts] Error 1 crmexclusive Debian 3 02-24-2012 06:33 PM
Unable to compile C++ programs.make:g++ command not found error.Error 127 PrathuD Programming 3 03-16-2009 12:44 PM
Conmpile error wen compile php:configure: error: libpng.(a|so) not found tanveer Linux - Software 5 02-03-2009 06:13 AM
rpm compile time error:make error ashmita04 Red Hat 1 07-09-2007 03:44 AM
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM

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

All times are GMT -5. The time now is 12:53 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