List Info

Thread: Help with source files




Help with source files
user name
2007-02-28 13:39:49

Hi,

When I try to compile this program I get an error

#include "/usr/include/linux/elf.h"

int main()
{

 ;   return 0;
}


This is the error I get from the compiler

In file included from /usr/include/asm/elf.h:7,
          ;       from /usr/include/linux/elf.h:7,
      ;           from test.cpp:1:
/usr/include/asm-i386/elf.h:10:27: error: asm/processor.h: No such file or directory
/usr/include/asm-i386/elf.h:11:47: error: asm/system.h: No such file or directory


Does anybody know how to get those files?

Thanx,

--

Robe.

 

Hablamos de matar el tiempo como si no fuera él quien nos mata a nosotros.

 

Re: Help with source files
country flaguser name
United Kingdom
2007-02-28 13:56:17
Robe,

Robe wrote:
> Hi,
> 
> When I try to compile this program I get an error
> 
> #include "/usr/include/linux/elf.h"
> 
> int main()
> {
> 
>     return 0;
> }
> 
> This is the error I get from the compiler
> 
> In file included from /usr/include/asm/elf.h:7,
>                  from /usr/include/linux/elf.h:7,
>                  from test.cpp:1:
> /usr/include/asm-i386/elf.h:10:27: error:
asm/processor.h: No such file
> or directory
> /usr/include/asm-i386/elf.h:11:47: error: asm/system.h:
No such file or
> directory
> 
> Does anybody know how to get those files?

I just compiled this OK on my Dapper system. I have
installed the
build-essential package and also the linux-headers package,
so maybe the
files are in one of those somewhere.

Regards,
Tony.
-- 
Tony Arnold, IT Security Coordinator, University of
Manchester,
IT Services Division, Kilburn Building, Oxford Road,
Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44
(0)773 330 0039
E: tony.arnoldmanchester.ac.uk, H: http://www.man.ac.uk
/Tony.Arnold

-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Re: Help with source files
country flaguser name
France
2007-02-28 14:03:54
Robe a écrit :
> Hi,
> 
> When I try to compile this program I get an error
> 
> #include "/usr/include/linux/elf.h"
> 
> int main()
> {
> 
>     return 0;
> }
> 
> This is the error I get from the compiler
> 
> In file included from /usr/include/asm/elf.h:7,
>                  from /usr/include/linux/elf.h:7,
>                  from test.cpp:1:
> /usr/include/asm-i386/elf.h:10:27: error:
asm/processor.h: No such file 
> or directory
> /usr/include/asm-i386/elf.h:11:47: error: asm/system.h:
No such file or 
> directory
> 
> Does anybody know how to get those files?
> 
> Thanx,
> 
> --
> 
> Robe.
> 

use apt-file to know what packages contain the file you seek
.

~$ apt-file search asm/processor.h

> libuclibc-dev:
usr/i386-uclibc-linux/include/asm/processor.h
> xen-doc-2.6.16:
>
usr/share/doc/xen-doc-2.6.16/Documentation/include/asm-i386/
mach-xen/asm/processor.h.gz
> xen-doc-2.6.16:
>
usr/share/doc/xen-doc-2.6.16/Documentation/include/asm-x86_6
4/mach-xen/asm/processor.h.gz
> xen-doc-2.6.17:
>
usr/share/doc/xen-doc-2.6.17/Documentation/include/asm-i386/
mach-xen/asm/processor.h.gz
> xen-doc-2.6.17:
>
usr/share/doc/xen-doc-2.6.17/Documentation/include/asm-x86_6
4/mach-xen/asm/processor.h.gz
> xen-headers-2.6.16:
>
usr/src/xen-headers-2.6.16/include/asm-i386/mach-xen/asm/pro
cessor.h
> xen-headers-2.6.17-6:
>
usr/src/xen-headers-2.6.17-6/include/asm-i386/mach-xen/asm/p
rocessor.h
> xen-headers-2.6.17-6:
>
usr/src/xen-headers-2.6.17-6/include/asm-x86_64/mach-xen/asm
/processor.h





-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


RE: Help with source files
user name
2007-02-28 14:19:38
I've tried 

	apt-file search asm/processor.h

and I get this error 

	bash: apt-file: command not found.

Do I have to install "apt-file"?

Help me I'm new in Linux.

Thanx,

--
Robe.
 
Hablamos de matar el tiempo como si no fuera él quien nos
mata a nosotros.





-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


RE: Help with source files
country flaguser name
United States
2007-02-28 14:29:42
Yes, just run "sudo apt-get install apt-file"

On Wed, 2007-02-28 at 15:19 -0500, Robe wrote:
> I've tried 
> 
> 	apt-file search asm/processor.h
> 
> and I get this error 
> 
> 	bash: apt-file: command not found.
> 
> Do I have to install "apt-file"?
> 
> Help me I'm new in Linux.
> 
> Thanx,
> 
> --
> Robe.
>  
> Hablamos de matar el tiempo como si no fuera él quien
nos mata a nosotros.
> 
> 
> 
> 
> 


-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Re: Help with source files
country flaguser name
Australia
2007-02-28 14:34:54
On Wed, 28 Feb 2007 15:19:38 -0500
"Robe" <robeprodal.telemar.cu>
wrote:

> and I get this error 
> 
> 	bash: apt-file: command not found.
> 
> Do I have to install "apt-file"?

Yes 

sudo apt-get install apt-file

then

sudo apt-file update

( running the second command after upgrades or when you
install new
software will refresh the file  list and keep it accurate)

Peter

-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Re: Help with source files
country flaguser name
Australia
2007-02-28 15:03:13
On Wed, 28 Feb 2007 15:51:46 -0500
"Robe" <robeprodal.telemar.cu>
wrote:

> > Yes, just run "sudo apt-get install
apt-file"
> 
> That's great it's working now but I get nothing when I
try this
> 
> 	apt-file search asm/processor.h
> 
> Anybody know why?

Did you update the database with

sudo apt-file update         ?

Peter

-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )