public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [Bluez-devel] [BlueZ-Announce] Release of bluez-libs-3.25 and bluez-utils-3.25
       [not found] <1201926335.15090.32.camel@violet>
@ 2008-02-02 13:03 ` Bastien Nocera
  2008-02-02 13:18   ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien Nocera @ 2008-02-02 13:03 UTC (permalink / raw)
  To: BlueZ Hackers

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

On Sat, 2008-02-02 at 05:25 +0100, Marcel Holtmann wrote:
> Hi Folks,
> 
> this is an update release of the new stable versions of the Bluetooth
> library and the utilities. This release updates the audio service with
> experimental MPEG12/MP3 support. It also updates the GStreamer plugins
> to make use of it.

I got a build problem with the 3.25 release of bluez-libs:
sdp.c: In function 'sdp_data_alloc_with_length':
sdp.c:450: error: 'USHRT_MAX' undeclared (first use in this function)
sdp.c:450: error: (Each undeclared identifier is reported only once
sdp.c:450: error: for each function it appears in.)
sdp.c: In function 'sdp_append_to_buf':
sdp.c:2393: error: 'UCHAR_MAX' undeclared (first use in this function)
make[2]: *** [sdp.lo] Error 1

The attached patch fixes it for me, although I don't see the problem on
my older system (Fedora 8 vs. Rawhide).

[-- Attachment #2: bluez-missing-limits-include.patch --]
[-- Type: text/x-patch, Size: 432 bytes --]

Index: sdp.c
===================================================================
RCS file: /cvsroot/bluez/libs/src/sdp.c,v
retrieving revision 1.79
diff -u -p -r1.79 src/sdp.c
--- src/sdp.c	2 Feb 2008 03:11:11 -0000	1.79
+++ src/sdp.c	2 Feb 2008 12:02:02 -0000
@@ -35,6 +35,7 @@
 #include <stdlib.h>
 #include <malloc.h>
 #include <syslog.h>
+#include <limits.h>
 #include <sys/un.h>
 #include <sys/socket.h>
 #include <sys/time.h>

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] [BlueZ-Announce] Release of bluez-libs-3.25 and bluez-utils-3.25
  2008-02-02 13:03 ` [Bluez-devel] [BlueZ-Announce] Release of bluez-libs-3.25 and bluez-utils-3.25 Bastien Nocera
@ 2008-02-02 13:18   ` Marcel Holtmann
  2008-02-02 14:19     ` Bastien Nocera
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2008-02-02 13:18 UTC (permalink / raw)
  To: BlueZ development

Hi Bastien,

> > this is an update release of the new stable versions of the Bluetooth
> > library and the utilities. This release updates the audio service with
> > experimental MPEG12/MP3 support. It also updates the GStreamer plugins
> > to make use of it.
> 
> I got a build problem with the 3.25 release of bluez-libs:
> sdp.c: In function 'sdp_data_alloc_with_length':
> sdp.c:450: error: 'USHRT_MAX' undeclared (first use in this function)
> sdp.c:450: error: (Each undeclared identifier is reported only once
> sdp.c:450: error: for each function it appears in.)
> sdp.c: In function 'sdp_append_to_buf':
> sdp.c:2393: error: 'UCHAR_MAX' undeclared (first use in this function)
> make[2]: *** [sdp.lo] Error 1
> 
> The attached patch fixes it for me, although I don't see the problem on
> my older system (Fedora 8 vs. Rawhide).

I hate when glibc changes its behavior. This code hasn't been touched
for over 3 years ;)

Anyway. Patch has been applied. Thanks.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] [BlueZ-Announce] Release of bluez-libs-3.25 and bluez-utils-3.25
  2008-02-02 13:18   ` Marcel Holtmann
@ 2008-02-02 14:19     ` Bastien Nocera
  2008-02-02 15:07       ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien Nocera @ 2008-02-02 14:19 UTC (permalink / raw)
  To: BlueZ development

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]


On Sat, 2008-02-02 at 14:18 +0100, Marcel Holtmann wrote:
> Hi Bastien,
> 
> > > this is an update release of the new stable versions of the Bluetooth
> > > library and the utilities. This release updates the audio service with
> > > experimental MPEG12/MP3 support. It also updates the GStreamer plugins
> > > to make use of it.
> > 
> > I got a build problem with the 3.25 release of bluez-libs:
> > sdp.c: In function 'sdp_data_alloc_with_length':
> > sdp.c:450: error: 'USHRT_MAX' undeclared (first use in this function)
> > sdp.c:450: error: (Each undeclared identifier is reported only once
> > sdp.c:450: error: for each function it appears in.)
> > sdp.c: In function 'sdp_append_to_buf':
> > sdp.c:2393: error: 'UCHAR_MAX' undeclared (first use in this function)
> > make[2]: *** [sdp.lo] Error 1
> > 
> > The attached patch fixes it for me, although I don't see the problem on
> > my older system (Fedora 8 vs. Rawhide).
> 
> I hate when glibc changes its behavior. This code hasn't been touched
> for over 3 years ;)
> 
> Anyway. Patch has been applied. Thanks.

I have no idea why they changed that. Same problem with a few defines in
bluez-utils (missing UCHAR_MAX, USHRT_MAX and UINT_MAX).

Patch attached

[-- Attachment #2: bluez-utils-missing-limits-include.patch --]
[-- Type: text/x-patch, Size: 2194 bytes --]

Index: common/sdp-dummy.c
===================================================================
RCS file: /cvsroot/bluez/utils/common/sdp-dummy.c,v
retrieving revision 1.6
diff -u -p -r1.6 sdp-dummy.c
--- common/sdp-dummy.c	2 Feb 2008 03:37:21 -0000	1.6
+++ common/sdp-dummy.c	2 Feb 2008 13:09:24 -0000
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <errno.h>
+#include <limits.h>
 
 #include "logging.h"
 #include "sdp-xml.h"
Index: common/sdp-expat.c
===================================================================
RCS file: /cvsroot/bluez/utils/common/sdp-expat.c,v
retrieving revision 1.11
diff -u -p -r1.11 sdp-expat.c
--- common/sdp-expat.c	2 Feb 2008 03:37:21 -0000	1.11
+++ common/sdp-expat.c	2 Feb 2008 13:09:24 -0000
@@ -26,6 +26,7 @@
 #endif
 
 #include <stdlib.h>
+#include <limits.h>
 
 #include <bluetooth/sdp.h>
 #include <bluetooth/sdp_lib.h>
Index: common/sdp-glib.c
===================================================================
RCS file: /cvsroot/bluez/utils/common/sdp-glib.c,v
retrieving revision 1.6
diff -u -p -r1.6 sdp-glib.c
--- common/sdp-glib.c	2 Feb 2008 03:37:21 -0000	1.6
+++ common/sdp-glib.c	2 Feb 2008 13:09:24 -0000
@@ -26,6 +26,7 @@
 #endif
 
 #include <stdlib.h>
+#include <limits.h>
 
 #include <bluetooth/sdp.h>
 #include <bluetooth/sdp_lib.h>
Index: sdpd/request.c
===================================================================
RCS file: /cvsroot/bluez/utils/sdpd/request.c,v
retrieving revision 1.20
diff -u -p -r1.20 request.c
--- sdpd/request.c	2 Feb 2008 03:37:48 -0000	1.20
+++ sdpd/request.c	2 Feb 2008 13:09:24 -0000
@@ -32,6 +32,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <malloc.h>
+#include <limits.h>
 #include <sys/socket.h>
 
 #include <bluetooth/bluetooth.h>
Index: audio/pcm_bluetooth.c
===================================================================
RCS file: /cvsroot/bluez/utils/audio/pcm_bluetooth.c,v
retrieving revision 1.98
diff -u -p -r1.98 pcm_bluetooth.c
--- audio/pcm_bluetooth.c	2 Feb 2008 03:37:05 -0000	1.98
+++ audio/pcm_bluetooth.c	2 Feb 2008 13:45:15 -0000
@@ -33,6 +33,7 @@
 #include <sys/time.h>
 #include <pthread.h>
 #include <signal.h>
+#include <limits.h>
 
 #include <netinet/in.h>
 

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] [BlueZ-Announce] Release of bluez-libs-3.25 and bluez-utils-3.25
  2008-02-02 14:19     ` Bastien Nocera
@ 2008-02-02 15:07       ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2008-02-02 15:07 UTC (permalink / raw)
  To: BlueZ development

Hi Bastien,

> > > > this is an update release of the new stable versions of the Bluetooth
> > > > library and the utilities. This release updates the audio service with
> > > > experimental MPEG12/MP3 support. It also updates the GStreamer plugins
> > > > to make use of it.
> > > 
> > > I got a build problem with the 3.25 release of bluez-libs:
> > > sdp.c: In function 'sdp_data_alloc_with_length':
> > > sdp.c:450: error: 'USHRT_MAX' undeclared (first use in this function)
> > > sdp.c:450: error: (Each undeclared identifier is reported only once
> > > sdp.c:450: error: for each function it appears in.)
> > > sdp.c: In function 'sdp_append_to_buf':
> > > sdp.c:2393: error: 'UCHAR_MAX' undeclared (first use in this function)
> > > make[2]: *** [sdp.lo] Error 1
> > > 
> > > The attached patch fixes it for me, although I don't see the problem on
> > > my older system (Fedora 8 vs. Rawhide).
> > 
> > I hate when glibc changes its behavior. This code hasn't been touched
> > for over 3 years ;)
> > 
> > Anyway. Patch has been applied. Thanks.
> 
> I have no idea why they changed that. Same problem with a few defines in
> bluez-utils (missing UCHAR_MAX, USHRT_MAX and UINT_MAX).

patch has been committed to the CVS. Thanks.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-02 15:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1201926335.15090.32.camel@violet>
2008-02-02 13:03 ` [Bluez-devel] [BlueZ-Announce] Release of bluez-libs-3.25 and bluez-utils-3.25 Bastien Nocera
2008-02-02 13:18   ` Marcel Holtmann
2008-02-02 14:19     ` Bastien Nocera
2008-02-02 15:07       ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox