bmc update, when compile with make bmc get undefined reference