LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-08-2018, 10:58 PM   #1
gansub
LQ Newbie
 
Registered: Mar 2018
Posts: 4

Rep: Reputation: Disabled
Compiling with imake


Iam building some software(currently unsupported) that uses Imakefiles. The software does have a Imake.tmpl file. It is located (relative to the top directory)

config/cf/Imake.tmpl

As the software has subdirectories containing other Imakefiles I typed -

xmkmf -a . .

and I got these messages

mv -f Makefile Makefile.bak
imake -I./config/cf -DTOPDIR=. -DCURDIR=.
In file included from Imakefile.c:34:0:
./config/cf/Imake.tmpl:33:0: fatal error: site.def: No such file or directory
#include <site.def>
^compilation terminated.
imake: Exit code 1.
Stop.

The thing is site.def does exist and is located under config/project/site.def

This is the contents of Imakefile.c that is generated by the execution of imake. This file is removed when imake finishes execution but can be retained by creating a link to that file.

/* imake - temporary file */
#define DefaultOSName Linux 4.13.0-36-generic x86_64
#define DefaultOSMajorVersion
#define LinuxDebian 4
#define LinuxInfoMagic 5
#define LinuxKheops 6
#define LinuxPro 7
#define LinuxRedHat 8
#define LinuxSlackware 9
#define LinuxTurbo 10
#define LinuxWare 11
#define LinuxYggdrasil 12
#define DefaultLinuxDistribution LinuxDebian
#define DefaultLinuxDistName Debian
#define HasGcc 1
#define HasGcc2 1
#define HasGcc3 1
#define GccMajorVersion 5
#define GccMinorVersion 2
#define INCLUDE_IMAKEFILE </tmp/IIf.j7V6mk>
#define IMAKE_TEMPLATE "Imake.tmpl"
#include IMAKE_TEMPLATE

Hopefully I can find a imake expert here !!!
 
Old 03-10-2018, 08:26 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gansub View Post
Iam building some software(currently unsupported) that uses Imakefiles. The software does have a Imake.tmpl file. It is located (relative to the top directory)

config/cf/Imake.tmpl

As the software has subdirectories containing other Imakefiles I typed -

xmkmf -a . .

and I got these messages

mv -f Makefile Makefile.bak
imake -I./config/cf -DTOPDIR=. -DCURDIR=.
In file included from Imakefile.c:34:0:
./config/cf/Imake.tmpl:33:0: fatal error: site.def: No such file or directory
#include <site.def>
^compilation terminated.
imake: Exit code 1.
Stop.

The thing is site.def does exist and is located under config/project/site.def

This is the contents of Imakefile.c that is generated by the execution of imake. This file is removed when imake finishes execution but can be retained by creating a link to that file.

/* imake - temporary file */
#define DefaultOSName Linux 4.13.0-36-generic x86_64
#define DefaultOSMajorVersion
#define LinuxDebian 4
#define LinuxInfoMagic 5
#define LinuxKheops 6
#define LinuxPro 7
#define LinuxRedHat 8
#define LinuxSlackware 9
#define LinuxTurbo 10
#define LinuxWare 11
#define LinuxYggdrasil 12
#define DefaultLinuxDistribution LinuxDebian
#define DefaultLinuxDistName Debian
#define HasGcc 1
#define HasGcc2 1
#define HasGcc3 1
#define GccMajorVersion 5
#define GccMinorVersion 2
#define INCLUDE_IMAKEFILE </tmp/IIf.j7V6mk>
#define IMAKE_TEMPLATE "Imake.tmpl"
#include IMAKE_TEMPLATE

Hopefully I can find a imake expert here !!!
You need to read the "Question Guidelines" link in my posting signature. We can try to help, but we need actual details before we can do so. You don't tell us what this 'software' is, version/distro of Linux, etc. Further, most downloaded packages have installation instructions either on their website, in a README or INSTALL file, or SOMEWHERE in what you download...they don't leave yo to guess.

Those are the instructions you need to find and read.
 
Old 03-10-2018, 10:57 AM   #3
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
Welcome to LQ.

? What's the name of the program you are trying to build ?
? Is imake installed ? → sudo apt install xutils-dev

"site.def" : /usr/lib/X11/config/site.def
 
Old 03-10-2018, 12:15 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
It looks like line 33 in imake.tmpl is looking for site.def.
 
Old 03-10-2018, 03:01 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.
? What's the name of the program you are trying to build ?
? Is imake installed ? → sudo apt install xutils-dev
"site.def" : /usr/lib/X11/config/site.def
...and...
Quote:
Originally Posted by AwesomeMachine
It looks like line 33 in imake.tmpl is looking for site.def.
Yep...asked the OP that in my first reply. I'd strongly suspect that the program the OP downloaded either has instructions on their website, or in the README/INSTALL/SOME file that came with the downloaded code. It's extremely rare for a program these days to come without such things. While they may have to edit/modify a file to point to the right site.def (or whatever), those instructions will be somewhere, and tell them what to do.
 
1 members found this post helpful.
Old 03-18-2018, 04:34 AM   #6
gansub
LQ Newbie
 
Registered: Mar 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Sorry for the late response. I did not download it from a website. It was given to me by an associate. The software is no longer supported by the org that developed it so it is only kept in archives.

imake is definitely installed on my system. I moved site.def from the directory config/project to config/cf. That helped me compile the file and move on.
 
  


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
want to install imake package in ubuntu?? RockerAsh Linux - Newbie 3 05-07-2009 07:17 AM
Problem(s) with imake / itools Hawkin Linux - Software 11 08-01-2008 09:16 AM
Compiling with IMAKE pixidustedu Linux - Software 1 08-11-2005 05:36 PM
iMake not Found Kenji Miyamoto Slackware 7 05-23-2005 05:31 PM
imake and free86 RecoilUK Linux - Software 1 12-31-2001 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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