42ity / fty-sensor-gpio

Agent to manage GPIO sensors and devices
Other
0 stars 9 forks source link

Zproject markup 20181210 #79

Closed jimklimov closed 5 years ago

jimklimov commented 5 years ago

Got a build error in CI:

src/fty_sensor_gpio.cc: In function 'int main(int, char**)':
src/fty_sensor_gpio.cc:210:36: error: 'fty_sensor_gpio_server' was not declared in this scope
     zactor_t *server = zactor_new (fty_sensor_gpio_server, (void*)actor_name);
                                    ^
src/fty_sensor_gpio.cc:211:36: error: 'fty_sensor_gpio_assets' was not declared in this scope
     zactor_t *assets = zactor_new (fty_sensor_gpio_assets, (void*)"gpio-assets");
                                    ^
Makefile:1080: recipe for target 'src/src_fty_sensor_gpio-fty_sensor_gpio.o' failed
make[1]: *** [src/src_fty_sensor_gpio-fty_sensor_gpio.o] Error 1
jimklimov commented 5 years ago

Build issue above was due to enablement of stable vs draft code (now that earlier wrong attributes got interpreted by zproject), and so previously all was built (nothing stable) and now code which was not marked stable and thus deemed draft, was ifdef'ed away and not found during non-draft builds. Marking everything stable restored the older status quo of building everything.

jimklimov commented 5 years ago

Self-test again sporadically freezing at:

log-default-67333376 [160167680] -DEBUG- publish_status (src/fty_sensor_gpio_server.cc:249)     Port: GPI1, type: status.GPI1, status: closed
log-default-67333376 [160167680] -DEBUG- s_check_gpio_status (src/fty_sensor_gpio_server.cc:299) Checking status of GPx sensor 'gpo-11'
log-default-67333376 [160167680] -DEBUG- libgpio_read (src/libgpio.cc:258) reading GPx #2 (pin 490)
log-default-67333376 [160167680] -DEBUG- libgpio_export (src/libgpio.cc:555) exporting pin 490
log-default-67333376 [160167680] -ERROR- libgpio_read (src/libgpio.cc:295) Failed to read value!
log-default-67333376 [160167680] -ERROR- s_check_gpio_status (src/fty_sensor_gpio_server.cc:339) Can't read GPx sensor #2 status