You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/01/29 12:22:00 UTC

[GitHub] EvalZero opened a new issue #311: bletest build errors

EvalZero opened a new issue #311: bletest build errors
URL: https://github.com/apache/mynewt-nimble/issues/311
 
 
   I want to use apps/bletest,but there were some errors
   
   ```
   Compiling repos/apache-mynewt-core/hw/bsp/nordic_pca10040/src/hal_bsp.c
   Assembling repos/apache-mynewt-core/hw/bsp/nordic_pca10040/src/arch/cortex_m4/gcc_startup_nrf52.s
   Assembling repos/apache-mynewt-core/hw/bsp/nordic_pca10040/src/arch/cortex_m4/gcc_startup_nrf52_split.s
   Error: repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c: In function 'bletest_send_ltk_req_neg_reply':
   repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:84:28: error: passing argument 1 of 'ble_hs_hci_cmd_tx' makes integer from pointer without a cast [-Werror=int-conversion]
        rc = ble_hs_hci_cmd_tx(buf, &ack_conn_handle, 2, &rsplen);
                               ^
   In file included from repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_priv.h:30:0,
                    from repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:39:
   repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_hci_priv.h:74:5: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'uint8_t * {aka unsigned char *}'
    int ble_hs_hci_cmd_tx(uint16_t opcode, void *cmd, uint8_t cmd_len,
        ^
   repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:84:10: error: too few arguments to function 'ble_hs_hci_cmd_tx'
        rc = ble_hs_hci_cmd_tx(buf, &ack_conn_handle, 2, &rsplen);
             ^
   In file included from repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_priv.h:30:0,
                    from repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:39:
   repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_hci_priv.h:74:5: note: declared here
    int ble_hs_hci_cmd_tx(uint16_t opcode, void *cmd, uint8_t cmd_len,
        ^
   repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c: In function 'bletest_send_ltk_req_reply':
   repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:107:28: error: passing argument 1 of 'ble_hs_hci_cmd_tx' makes integer from pointer without a cast [-Werror=int-conversion]
        rc = ble_hs_hci_cmd_tx(buf, &ack_conn_handle, sizeof ack_conn_handle,
                               ^
   In file included from repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_priv.h:30:0,
                    from repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:39:
   repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_hci_priv.h:74:5: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'uint8_t * {aka unsigned char *}'
    int ble_hs_hci_cmd_tx(uint16_t opcode, void *cmd, uint8_t cmd_len,
        ^
   repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:107:10: error: too few arguments to function 'ble_hs_hci_cmd_tx'
        rc = ble_hs_hci_cmd_tx(buf, &ack_conn_handle, sizeof ack_conn_handle,
             ^
   In file included from repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_priv.h:30:0,
                    from repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:39:
   repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_hci_priv.h:74:5: note: declared here
    int ble_hs_hci_cmd_tx(uint16_t opcode, void *cmd, uint8_t cmd_len,
   
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services