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 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
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.
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.
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
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.
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.