Det jag beskrivit ovan kommer sig av att jag vill använda Digitemp-3.5.0_mysql
istället för "den vanliga" Digitemp som Debian tillhandahåller. Den är kompilerad och klar
när den landat i datorn och fungerar alldeles utmärkt. Det jag sliter med är att kompilera
en fixad variant av Digitemp, finns här;
http://illx.org/digitemp/index.jsp
Problemet är att kompilera, inget jag gör varje dag. Jag testar med
och får en otrolig radda fel.
debian:~# cd /home/digitemp-3.5.0_mysql
debian:/home/digitemp-3.5.0_mysql# make ds9097
gcc -I./src -I./userial -I/usr/local/mysql/include -O2 -DLINUX -c -o src/digitemp.o src/digitemp.c
src/digitemp.c:78:19: error: mysql.h: Filen eller katalogen finns inte
In file included from src/digitemp.c:88:
src/digitemp.h:93: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
src/digitemp.h:98: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
src/digitemp.h:102: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
src/digitemp.c:604: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
src/digitemp.c: In function ‘log_temp’:
src/digitemp.c:672: error: ‘conn’ undeclared (first use in this function)
src/digitemp.c:672: error: (Each undeclared identifier is reported only once
src/digitemp.c:672: error: for each function it appears in.)
src/digitemp.c: At top level:
src/digitemp.c:901: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
src/digitemp.c: In function ‘read_temperature’:
src/digitemp.c:1030: error: ‘conn’ undeclared (first use in this function)
src/digitemp.c:1030: error: too many arguments to function ‘log_temp’
src/digitemp.c:1034: error: too many arguments to function ‘log_temp’
src/digitemp.c: At top level:
src/digitemp.c:1376: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
src/digitemp.c: In function ‘read_device’:
src/digitemp.c:1464: error: ‘conn’ undeclared (first use in this function)
src/digitemp.c:1464: error: too many arguments to function ‘read_temperature’
src/digitemp.c: In function ‘read_all’:
src/digitemp.c:1503: error: too many arguments to function ‘read_device’
src/digitemp.c: At top level:
src/digitemp.c:1510: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
src/digitemp.c: In function ‘read_all_and_dblog’:
src/digitemp.c:1517: error: ‘conn’ undeclared (first use in this function)
src/digitemp.c:1517: error: too many arguments to function ‘read_device’
src/digitemp.c: In function ‘main’:
src/digitemp.c:2908: error: too many arguments to function ‘read_device’
src/digitemp.c:2920: error: ‘MYSQL’ undeclared (first use in this function)
src/digitemp.c:2920: error: ‘conn’ undeclared (first use in this function)
src/digitemp.c:2928: warning: comparison between pointer and integer
src/digitemp.c:2936: error: too many arguments to function ‘read_all_and_dblog’
make: *** [src/digitemp.o] Fel 1
debian:/home/digitemp-3.5.0_mysql#
Har någon på detta forum sysslat med denna variant av Digitemp?
Jag har installerat Mysql som används av annat program.
Kan någon tolka felen? Fattas något? Har ju hänt förr.
Tacksam för hjälp!