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 12-03-2003, 03:46 PM   #1
bschneider
Member
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: Suse 9.3 Professional
Posts: 50

Rep: Reputation: 15
Make file not working


Trying to install direcpc-1.1.4c on my Suse 9.0 linux machine. The directions say to install use make then make install. Both of these commands generate an error in the console. The very first one is about autoconf.h in the message: make
gcc -O2 -march=i586 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -DMODULE -D__KERNEL__ -DLINUX -DUSE_LZJH -I/usr/src/linux/include/ -c dpc_usb.c -o dpc_usb.o
In file included from /usr/src/linux/include/linux/sched.h:8,
from dpc_usb.c:2:
/usr/src/linux/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory


This of course causes cascading errors and ends with: make: *** [dpc_usb.o] Error 1

Anybody have any idea as to what is going on? I would like to get the dircway system off of the windows machine and run it directly through linux, but this has really got me stumped.

Any help is greatly appreciated.

Thanks
B. Schneider
 
Old 12-03-2003, 03:58 PM   #2
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
looks like you may need the kernel header files. Install those first then try and I bet things will work much better.
 
Old 12-03-2003, 04:06 PM   #3
bschneider
Member
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: Suse 9.3 Professional
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks for the quick response, but now let me sound like a complete idiot that I am and ask how do you install the kernel header files???
I noticed the reference to autoconf.h is in the config.h file that gets called at the beginning.
In case you have not noticed I am rather new to linux.

Thanks again
 
Old 12-03-2003, 04:34 PM   #4
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
No worries, I was rather vague in my response, my bad. You are using an rpm (redhat package management) based distribution so all you need to do is find the proper rpm file on the internet for your kernel base and you should be ok.

Why, may I ask, are you compiling programs? W/ your distro you should just use the rpms to install your packages as binaries.

rpm -rVh package_name.rpm (if my memory serves me right)
 
Old 12-03-2003, 04:37 PM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I am pretty new myself, but I think you want to install your kernel source(which includes the header files). I know redhat does not install it as default. It might be on your suse install disks. Do you have a feature "add/remove programs" that would be the first place I would look. It will probably prompt yuu to insert one of your disks.
 
Old 12-03-2003, 05:12 PM   #6
bschneider
Member
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: Suse 9.3 Professional
Posts: 50

Original Poster
Rep: Reputation: 15
Hey thanks to both of you for your help...
I am compiling this file because that is the only way the current version is avaliable. The .rpm for this driver does not work for my direcway system. Believe me I wish it was an rpm instead of source... Much easier for us idiots I have looked for the source files in my rpm files and it seems like they are already installed...I think, but I can't tell by looking at my package manager. I have compiled other software like wine and not had any problems, it is just that one call to the autoconf.h that has me stuck...
 
Old 12-04-2003, 11:03 AM   #7
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
Did you try 'locate autoconf.h'? and see if its located somewhere else?
 
Old 12-04-2003, 12:03 PM   #8
bschneider
Member
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: Suse 9.3 Professional
Posts: 50

Original Poster
Rep: Reputation: 15
Yeah, I looked in the /usr directory to see if it was somewhere else, but I did not search the entire root directory. Something just doesn't seem right, since the other *.h files are where they are suppose to be..
I just patched the kernel through Yast last night and hoped that would fix the problem, but no luck..
 
Old 12-05-2003, 06:39 PM   #9
bschneider
Member
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: Suse 9.3 Professional
Posts: 50

Original Poster
Rep: Reputation: 15
Update, Located autoconf.h in another directory, but the program I am wanting to compile still has problems. Most of the problems seem to be generated by the *.h files in the system and not by the program itself.
brian@linux:~/direcpc/DirecPC> make
gcc -O2 -march=i586 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -DMODULE -D__KERNEL__ -DLINUX -DUSE_LZJH -I/usr/src/linux/include/ -c dpc_usb.c -o dpc_usb.o
In file included from /usr/src/linux/include/linux/sched.h:8,
from dpc_usb.c:2:
/usr/src/linux/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from /usr/include/asm/math_emu.h:4,
from /usr/include/asm/processor.h:13,
from /usr/include/linux/prefetch.h:13,
from /usr/src/linux/include/linux/list.h:241,
from /usr/src/linux/include/linux/wait.h:14,
from /usr/src/linux/include/linux/fs.h:12,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:11,
from dpc_usb.c:2:
/usr/include/asm/sigcontext.h:79: error: parse error before '*' token
/usr/include/asm/sigcontext.h:82: error: parse error before '}' token
In file included from /usr/include/asm/processor.h:13,
from /usr/include/linux/prefetch.h:13,
from /usr/src/linux/include/linux/list.h:241,
from /usr/src/linux/include/linux/wait.h:14,
from /usr/src/linux/include/linux/fs.h:12,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:11,
from dpc_usb.c:2:
/usr/include/asm/math_emu.h:6: error: parse error before '*' token
/usr/include/asm/math_emu.h:7: error: parse error before '*' token
Would anybody happen to know what is causing this?? I have tried every way I know how to get it working, but all I get is errors. Does the kernel need to be reinstalled and compiled, or do I need to download the program again and try again?

Banging my head against the wall
Please help
Bschneider
 
Old 06-06-2005, 09:04 PM   #10
deloptes
Member
 
Registered: Feb 2004
Location: AT
Distribution: debian etch and SUSE 10.2
Posts: 123

Rep: Reputation: 15
i think i solved this problem

I read following

http://lists.debian.org/debian-glibc.../msg00215.html

and removed __user from the file

Code:
In the file '/usr/include/asm/sigcontext.h' there appears to be a
problem with line 79.

78:        unsigned short ss, __ssh;
79:        struct _fpstate __user * fpstate;
80:        unsigned long oldmask;

When compiling programs that are linked against this file, I get a
parse error on line 79. But if I change the line to the following

'79:         struct _fpstate * fpstate; '

the parse error disappears and everything works fine.
Thanks to Paul
 
  


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
Make not working? Please help! iansoundz Linux - General 7 07-06-2005 04:12 AM
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 09:58 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM
Make not working eggoz Linux - Software 2 09-26-2004 06:33 PM
make xconfig not working phikap6878 Debian 3 04-02-2004 10:07 PM

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

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