2007-12-11 15:35:49

by billy leung

[permalink] [raw]
Subject: [Bluez-users] compiling problem in audio directory for 3.23 bluez-utils

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


2007-12-12 12:52:10

by Johan Hedberg

[permalink] [raw]
Subject: Re: [Bluez-users] compiling problem in audio directory for 3.23 bluez-utils

Hi,

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