Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-01-2014, 09:59 AM
|
#1
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Rep: 
|
-current: cannot compile SlackBuilds using imake anymore
Hello,
since switching my machine to -current, programs using imake fail to build. This is what I get trying to compile tightvnc (from SlackBuilds.org):
Code:
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib64/X11/config
In file included from /usr/lib64/X11/config/Imake.tmpl:47:0,
from Imakefile.c:34:
/usr/lib64/X11/config/site.def:44:0: fatal error: host.def: No such file or directory
#include <host.def>
^
compilation terminated.
imake: Exit code 1.
Stop.
This seems to happen with all programs using imake/xmkmf. I know for certain that I compiled imake-using programs on 14.1. This also happens with t/xfig. Any idea how to fix this?
On this machine, I'm running Slackware64 with multilib, in case it matters.
lems
Last edited by lems; 09-01-2014 at 10:05 AM.
Reason: Wording
|
|
|
09-01-2014, 10:10 AM
|
#2
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,858
|
No host.def in /usr/lib64/X11/config?
|
|
|
09-01-2014, 10:13 AM
|
#3
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Original Poster
Rep: 
|
Yes, but why? Touching host.def in the source directory fixes this for some programs (xfig seemed to build, for example), but this cannot be the solution, can it? Is this a local problem with my installation?
|
|
|
09-01-2014, 10:17 AM
|
#4
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,858
|
Not your install problem, host.def was installed by lesstif package which has been replaced by motif in current
|
|
1 members found this post helpful.
|
09-01-2014, 10:25 AM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,645
|
have you, by any chance, installed a version of CDE?
|
|
|
09-01-2014, 10:41 AM
|
#6
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Original Poster
Rep: 
|
Thanks, keefaz, I copied config/cf/host.def from motif's source tarball to /usr/lib64/X11/config and was able to at least start compiling some programs, though SlackBuilds still fail, some (like root-tail) because the find command cannot access $PKG/usr/man, for example:
Code:
+ mkdir -p /tmp/SBo/package-root-tail/usr/X11R6/man/man1
install -c -m 0644 root-tail._man /tmp/SBo/package-root-tail/usr/X11R6/man/man1/root-tail.1x
install.man in . done
find: `/tmp/SBo/package-root-tail/usr/man': No such file or directory
@ponce: CDE is not installed, no. This is basically a fairly new installation with few SBo packages and some third-party binary packages (mostly multilib, ktown and some from alien's sbrepos).
PS: I succeeded building unclutter, though, which uses xmkmf.
Last edited by lems; 09-01-2014 at 10:44 AM.
|
|
|
09-01-2014, 10:46 AM
|
#7
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,858
|
Just modify the Slackbuild script for root-tail so it searches in usr/X11R6/man rather than in usr/man
Code:
...
find $PKG/usr/X11R6/man -type f -exec gzip -9 {} \;
..
Last edited by keefaz; 09-01-2014 at 10:48 AM.
|
|
|
09-01-2014, 10:53 AM
|
#8
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Original Poster
Rep: 
|
Yes, I did that, I guess this is the best it gets currently. Thanks so far.
|
|
|
09-01-2014, 03:15 PM
|
#9
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 3,244
|
Quote:
Originally Posted by lems
Yes, but why? Touching host.def in the source directory fixes this for some programs (xfig seemed to build, for example), but this cannot be the solution, can it? Is this a local problem with my installation?
|
It is the solution. If you look at the install script for the xorg-cf-files package, you'll see that it touches that file if it doesn't already exist. The LessTif package used to add some stuff to it, but removing that should not have removed the file. It might have left a bit of cruft, but how the file would have vanished is a mystery, since no (official) package claims it. Perhaps some unofficial package does?
Reinstalling xorg-cf-files would touch the file, exactly as you have done.
|
|
2 members found this post helpful.
|
09-01-2014, 07:41 PM
|
#10
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,575
|
Quote:
The LessTif package used to add some stuff to it, but removing that should not have removed the file.
|
Removal of the lesstif package does delete the host.def file as no other package claims it. From "grep 'config/host.def' /var/log/removed_packages/*".
Quote:
/var/log/removed_packages/lesstif-0.95.2-i486-1:usr/lib/X11/config/host.def
|
|
|
2 members found this post helpful.
|
09-02-2014, 12:07 AM
|
#11
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Original Poster
Rep: 
|
So I guess what happened was that I first upgraded all packages to -current, and then removed the lesstiff package that claimed the host.def file? I just reinstalled xorg-cf-files and it indeed created an empty host.def file. Thanks for your answers, I think this fixes it. So in the future, I better remove obsolete packages first, and then do the upgrade?
|
|
1 members found this post helpful.
|
09-02-2014, 06:03 AM
|
#12
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,575
|
You came across an unusual corner case that can occur when following Slackware-current. If you had done a fresh install of Slackware-current, then the host.def file would have been created during the installation of the xorg-cf-files package, so your compilation issue would not have arisen.
Here, when doing the upgrade, the removepkg script has done exactly what is expected. It has checked whether a file in the package being removed is in use by any other package. As no such package was found, then the file was assumed to be safe to delete.
Quote:
So in the future, I better remove obsolete packages first, and then do the upgrade?
|
In this corner case, that strategy would have made no difference. I would stick with upgrading then removing obsolete packages.
|
|
2 members found this post helpful.
|
All times are GMT -5. The time now is 04:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|