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