Skip to contentSkip to conversation

compiling problem in audio directory for 3.23 bluez-utils

Bluez-users [email protected] 2 participants 2 messages Dec 11, 2007 – Dec 12, 2007 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): mailman.282482.1197382116.26582.bluez-users@lists.sourceforge.net

#1 lore raw

when i configured with --enable-audio, compiling failed at this point:

sink.o: In function `discovery_complete':
sink.c:(.text+0x507): undefined reference to MAX' sink.c:(.text+0x559): undefined reference to MIN'
collect2: ld returned 1 exit status
make[2]: *** [bluetoothd-service-audio] Error 1
make[2]: Leaving directory `/home/cml/Desktop/bluez-utils-3.23/audio' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cml/Desktop/bluez-utils-3.23'
make: *** [all] Error 2

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

Hi,

Quoted 11 lines · On Tue, Dec 11, 2007, [email protected] wrote:

when i configured with --enable-audio, compiling failed at this point:

sink.o: In function `discovery_complete':
sink.c:(.text+0x507): undefined reference to MAX' sink.c:(.text+0x559): undefined reference to MIN'
collect2: ld returned 1 exit status
make[2]: *** [bluetoothd-service-audio] Error 1
make[2]: Leaving directory `/home/cml/Desktop/bluez-utils-3.23/audio' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cml/Desktop/bluez-utils-3.23'
make: *** [all] Error 2

Looks like this is a regression with 3.23 and eglib usage. The real glib seems to provide those macro definitions but the eglib that comes with bluez-utils doesn't. So, your options are:
1. Compile against glib instead of eglib (install glib dev files and use --enable-glib)
2. Patch it yourself (just add basic MIN/MAX macros somewhere in the code)
3. Wait for the next bluez release.

Johan

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users