LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-01-2014, 09:59 AM   #1
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 120Reputation: 120
-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
 
Old 09-01-2014, 10:10 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,858

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
No host.def in /usr/lib64/X11/config?
 
Old 09-01-2014, 10:13 AM   #3
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Original Poster
Rep: Reputation: 120Reputation: 120
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?
 
Old 09-01-2014, 10:17 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,858

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
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.
Old 09-01-2014, 10:25 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,645

Rep: Reputation: 4561Reputation: 4561Reputation: 4561Reputation: 4561Reputation: 4561Reputation: 4561Reputation: 4561Reputation: 4561Reputation: 4561Reputation: 4561Reputation: 4561
have you, by any chance, installed a version of CDE?
 
Old 09-01-2014, 10:41 AM   #6
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Original Poster
Rep: Reputation: 120Reputation: 120
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.
 
Old 09-01-2014, 10:46 AM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,858

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
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.
 
Old 09-01-2014, 10:53 AM   #8
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Original Poster
Rep: Reputation: 120Reputation: 120
Yes, I did that, I guess this is the best it gets currently. Thanks so far.
 
Old 09-01-2014, 03:15 PM   #9
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 3,244

Rep: Reputation: 10310Reputation: 10310Reputation: 10310Reputation: 10310Reputation: 10310Reputation: 10310Reputation: 10310Reputation: 10310Reputation: 10310Reputation: 10310Reputation: 10310
Quote:
Originally Posted by lems View Post
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.
Old 09-01-2014, 07:41 PM   #10
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,575

Rep: Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848
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.
Old 09-02-2014, 12:07 AM   #11
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Original Poster
Rep: Reputation: 120Reputation: 120
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.
Old 09-02-2014, 06:03 AM   #12
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,575

Rep: Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848Reputation: 2848
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.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem with SlackBuilds Gparted in -current linus72 Slackware 9 12-11-2010 08:26 PM
[SOLVED] upgraded current now i cannot build Slackbuilds mdynac Slackware 10 10-17-2010 09:49 AM
Current and SlackBuilds SqdnGuns Slackware 8 05-18-2009 04:55 AM
all dosbox slackbuilds fail on -current Daedra Slackware 5 03-20-2009 01:59 AM
Xorg (or XFree86) won't compile, problems with imake.o Ephracis Linux - Software 2 03-20-2005 09:47 PM

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

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