Witam.
Chciałbym uruchomić wyświetlacz LCD na serwerze. Programik do obsługi to lcdinfo, jest tu:
http://www.linuxfocus.org/common/src/ar ... 02.tar.bz2
Jednak próba kompilacji kończy się takim wynikiem:
Cytuj:
[root@router_nnd lcdinfo-0.02]# gcc -O2 lcdinfo.c iolcd.c uptime.c systeminfo.c
uptime.c: In function `uptime':
uptime.c:38: warning: function returns address of local variable
systeminfo.c: In function `system_info':
systeminfo.c:18: warning: function returns address of local variable
/tmp/ccx6Kpoh.o(.text+0x152): In function `main_loop':
: undefined reference to `mem'
/tmp/ccx6Kpoh.o(.text+0x16a): In function `main_loop':
: undefined reference to `mem'
/tmp/ccx6Kpoh.o(.text+0x221): In function `main_loop':
: undefined reference to `swap'
/tmp/ccx6Kpoh.o(.text+0x239): In function `main_loop':
: undefined reference to `swap'
/tmp/ccx6Kpoh.o(.text+0x2f1): In function `main_loop':
: undefined reference to `cpu'
/tmp/ccx6Kpoh.o(.text+0x309): In function `main_loop':
: undefined reference to `cpu'
collect2: ld returned 1 exit status
Pakiety w wersji devel mam zainstalowane.
Co może być przyczyną tego?