From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <95bb57cb0806120201i63c7c753m4d72c9ed9138ee8e@mail.gmail.com> Date: Thu, 12 Jun 2008 11:01:28 +0200 From: "nico bats" To: "BlueZ users" In-Reply-To: <1213190155.17870.28.camel@violet.holtmann.net> MIME-Version: 1.0 References: <95bb57cb0806110251xe9cc530v80224cfd836aef05@mail.gmail.com> <1213190155.17870.28.camel@violet.holtmann.net> Subject: Re: [Bluez-users] compile on apple Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1096128933==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============1096128933== Content-Type: multipart/alternative; boundary="----=_Part_40678_1318446.1213261288889" ------=_Part_40678_1318446.1213261288889 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hi, following this page( http://wiki.openmoko.org/wiki/User:SNMoore#Patch_to_work_around_byteswap.h_and_endian.h_errors_on_OS_X), byteswap macro can be re-written and use as header maybe it worth the try ++ On Wed, Jun 11, 2008 at 3:15 PM, Marcel Holtmann wrote: > Hi Nico, > > > i've tried to compile Bluez on macbookpro and came across error: > > > > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > > -I.. -I../include -Wall -O2 -D_FORTIFY_SOURCE=2 -MT bluetooth.lo > > -MD -MP -MF .deps/bluetooth.Tpo -c -o bluetooth.lo bluetooth.c > > mkdir .libs > > gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -O2 > > -D_FORTIFY_SOURCE=2 -MT bluetooth.lo -MD -MP -MF .deps/bluetooth.Tpo > > -c bluetooth.c -fno-common -DPIC -o .libs/bluetooth.o > > bluetooth.c:35:20: error: malloc.h: No such file or directory > > In file included from bluetooth.c:39: > > ../include/bluetooth/bluetooth.h:36:20: error: endian.h: No such file > > or directory > > ../include/bluetooth/bluetooth.h:37:22: error: byteswap.h: No such > > file or directory > > > > does macros included in endian.h & byteswap.h can be coded in a > > portable way ? > > I can fix the malloc.h include, because that is not needed, but for the > others, I have no idea. Maybe or maybe not. > > Regards > > Marcel > > > > ------------------------------------------------------------------------- > 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 > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > ------=_Part_40678_1318446.1213261288889 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hi,
following this page(http://wiki.openmoko.org/wiki/User:SNMoore#Patch_to_work_around_byteswap.h_and_endian.h_errors_on_OS_X), byteswap macro can be re-written and use  <machine/endian.h> as header

maybe it worth the try
++

On Wed, Jun 11, 2008 at 3:15 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
Hi Nico,

> i've tried to compile Bluez on macbookpro and came across error:
>
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I.. -I../include    -Wall -O2 -D_FORTIFY_SOURCE=2 -MT bluetooth.lo
> -MD -MP -MF .deps/bluetooth.Tpo -c -o bluetooth.lo bluetooth.c
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -O2
> -D_FORTIFY_SOURCE=2 -MT bluetooth.lo -MD -MP -MF .deps/bluetooth.Tpo
> -c bluetooth.c  -fno-common -DPIC -o .libs/bluetooth.o
> bluetooth.c:35:20: error: malloc.h: No such file or directory
> In file included from bluetooth.c:39:
> ../include/bluetooth/bluetooth.h:36:20: error: endian.h: No such file
> or directory
> ../include/bluetooth/bluetooth.h:37:22: error: byteswap.h: No such
> file or directory
>
> does macros included in endian.h & byteswap.h can be coded in a
> portable way ?

I can fix the malloc.h include, because that is not needed, but for the
others, I have no idea. Maybe or maybe not.

Regards

Marcel



-------------------------------------------------------------------------
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

------=_Part_40678_1318446.1213261288889-- --===============1096128933== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============1096128933== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============1096128933==--