public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] bluez-utils compile error
@ 2004-08-12 11:48 Stefan
  2004-08-12 12:20 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan @ 2004-08-12 11:48 UTC (permalink / raw)
  To: bluez-users

Hi,

when I try to compile bluez-utils I get the following error:

...
c `test -f 'hid2hci.c' || echo './'`hid2hci.c
gcc -I/usr/include  -I/usr/include -Wall -g -O2   -o hid2hci  hid2hci.o 
-L/usr/lib -lusb
/usr/lib/libusb.a(usb.o)(.text+0x7e9): In function `usb_get_busses':
: multiple definition of `usb_get_busses'
hid2hci.o(.text+0x0):/home/stefan/bluez-utils-2.9/tools/hid2hci.c:45: first 
defined here
collect2: ld returned 1 exit status
make[2]: *** [hid2hci] Error 1
make[2]: Leaving directory `/home/stefan/bluez-utils-2.9/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/stefan/bluez-utils-2.9'
make: *** [all] Error 2
bash-2.05b$

bluez-libs and libusb are installed
Need help!


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] bluez-utils compile error
  2004-08-12 11:48 [Bluez-users] bluez-utils compile error Stefan
@ 2004-08-12 12:20 ` Marcel Holtmann
  2004-08-12 13:19   ` Stefan
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2004-08-12 12:20 UTC (permalink / raw)
  To: Stefan; +Cc: BlueZ Mailing List

Hi Stefan,

> when I try to compile bluez-utils I get the following error:
> 
> ...
> c `test -f 'hid2hci.c' || echo './'`hid2hci.c
> gcc -I/usr/include  -I/usr/include -Wall -g -O2   -o hid2hci  hid2hci.o 
> -L/usr/lib -lusb
> /usr/lib/libusb.a(usb.o)(.text+0x7e9): In function `usb_get_busses':
> : multiple definition of `usb_get_busses'
> hid2hci.o(.text+0x0):/home/stefan/bluez-utils-2.9/tools/hid2hci.c:45: first 
> defined here
> collect2: ld returned 1 exit status
> make[2]: *** [hid2hci] Error 1
> make[2]: Leaving directory `/home/stefan/bluez-utils-2.9/tools'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/stefan/bluez-utils-2.9'
> make: *** [all] Error 2
> bash-2.05b$
> 
> bluez-libs and libusb are installed

remove this:

	#ifndef usb_get_busses
	struct usb_bus *usb_get_busses(void)
	{
	        return usb_busses;
	}
	#endif

from the hid2hci.c file and try again.

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] bluez-utils compile error
  2004-08-12 12:20 ` Marcel Holtmann
@ 2004-08-12 13:19   ` Stefan
  2004-08-12 13:29     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan @ 2004-08-12 13:19 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: bluez-users

Thanks a lot!!
Now it works!
Is this a bug or why I had to remove this lines?

MfG Stefan




On Thursday 12 August 2004 14:20, you wrote:
> Hi Stefan,
>
> > when I try to compile bluez-utils I get the following error:
> >
> > ...
> > c `test -f 'hid2hci.c' || echo './'`hid2hci.c
> > gcc -I/usr/include  -I/usr/include -Wall -g -O2   -o hid2hci  hid2hci.o
> > -L/usr/lib -lusb
> >
> > /usr/lib/libusb.a(usb.o)(.text+0x7e9): In function `usb_get_busses':
> > : multiple definition of `usb_get_busses'
> >
> > hid2hci.o(.text+0x0):/home/stefan/bluez-utils-2.9/tools/hid2hci.c:45:
> > first defined here
> > collect2: ld returned 1 exit status
> > make[2]: *** [hid2hci] Error 1
> > make[2]: Leaving directory `/home/stefan/bluez-utils-2.9/tools'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/home/stefan/bluez-utils-2.9'
> > make: *** [all] Error 2
> > bash-2.05b$
> >
> > bluez-libs and libusb are installed
>
> remove this:
>
> 	#ifndef usb_get_busses
> 	struct usb_bus *usb_get_busses(void)
> 	{
> 	        return usb_busses;
> 	}
> 	#endif
>
> from the hid2hci.c file and try again.
>
> Regards
>
> Marcel

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

* Re: [Bluez-users] bluez-utils compile error
  2004-08-12 13:19   ` Stefan
@ 2004-08-12 13:29     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2004-08-12 13:29 UTC (permalink / raw)
  To: Stefan; +Cc: BlueZ Mailing List

Hi Stefan,

> Thanks a lot!!

you are welcome.

> Now it works!
> Is this a bug or why I had to remove this lines?

Different versions of the USB library have different functions. I fixed
this in CVS to work with all versions now, I hope.

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2004-08-12 13:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-12 11:48 [Bluez-users] bluez-utils compile error Stefan
2004-08-12 12:20 ` Marcel Holtmann
2004-08-12 13:19   ` Stefan
2004-08-12 13:29     ` Marcel Holtmann

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