Re: [Libusbx-devel] [libusbx] Release libusbx v1.0.16 (#118)

2013-07-11 Thread Hans de Goede
Closed #118.

---
Reply to this email directly or view it on GitHub:
https://github.com/libusbx/libusbx/issues/118
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


[Libusbx-devel] Announcing libusbx-1.0.16 final

2013-07-11 Thread Hans de Goede
Hi All,

I'm very happy to announce the official libusbx-1.0.16 release!

Highlights of changes since 1.0.15:
---
* As Nathan Hjelm already announced in his "libusb and libusbx
merging" mail, Nathan has taken over libusb maintenance and
this release is a combined effort between the libusb and
libusbx projects!

* Hotplug support for Darwin and Linux

* Superspeed endpoint companion and BOS descriptor support

* We finally have a libusb_strerror API

You can download the 1.0.16 tarbal here:
http://downloads.sourceforge.net/libusbx/libusbx-1.0.16.tar.bz2

Please give it a thorough testing, and report any issues you
find.

For those interested the full ChangeLog is below.

Regards,

Hans


2013-07-11: v1.0.16
* Add hotplug support for Darwin and Linux (#9)
* Add superspeed endpoint companion descriptor support (#15)
* Add BOS descriptor support (#15)
* Make descriptor parsing code more robust
* New libusb_get_port_numbers API, this is libusb_get_port_path without
   the unnecessary context parameter, libusb_get_port_path is now deprecated
* New libusb_strerror API (#14)
* New libusb_set_auto_detach_kernel_driver API (#17)
* Improve topology API docs (#95)
* Logging now use a single write call per log-message, avoiding log-message
   "interlacing" when using multiple threads.
* Android: use Android logging when building on Android (#101)
* Darwin: make libusb_reset reenumerate device on descriptors change (#89)
* Darwin: add support for the LIBUSB_TRANSFER_ADD_ZERO_PACKET flag (#91)
* Darwin: add a device cache (#112, #114)
* Examples: Add sam3u_benchmark isochronous example by Harald Welte (#109)
* Many other bug fixes and improvements
The (#xx) numbers are libusbx issue numbers, see ie:
https://github.com/libusbx/libusbx/issues/9


--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


Re: [Libusbx-devel] [libusbx] Release libusbx v1.0.16 (#118)

2013-07-11 Thread Hans de Goede
libusbx-1.0.16 has just been released, closing.

---
Reply to this email directly or view it on GitHub:
https://github.com/libusbx/libusbx/issues/118#issuecomment-20800913
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


Re: [Libusbx-devel] Releasing 1.0.16 ...

2013-07-11 Thread Hans de Goede
Hi,

On 07/09/2013 09:11 PM, Pete Batard wrote:
> On 2013.07.09 14:51, Hans de Goede wrote:
>> Headsup: unless there are any objections I plan to release 1.0.16 coming 
>> Thursday.
>
> Sounds good to me. Make sure the milestone is updated if that's not
> already the case. If needed, I can upload the doc on release day.

The 1.0.16 release has been done. If you can upload the docs that would be 
great!

Also can you perhaps take care of updating the freecode.com entry ?

Thanks & Regards,

Hans

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


Re: [Libusbx-devel] Releasing 1.0.16 ...

2013-07-11 Thread Pete Batard
On 2013.07.11 10:55, Hans de Goede wrote:
> The 1.0.16 release has been done. If you can upload the docs that would
> be great!

Thanks for the release. Docs and Windows binaries are now up.

> Also can you perhaps take care of updating the freecode.com entry ?

I'll do that later on.

But, even as we are going to move back under the libusb umbrella, I 
wouldn't mind if there was more than one person in charge of the libusbx 
freecode project entry [1].
Would you have a freecode userid that I could add as admin?
Also, Xiaofan, Ludovic and Nathan, if you want to be granted admin 
access of the libusbx freecode entry, feel free to send me your user id.

One thing we may also want to do is ask Johannes to grant us access to 
the *libusb* freecode project entry, as there already is one there under 
his name [2], but as you can expect, it hasn't been updated since 2006.
I think pushing our releases on freecode can help increase the project's 
visibility and attract contributors, so I'd very much like to see it 
carried over. Plus it's always a boost to see your project mentioned on 
slashdot's sidebar, albeit briefly... ;)


Nathan, since you are officially the current maintainer of libusb, do 
you want to try contacting Johannes and see if he's OK to grant you 
access to the freecode entry?

Regards,

/Pete


[1] https://freecode.com/projects/libusbx
[2] https://freecode.com/projects/libusb

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


Re: [Libusbx-devel] Releasing 1.0.16 ...

2013-07-11 Thread Toby Gray
On 11/07/13 14:07, Pete Batard wrote:
> On 2013.07.11 10:55, Hans de Goede wrote:
>> The 1.0.16 release has been done. If you can upload the docs that would
>> be great!
> Thanks for the release. Docs and Windows binaries are now up.
>
>
I've now added the Windows CE binaries.

Regards,

Toby

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


[Libusbx-devel] [PATCH 1/1] Windows: fd_to_winfd() shouldn't treat fd 0 as invalid

2013-07-11 Thread Simon Haggett
fd_to_winfd() currently returns INVALID_WINFD if fd is 0, but usbi_create_fd()
can legally assign an fd number of 0 if poll_fd[0] is not already occupied.
Transfers which are assigned an fd number of 0 for their event handle are then
unable to have their event handle retrieved later on.

Normally, we don't see this problem occuring as pipes created by libusb_init()
for the context will occupy the low numbered entries of poll_fd. However, if
two libusb contexts are created, and the first context is then destroyed, the
second context will likely find that poll_fd[0] is now free. A transfer
subsequently sent using the second context can then have its event handle
assigned fd number 0.

This patch corrects fd_to_winfd() to only consider fd values less than zero as
invalid.

Signed-off-by: Simon Haggett 
---
 libusb/os/poll_windows.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c
index 7ed19ba..abe8761 100644
--- a/libusb/os/poll_windows.c
+++ b/libusb/os/poll_windows.c
@@ -428,7 +428,7 @@ struct winfd fd_to_winfd(int fd)
 
CHECK_INIT_POLLING;
 
-   if (fd <= 0)
+   if (fd < 0)
return INVALID_WINFD;
 
for (i=0; ihttp://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


[Libusbx-devel] Configure - Error with libusbx 1.0.16

2013-07-11 Thread Jens Gutsche
Hi,

 

i have seen a new version on http://www.libusb.org/wiki but i cannot configure it.

 

Here is the console output:

 

bash-3.2$ ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib --disable-static --enable-shared -disable-udev
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 32768
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for windres... no
checking for inline... inline
checking whether gcc and cc understand -c and -o together... yes
checking operating system... Linux
checking for library containing clock_gettime... none required
checking linux/netlink.h usability... no
checking linux/netlink.h presence... yes
configure: WARNING: linux/netlink.h: present but cannot be compiled
configure: WARNING: linux/netlink.h:     check for missing prerequisite headers?
configure: WARNING: linux/netlink.h: see the Autoconf documentation
configure: WARNING: linux/netlink.h:     section "Present But Cannot Be Compiled"
configure: WARNING: linux/netlink.h: proceeding with the compiler's result
configure: WARNING:     ## -- ##
configure: WARNING:     ## Report this to libusbx-devel@lists.sourceforge.net ##
configure: WARNING:     ## -- ##
checking for linux/netlink.h... no
configure: error: "Linux netlink headers not found"
 

I have also attached the config.log.

 

Hope this will help to find the error.

 


Re: [Libusbx-devel] Configure - Error with libusbx 1.0.16

2013-07-11 Thread Xiaofan Chen
On Fri, Jul 12, 2013 at 2:34 AM, Jens Gutsche  wrote:
> Hi,
>
> i have seen a new version on http://www.libusb.org/wiki but i cannot
> configure it.
>
> Here is the console output:
>
> bash-3.2$ ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
> --libdir=/usr/lib --disable-static --enable-shared -disable-udev

What is the distro you are using and why do you want -disable-udev?
What if you remove the -disable-udev?

The netlink support is not well tested as far as I know.

-- 
Xiaofan

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


Re: [Libusbx-devel] Configure - Error with libusbx 1.0.16

2013-07-11 Thread Nathan Hjelm

On Jul 11, 2013, at 6:34 PM, Xiaofan Chen  wrote:

> On Fri, Jul 12, 2013 at 2:34 AM, Jens Gutsche  wrote:
>> Hi,
>> 
>> i have seen a new version on http://www.libusb.org/wiki but i cannot
>> configure it.
>> 
>> Here is the console output:
>> 
>> bash-3.2$ ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
>> --libdir=/usr/lib --disable-static --enable-shared -disable-udev
> 
> What is the distro you are using and why do you want -disable-udev?
> What if you remove the -disable-udev?
> 
> The netlink support is not well tested as far as I know.

It works but it looks like in this case the headers are not usable. We really 
should stress that netlink support is only meant for situations where udev is 
not available. If udevd is running users should not use netlink support.

-Nathan
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


Re: [Libusbx-devel] Configure - Error with libusbx 1.0.16

2013-07-11 Thread Xiaofan Chen
On Fri, Jul 12, 2013 at 8:46 AM, Nathan Hjelm  wrote:
> On Jul 11, 2013, at 6:34 PM, Xiaofan Chen  wrote:
>> The netlink support is not well tested as far as I know.
>
> It works but it looks like in this case the headers are not usable. We really
> should stress that netlink support is only meant for situations where udev is
> not available. If udevd is running users should not use netlink support.
>

I agree.

Maybe it is also good to add an new configure option --disable-hotplug.
Or maybe use it to replace --disable-udev.


-- 
Xiaofan

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


Re: [Libusbx-devel] Configure - Error with libusbx 1.0.16

2013-07-11 Thread Xiaofan Chen
On Fri, Jul 12, 2013 at 8:34 AM, Xiaofan Chen  wrote:
> On Fri, Jul 12, 2013 at 2:34 AM, Jens Gutsche  wrote:
>> Hi,
>>
>> i have seen a new version on http://www.libusb.org/wiki but i cannot
>> configure it.
>>
>> Here is the console output:
>>
>> bash-3.2$ ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
>> --libdir=/usr/lib --disable-static --enable-shared -disable-udev

BTW, there is a typo. "-disable-udev" should be "--disable-udev".

> What is the distro you are using and why do you want -disable-udev?
> What if you remove the -disable-udev?
>
> The netlink support is not well tested as far as I know.

>From config.log, the distro is Ubuntu 12.04, you should not  use
--disable-udev at all.




-- 
Xiaofan

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel