Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bluetooth linker not connected #4016

Closed
zephyrbot opened this issue Sep 1, 2017 · 5 comments
Closed

bluetooth linker not connected #4016

zephyrbot opened this issue Sep 1, 2017 · 5 comments
Assignees
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Milestone

Comments

@zephyrbot
Copy link
Collaborator

zephyrbot commented Sep 1, 2017

Reported by Tamra Oyama:

Hi all,

When I try to compile the beacon example on my curie arduino 101 using the command, make BOARD=arduino_101, I get the following error.

error: unknown type name ‘bdaddr_t’

I think this happened because the bluetooth is not linked properly? I am using newlib in zephyr/lib/libc instead of minimal. In main.c, I included

bluetooth/bluetooth.h
bluetooth/hci.h

Does anyone know how to fix this issue?

(Imported from Jira ZEP-2587)

@zephyrbot
Copy link
Collaborator Author

by Johan Hedberg:

There's something incorrect or inaccurate in the description, since there's not a single instance of the string 'bdaddr_t' in the Zephyr source tree.

@zephyrbot
Copy link
Collaborator Author

by Johan Hedberg:

Also, I just tried building samples/bluetooth/beacon for BOARD=arduino_101 with latest master and it built just fine.

@zephyrbot
Copy link
Collaborator Author

by manoj subbarao:

Tamra Oyama : Please provide more information on the issue replication. Not able to reproduce the issue with information provided.

@zephyrbot
Copy link
Collaborator Author

by Tamra Oyama:

Hi Manoj,

I am currently using a tinyTILE. I am trying to compile a bluetooth application and I am pretty sure I am getting errors because I am not correctly linking the appropriate bluetooth files. All my other include files seem to be working fine. The only error I can't seem to figure out is,

error: unknown type name ‘bdaddr_t’

These are all the includes I have in my code,

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <signal.h>
#include <misc/printk.h>

#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>

Thank you!

@zephyrbot zephyrbot added priority: low Low impact/importance bug area: Bluetooth bug The issue is a bug, or the PR is fixing a bug labels Sep 23, 2017
@zephyrbot zephyrbot added this to the v1.10.0 milestone Sep 23, 2017
@jhedberg
Copy link
Member

It seems to me that you must have a reference to bdaddr_t somewhere in your code since the Zephyr source tree contains no such thing. Note that bdaddr_t is a type that does exist for BlueZ, but not for Zephyr, so if you've e.g. tried to copy or write some BlueZ code in your app then it will fail. Closing this since I can't reproduce and this really does look like an issue in the application code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

2 participants