[Lcdproc] Compile error

Markus Dolze bsdfan@nurfuerspam.de
Fri Sep 1 19:20:04 2006


When compiling CURRENT, I get the following errors:

if gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../..  -fPIC -Wall -O2 -fno-strict-aliasing -pipe  -g -Wno-unused-function -MT hd44780-hd44780-serial.o -MD -MP -MF ".deps/hd44780-hd44780-serial.Tpo" -c -o hd44780-hd44780-serial.o `test -f 'hd44780-serial.c' || echo './'`hd44780-serial.c;  then mv -f ".deps/hd44780-hd44780-serial.Tpo" ".deps/hd44780-hd44780-serial.Po"; else rm -f ".deps/hd44780-hd44780-serial.Tpo"; exit 1; fi
hd44780-serial.c:72: error: `B500000' undeclared here (not in a function)
hd44780-serial.c:72: error: initializer element is not constant
hd44780-serial.c:72: error: (near initialization for `bitrate_conversion[19][1]')
hd44780-serial.c:72: error: initializer element is not constant
hd44780-serial.c:72: error: (near initialization for `bitrate_conversion[19]')
hd44780-serial.c:73: error: `B576000' undeclared here (not in a function)
hd44780-serial.c:73: error: initializer element is not constant
hd44780-serial.c:73: error: (near initialization for `bitrate_conversion[20][1]')
hd44780-serial.c:73: error: initializer element is not constant
hd44780-serial.c:73: error: (near initialization for `bitrate_conversion[20]')
hd44780-serial.c:74: error: initializer element is not constant
hd44780-serial.c:74: error: (near initialization for `bitrate_conversion[21]')
hd44780-serial.c:75: error: `B1000000' undeclared here (not in a function)
hd44780-serial.c:75: error: initializer element is not constant
hd44780-serial.c:75: error: (near initialization for `bitrate_conversion[22][1]')
hd44780-serial.c:75: error: initializer element is not constant
hd44780-serial.c:75: error: (near initialization for `bitrate_conversion[22]')
hd44780-serial.c:76: error: `B1152000' undeclared here (not in a function)
hd44780-serial.c:76: error: initializer element is not constant
hd44780-serial.c:76: error: (near initialization for `bitrate_conversion[23][1]')
hd44780-serial.c:76: error: initializer element is not constant
hd44780-serial.c:76: error: (near initialization for `bitrate_conversion[23]')
hd44780-serial.c:77: error: `B1500000' undeclared here (not in a function)
hd44780-serial.c:77: error: initializer element is not constant
hd44780-serial.c:77: error: (near initialization for `bitrate_conversion[24][1]')
hd44780-serial.c:77: error: initializer element is not constant
hd44780-serial.c:77: error: (near initialization for `bitrate_conversion[24]')
hd44780-serial.c:78: error: `B2000000' undeclared here (not in a function)
hd44780-serial.c:78: error: initializer element is not constant
hd44780-serial.c:78: error: (near initialization for `bitrate_conversion[25][1]')
hd44780-serial.c:78: error: initializer element is not constant
hd44780-serial.c:78: error: (near initialization for `bitrate_conversion[25]')
hd44780-serial.c:79: error: `B2500000' undeclared here (not in a function)
hd44780-serial.c:79: error: initializer element is not constant
hd44780-serial.c:79: error: (near initialization for `bitrate_conversion[26][1]')
hd44780-serial.c:79: error: initializer element is not constant
hd44780-serial.c:79: error: (near initialization for `bitrate_conversion[26]')
hd44780-serial.c:80: error: `B3000000' undeclared here (not in a function)
hd44780-serial.c:80: error: initializer element is not constant
hd44780-serial.c:80: error: (near initialization for `bitrate_conversion[27][1]')
hd44780-serial.c:80: error: initializer element is not constant
hd44780-serial.c:80: error: (near initialization for `bitrate_conversion[27]')
hd44780-serial.c:81: error: `B3500000' undeclared here (not in a function)
hd44780-serial.c:81: error: initializer element is not constant
hd44780-serial.c:81: error: (near initialization for `bitrate_conversion[28][1]')
hd44780-serial.c:81: error: initializer element is not constant
hd44780-serial.c:81: error: (near initialization for `bitrate_conversion[28]')
hd44780-serial.c:82: error: `B4000000' undeclared here (not in a function)
hd44780-serial.c:82: error: initializer element is not constant
hd44780-serial.c:82: error: (near initialization for `bitrate_conversion[29][1]')
hd44780-serial.c:82: error: initializer element is not constant
hd44780-serial.c:82: error: (near initialization for `bitrate_conversion[29]')
hd44780-serial.c: In function `serial_HD44780_backlight':
hd44780-serial.c:237: warning: `return' with a value, in function returning void
*** Error code 1

Stop in /usr/home/mmdolze/smoketest/lcdproc/current-FreeBSD-6.1-RELEASE-p3-i386/server/drivers.
*** Error code 1

Stop in /usr/home/mmdolze/smoketest/lcdproc/current-FreeBSD-6.1-RELEASE-p3-i386/server.
*** Error code 1

Stop in /usr/home/mmdolze/smoketest/lcdproc/current-FreeBSD-6.1-RELEASE-p3-i386.
*** Error code 1


Seems like the higher speeds in termios.h are not supported on all platforms.

Could these be #ifdef ?


Regards
Markus