LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-26-2004, 05:36 PM   #1
flubber
LQ Newbie
 
Registered: Oct 2003
Location: Lithuania
Distribution: Arch 0.6
Posts: 27

Rep: Reputation: 15
Problems on compiling


Hello dear linux lovers. I have one problem: when I try to compile xcoral program I'm getting an error "/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory". What's wrong? what soft should I install or what should I do? Please help me!
 
Old 05-26-2004, 10:26 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Seems as if its needing or wanting a program or something called asm. What exactly are you trying to install and did you read its README or INSTALL file to find out any dependencies it may require?
 
Old 05-26-2004, 11:20 PM   #3
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Code:
/usr/include/asm-generic/errno.h
/usr/include/asm/errno.h
are part of the linux-kernel-headers package. Try installing it and see if it solves the problem
 
Old 05-27-2004, 12:03 AM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I think I read that those header files you need, need to be the same ones glibc were compiled against.
 
Old 05-27-2004, 02:47 AM   #5
flubber
LQ Newbie
 
Registered: Oct 2003
Location: Lithuania
Distribution: Arch 0.6
Posts: 27

Original Poster
Rep: Reputation: 15
I'm trying to install XCoral program, it's just simple text editor and it has default installiation type: ./configure && make && make install. But when I'm doing make I'm getting an error message!
 
Old 05-27-2004, 09:59 AM   #6
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
Do you have those two files/usr/include/asm-generic/errno.h , /usr/include/asm/errno.h. ? With a install of slack you should, maybe they are corrupt.

if you do not have them you cold try to copy them over from your 2.4 kernel source. try this
change to root and enter these commands


Code:
cd /usr/src/linux
make mrproper
make include/linux/version.h
make symlinks
mkdir /usr/include/asm
cp  include/asm/* /usr/include/asm
cp -R include/asm-generic /usr/include
cp -R include/linux /usr/include
those are the generic directions for installing you linux header files(referenced from the LFS book). It may be what you need, it may not. Half the fun of linux is making a mistake, that is how you learn. Good luck :-)


edited for accuracy.
I originally had the directorys as /include/asm and /include/asm-generic , they are correct as above.

Last edited by shanenin; 05-28-2004 at 01:35 PM.
 
Old 05-27-2004, 12:18 PM   #7
flubber
LQ Newbie
 
Registered: Oct 2003
Location: Lithuania
Distribution: Arch 0.6
Posts: 27

Original Poster
Rep: Reputation: 15
Shanenin, I'm apreciate your help but compiler still don't work corectly! It still showing me the same error Any other ideas?
P.S: I'm using Slackware 9.1
 
Old 05-27-2004, 12:35 PM   #8
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
just curious, did you have any of those kernel header files before trying to install them again? Did they seem to install properly?

I just hope I did not give you bad advice and mess up your system

Last edited by shanenin; 05-27-2004 at 12:48 PM.
 
Old 05-27-2004, 01:25 PM   #9
flubber
LQ Newbie
 
Registered: Oct 2003
Location: Lithuania
Distribution: Arch 0.6
Posts: 27

Original Poster
Rep: Reputation: 15
root@kasyrble:/home/flubber/packages# ls -l kernel*
-rw-r--r-- 1 root root 25653 May 7 10:53 kernel-headers-2.4.26-i386-1
-rw-r--r-- 1 root root 857 May 7 10:53 kernel-ide-2.4.26-i486-1
-rw-r--r-- 1 root root 58856 May 7 10:54 kernel-modules-2.4.26-i486-1
-rw-r--r-- 1 root root 826222 May 7 10:56 kernel-source-2.4.26-noarch-1

So, here is the list of kernel files. I think everything is ok with that.. Or kernel-headers should be kernel-headers-2.4.26-i486-1??
 
Old 05-27-2004, 03:35 PM   #10
flubber
LQ Newbie
 
Registered: Oct 2003
Location: Lithuania
Distribution: Arch 0.6
Posts: 27

Original Poster
Rep: Reputation: 15
shanenin, I'm really waiting for your reply..
 
Old 05-27-2004, 03:49 PM   #11
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I did not reply because I am not sure. When I had slackware, I did not remember having files like those in my home directory, it does not make sense. You could try to see if they are there with this command
Code:
ls  /usr/include/asm | grep errno.h
Code:
ls  /usr/include/asm-generic | grep errno.h

Did you try to reinstall them, with the procedure I left? (assuming they were missing)



Last edited by shanenin; 05-28-2004 at 01:29 PM.
 
Old 05-27-2004, 04:45 PM   #12
flubber
LQ Newbie
 
Registered: Oct 2003
Location: Lithuania
Distribution: Arch 0.6
Posts: 27

Original Poster
Rep: Reputation: 15
root@kasyrble:/usr/src/linux# cp include/asm/* /include/asm
cp: `/include/asm': specified destination directory does not exist
Try `cp --help' for more information.
root@kasyrble:/usr/src/linux# cp -R include/asm-generic /include
root@kasyrble:/usr/src/linux# cp -R include/linux /include
root@kasyrble:/usr/src/linux# ls /usr/include/asm | grep errno.h
errno.h
root@kasyrble:/usr/src/linux# ls /usr/include/asm-generic | grep errno.h
ls: /usr/include/asm-generic: No such file or directory
root@kasyrble:/usr/src/linux#

Nothing good
 
Old 05-27-2004, 04:55 PM   #13
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
did you follow all of the steps in order?

Last edited by shanenin; 05-27-2004 at 05:04 PM.
 
Old 05-27-2004, 05:02 PM   #14
roolo
LQ Newbie
 
Registered: May 2003
Location: Czech Republic/Prague
Distribution: Debian-woody
Posts: 10

Rep: Reputation: 0
Slackware 9.1 is Cool Stuff.
If you have a problem like these, you must install libary which's name of package contain the word from the error notice.
If something say, that something is no file or directory is no reason to think that is completly true

Last edited by roolo; 05-27-2004 at 05:04 PM.
 
Old 05-27-2004, 05:02 PM   #15
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
why don't you start over fresh
Code:
rm -rf /usr/include/asm
rm -rf /usr/include/asm-generic
rm -rf  /usr/include/linux
then run those other command exactly in order, then see if that works.

edited for accuracy

I originally had directorys listed as /include/asm and /include/asm-generic, they are change to the correct directory now.

Last edited by shanenin; 05-28-2004 at 01:29 PM.
 
  


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
Problems compiling gv wearetheborg Linux - Software 2 10-17-2005 07:42 AM
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 05:49 PM
Problems installing amsn (TK compiling problems) JNewton Linux - Software 0 05-24-2004 12:07 PM
Compiling problems garf12 Linux - Software 4 03-06-2004 09:37 PM
problems compiling thejubster Linux - Software 2 07-29-2003 04:26 AM

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

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