LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 09-08-2004, 03:19 PM   #1
privateprimate
LQ Newbie
 
Registered: May 2004
Location: DC METRO
Distribution: suse 9.1
Posts: 12

Rep: Reputation: 0
errno.h, but it IS declared......


Hello,

Vexing problem: running suse 9.1 pro. When compiling programs from source, i get an error 'errno.h undeclared'. I check the source files and sure enough, '#include <errno.h>' is up there at the top of the file. I've tried: restoring a fresh copy of errno.h to /usr/include from /usr/include/bits and from ~/src/linux/include. This happens with most of the programs i try to install from source.

I've also tried using many different compiler options offered by the program(s) in question to no avail. I'm using the GCC compiler what came with suse 9.1 pro. I've installed every other compiler as well out of sheer desparation.

I'd welcome any suggestions because i'm in the dark.
 
Old 09-08-2004, 05:20 PM   #2
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
what are you trying to install? Suse is an rpm based distro and I'd try to find a rpm for the software instead. I mean it *is* possible, but a lot of times the file path info is wrong or it tries to put files in places or grab them from places that don't exist.
 
Old 09-08-2004, 06:11 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 47
this ain't right !
header files are not spit out as undeclared
possibly a variable or a function is undeclared within errno.h

you have to give us exact error output from trying to compile a specific program


I've tried: restoring a fresh copy of errno.h to /usr/include from /usr/include/bits and from ~/src/linux/include


that was a very wrong thing to do

the kernel source includes are not at all the same include files used in the user space kernel interface
those files have to match exactly the ones used to compile glibc

that's i bet the problem

time to reinstall glibc-devel
 
Old 09-08-2004, 07:37 PM   #4
privateprimate
LQ Newbie
 
Registered: May 2004
Location: DC METRO
Distribution: suse 9.1
Posts: 12

Original Poster
Rep: Reputation: 0
I appreciate the suggestions. As I said in the original post, the problem happens with MANY programs i try to install from source (50% of them or more). I'm only trying to compile from source the programs i cannot find in rpm form or binaries for.

Every change that i've made had no effect. I have re-installed glibc twice after making changes with no effect. I'm carefull to reverse the changes I do make if they are ineffective. I've also re-installed the gcc compiler and related packages. Again: no change. Same !&#^@&$*&# error.

Right now i'm thinking of updating the gcc compiler. The version that shipped w/ suse 9.1 pro was 3.3.3.

This is a general problem that i'm having so, after pursuing as many avenues as I could, I'm coming here. In other words, i'm pretty frustrated....

Thanks again.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to export variables declared in a script joehansen12 Linux - Newbie 2 10-26-2005 02:25 PM
Where is 'errno' declared? How can I use it in my program? jdruin Programming 2 11-24-2004 06:45 AM
errno cynthia Linux - Networking 3 09-24-2004 01:58 PM
How to use errno sibtay Programming 4 09-24-2004 09:38 AM
Apache 2.0.35 declared stable jeremy Linux - General 4 04-10-2002 11:56 PM


All times are GMT -5. The time now is 06:48 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration