vernam
October 12th, 2009, 07:55 PM
Hi,
I am trying to install a network simulator "atemu" on my lab machine, but when I run "make", it gives me an error about libelf.h. I have checked from synaptic manager that in my system "libelf1" - 131.4 version is installed.
I have installed the same simulator on my laptop, and it got installed without any trouble. I am not sure why is it so. Any help in this regard is highly appreciated.
I am using Ubuntu Jaunty 9.04 version with 32-bit core duo processor. Following is the error snapshot.
In file included from os.h:59,
from defs.h:61,
from atmega128.c:52:
/usr/include/libelf.h:98: error: expected specifier-qualifier-list before ‘off64_t’
/usr/include/libelf.h:160: error: expected specifier-qualifier-list before ‘off64_t’
/usr/include/libelf.h:201: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_update’
/usr/include/libelf.h:207: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_getbase’
/usr/include/libelf.h:305: error: expected declaration specifiers or ‘...’ before ‘off64_t’
/usr/include/libelf.h:317: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_getaroff’
atmega128.c: In function ‘atemu_load_file’:
atmega128.c:801: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result
make[2]: *** [atmega128.o] Error 1
Thanks,
V
I am trying to install a network simulator "atemu" on my lab machine, but when I run "make", it gives me an error about libelf.h. I have checked from synaptic manager that in my system "libelf1" - 131.4 version is installed.
I have installed the same simulator on my laptop, and it got installed without any trouble. I am not sure why is it so. Any help in this regard is highly appreciated.
I am using Ubuntu Jaunty 9.04 version with 32-bit core duo processor. Following is the error snapshot.
In file included from os.h:59,
from defs.h:61,
from atmega128.c:52:
/usr/include/libelf.h:98: error: expected specifier-qualifier-list before ‘off64_t’
/usr/include/libelf.h:160: error: expected specifier-qualifier-list before ‘off64_t’
/usr/include/libelf.h:201: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_update’
/usr/include/libelf.h:207: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_getbase’
/usr/include/libelf.h:305: error: expected declaration specifiers or ‘...’ before ‘off64_t’
/usr/include/libelf.h:317: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_getaroff’
atmega128.c: In function ‘atemu_load_file’:
atmega128.c:801: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result
make[2]: *** [atmega128.o] Error 1
Thanks,
V