CC audio/telephony.o
CCLD src/bluetoothd
audio/avdtp.o: In function `avdtp_parse_cmd':
avdtp.c:(.text+0x349c): undefined reference to `g_malloc0_n'
attrib/client.o: In function `prim_get_properties':
client.c:(.text+0x37c): undefined reference to `g_malloc0_n'
src/manager.o: In function `manager_update_adapters':
manager.c:(.text+0xd8): undefined reference to `g_malloc0_n'
src/manager.o: In function `get_properties':
manager.c:(.text+0x99c): undefined reference to `g_malloc0_n'
src/adapter.o: In function `adapter_emit_device_found':
adapter.c:(.text+0x19c8): undefined reference to `g_malloc0_n'
src/adapter.o:adapter.c:(.text+0x22d4): more undefined references to `g_malloc0_n' follow
collect2: ld returned 1 exit status
make[1]: *** [src/bluetoothd] Error 1
CCLD src/bluetoothd
audio/avdtp.o: In function `avdtp_parse_cmd':
avdtp.c:(.text+0x349c): undefined reference to `g_malloc0_n'
attrib/client.o: In function `prim_get_properties':
client.c:(.text+0x37c): undefined reference to `g_malloc0_n'
src/manager.o: In function `manager_update_adapters':
manager.c:(.text+0xd8): undefined reference to `g_malloc0_n'
src/manager.o: In function `get_properties':
manager.c:(.text+0x99c): undefined reference to `g_malloc0_n'
src/adapter.o: In function `adapter_emit_device_found':
adapter.c:(.text+0x19c8): undefined reference to `g_malloc0_n'
src/adapter.o:adapter.c:(.text+0x22d4): more undefined references to `g_malloc0_n' follow
collect2: ld returned 1 exit status
make[1]: *** [src/bluetoothd] Error 1
make: *** [all] Error 2
原因为glib2的版本过低,升级glib2版本
修改glib2的版本号为2.24.0可以编译过