On Tue, Jun 5, 2012 at 9:38 PM, Pete Batard <[email protected]> wrote: >> What about pthread? I just tried to build libusbx-1.0.11 >> release under Ubuntu 8.04 (already obsoleted) and it >> gives error. I am not saying that libusbx needs to be fixed >> to suit for older distros but just wondering what is the >> minimum pthread (or glibc) version required. > > Again, if it's more than 3 years old, then the minimum version is > whatever comes after the one we get a report doesn't work. > In this case, that's the version after the pthread version of Ubuntu > 8.0.4, and that's what we should report on the wiki. >
I think there is a bit of problem here, apparently it requires quite recent glibc. I just tested Ubuntu 10.04 LTS which is still supported and I get the same problem. mcuee@Ubuntu1004X64VM:~/Desktop/build/libusbx/libusbx$ make -i make all-recursive make[1]: Entering directory `/home/mcuee/Desktop/build/libusbx/libusbx' Making all in libusb make[2]: Entering directory `/home/mcuee/Desktop/build/libusbx/libusbx/libusb' CC libusb_1_0_la-threads_posix.lo os/threads_posix.c: In function ‘usbi_mutex_init_recursive’: os/threads_posix.c:53: error: implicit declaration of function ‘pthread_mutexattr_settype’ os/threads_posix.c:53: error: ‘PTHREAD_MUTEX_RECURSIVE’ undeclared (first use in this function) os/threads_posix.c:53: error: (Each undeclared identifier is reported only once os/threads_posix.c:53: error: for each function it appears in.) make[2]: [libusb_1_0_la-threads_posix.lo] Error 1 (ignored) CCLD libusb-1.0.la libtool: link: `libusb_1_0_la-threads_posix.lo' is not a valid libtool object make[2]: [libusb-1.0.la] Error 1 (ignored) make[2]: Leaving directory `/home/mcuee/Desktop/build/libusbx/libusbx/libusb' Making all in doc make[2]: Entering directory `/home/mcuee/Desktop/build/libusbx/libusbx/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/mcuee/Desktop/build/libusbx/libusbx/doc' Making all in examples make[2]: Entering directory `/home/mcuee/Desktop/build/libusbx/libusbx/examples' CC listdevs.o make[2]: *** No rule to make target `../libusb/libusb-1.0.la', needed by `listdevs'. Stop. make[2]: Leaving directory `/home/mcuee/Desktop/build/libusbx/libusbx/examples' make[1]: [all-recursive] Error 1 (ignored) make[1]: Leaving directory `/home/mcuee/Desktop/build/libusbx/libusbx' Ubuntu 10.04 comes with glibc 2.11.1 which is released on 29-Dec-2009. -- Xiaofan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libusbx-devel
