Skip Menu |

This queue is for tickets about the Device-USB CPAN distribution.

Report information
The Basics
Id: 53802
Status: open
Worked: 5 min
Priority: 0/
Queue: Device-USB

People
Owner: cpan.wade [...] anomaly.org
Requestors: ed_hartouni [...] comcast.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: failed to install
Date: Mon, 18 Jan 2010 12:50:05 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>

Message body is not shown because it is too large.

Most of the cases I've seen where someone had difficulty installing on Mac OSX, the problem was the version of libusb currently installed. Apparently, OSX ships with a pretty old version of libusb. The documentation on the project home page (http://code.google.com/p/perl-device-usb/wiki/Home) shows where to get the updated library. If this does not fix your installation problem, feel free to contact me through RT. G. Wade
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Mon, 18 Jan 2010 16:19:43 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>
the Sourceforge libusb installs as /usr/local/lib/libusb-1.0.0.a etc... your Makefile.PL wants to see /usr/local/lib/libusb.a I can go in and rename everything?... similarly the include files by Sourceforge /usr/local/include/ libusb-1.0/libusb.h copying it in the same folder as usb.h and LIBUSB_INCLIB=/usr/local/ include/libusb-1.0 seems to work... On Jan 18, 2010, at 2:40 PM, G. Wade Johnson via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=53802 > > > Most of the cases I've seen where someone had difficulty installing on > Mac OSX, the problem was the version of libusb currently installed. > Apparently, OSX ships with a pretty old version of libusb. > > The documentation on the project home page > (http://code.google.com/p/perl-device-usb/wiki/Home) shows where to > get > the updated library. > > If this does not fix your installation problem, feel free to contact > me > through RT. > > G. Wade
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Mon, 18 Jan 2010 16:37:16 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>
renamed the files... got a successful completion of perl Makefile.PL but the same problems when executing make do I have to remake and reinstall Inline? e.g. ed-hartounis-imac:Device-USB-0.31 hartouni1$ sudo make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load......................... # Failed test 'use Device::USB;' # in t/00-load.t at line 8. # Tried to use 'Device::USB'. # Error: Had problems bootstrapping Inline module 'Device::USB' # # Can't load '/Users/hartouni1/Downloads/Device-USB-0.31/blib/arch/ auto/Device/USB/USB.bundle' for module Device::USB: dlopen(/Users/ hartouni1/Downloads/Device-USB-0.31/blib/arch/auto/Device/USB/ USB.bundle, 2): Symbol not found: _usb_busses # Referenced from: /Users/hartouni1/Downloads/Device-USB-0.31/blib/ arch/auto/Device/USB/USB.bundle # Expected in: dynamic lookup # at /Library/Perl/5.8.8/Inline.pm line 504 # # # at /Users/hartouni1/Downloads/Device-USB-0.31/blib/lib/Device/ USB.pm line 20 # Compilation failed in require at (eval 3) line 2, <DATA> line 1. # BEGIN failed--compilation aborted at t/00-load.t line 8. Use of uninitialized value in concatenation (.) or string at t/00- load.t line 11, <DATA> line 1. # Testing Device::USB , Perl 5.008008, /usr/bin/perl # Looks like you failed 1 test of 1. t/00-load.........................dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/01-create-usb...................Had problems bootstrapping Inline module 'Device::USB' Can't load '/Users/hartouni1/Downloads/Device-USB-0.31/blib/arch/auto/ Device/USB/USB.bundle' for module Device::USB: dlopen(/Users/hartouni1/ Downloads/Device-USB-0.31/blib/arch/auto/Device/USB/USB.bundle, 2): Symbol not found: _usb_busses Referenced from: /Users/hartouni1/Downloads/Device-USB-0.31/blib/ arch/auto/Device/USB/USB.bundle Expected in: dynamic lookup at /Library/Perl/5.8.8/Inline.pm line 504 On Jan 18, 2010, at 2:40 PM, G. Wade Johnson via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=53802 > > > Most of the cases I've seen where someone had difficulty installing on > Mac OSX, the problem was the version of libusb currently installed. > Apparently, OSX ships with a pretty old version of libusb. > > The documentation on the project home page > (http://code.google.com/p/perl-device-usb/wiki/Home) shows where to > get > the updated library. > > If this does not fix your installation problem, feel free to contact > me > through RT. > > G. Wade
Hello, On Mon Jan 18 19:37:35 2010, ed_hartouni@comcast.net wrote: Show quoted text
> renamed the files... > got a successful completion of > perl Makefile.PL > > but the same problems when executing > > make > > > do I have to remake and reinstall Inline?
I don't think so. Show quoted text
> e.g. > > ed-hartounis-imac:Device-USB-0.31 hartouni1$ sudo make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00-load......................... > # Failed test 'use Device::USB;' > # in t/00-load.t at line 8. > # Tried to use 'Device::USB'. > # Error: Had problems bootstrapping Inline module 'Device::USB' > # > # Can't load '/Users/hartouni1/Downloads/Device-USB-0.31/blib/arch/ > auto/Device/USB/USB.bundle' for module Device::USB: dlopen(/Users/ > hartouni1/Downloads/Device-USB-0.31/blib/arch/auto/Device/USB/ > USB.bundle, 2): Symbol not found: _usb_busses > # Referenced from: /Users/hartouni1/Downloads/Device-USB-0.31/blib/ > arch/auto/Device/USB/USB.bundle > # Expected in: dynamic lookup > # at /Library/Perl/5.8.8/Inline.pm line 504 > # > # > # at /Users/hartouni1/Downloads/Device-USB-0.31/blib/lib/Device/ > USB.pm line 20 > # Compilation failed in require at (eval 3) line 2, <DATA> line 1. > # BEGIN failed--compilation aborted at t/00-load.t line 8. > Use of uninitialized value in concatenation (.) or string at t/00- > load.t line 11, <DATA> line 1. > # Testing Device::USB , Perl 5.008008, /usr/bin/perl > # Looks like you failed 1 test of 1. > t/00-load.........................dubious > Test returned status 1 (wstat 256, 0x100) > DIED. FAILED test 1 > Failed 1/1 tests, 0.00% okay > t/01-create-usb...................Had problems bootstrapping Inline > module 'Device::USB' > > Can't load '/Users/hartouni1/Downloads/Device-USB-0.31/blib/arch/auto/ > Device/USB/USB.bundle' for module Device::USB: dlopen(/Users/hartouni1/ > Downloads/Device-USB-0.31/blib/arch/auto/Device/USB/USB.bundle, 2): > Symbol not found: _usb_busses > Referenced from: /Users/hartouni1/Downloads/Device-USB-0.31/blib/ > arch/auto/Device/USB/USB.bundle > Expected in: dynamic lookup > at /Library/Perl/5.8.8/Inline.pm line 504
My guess, based on the comments above, is that the Inline::C process did not complete properly the first time. But, nothing has cleaned out the debris, so it is continuing to fail. I would suggest doing a "make clean" and then doing the normal installation perl Makefile.PL make make test The clean step should remove the (failed) compiled code, and then the full process should rebuild with the new libraries. As for the library names, I know the common practice in the Linux would is for library installation to use symlinks to connect a generic name to the library with the full version number. Copying should work as well. G. Wade
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Mon, 18 Jan 2010 17:39:20 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>

Message body is not shown because it is too large.

On Mon Jan 18 20:39:39 2010, ed_hartouni@comcast.net wrote: Show quoted text
> should have thought of that.... little rusty... > but after
---[snip]--- Show quoted text
> USB.xs:16: error: conflicting types for ‘libusb_init’ > /usr/local/include/usb.h:768: error: previous declaration of > ‘libusb_init’ was hereUSB.xs:16: error: conflicting types for > ‘libusb_init’
This didn't make any sense at first, but now everything is clear. Device::USB is written to the 0.1.* version of the libusb library. You have installed the 1.0 version of the library. Work on 1.0 had been stalled for a few years and I wasn't paying attention when it became the recommended version. To use Device::USB, you will need to install the legacy version of libusb (http://sourceforge.net/projects/libusb/files/libusb-0.1%20(LEGACY)/0.1.12/). Now, it looks like I will need to start work on the new 1.0 version of Device::USB. I'm sorry I don't have better news.
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Mon, 18 Jan 2010 20:25:36 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>
thanks for the help! ok but make test seemed to find some issues... ed-hartounis-imac:Device-USB-0.31 hartouni1$ make Skip blib/lib/Device/USB.pm (unchanged) Skip blib/lib/Device/USB/DevEndpoint.pm (unchanged) Skip blib/lib/Device/USB/Device.pm (unchanged) Skip blib/lib/Device/USB.pm (unchanged) Skip blib/lib/Device/USB/Bus.pm (unchanged) Skip blib/lib/Device/USB/DevInterface.pm (unchanged) Skip blib/lib/Device/USB/FAQ.pod (unchanged) Skip blib/lib/Device/dump_usb.pl (unchanged) Skip blib/lib/Device/USB/DevConfig.pm (unchanged) /usr/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MDevice::USB -e1 0.31 blib/arch Starting Build Preprocess Stage Finished Build Preprocess Stage Starting Build Parse Stage Finished Build Parse Stage Starting Build Glue 1 Stage Permission denied at /Users/hartouni1/Downloads/Device-USB-0.31/blib/ lib/Device/USB.pm line 20 Compilation failed in require. BEGIN failed--compilation aborted. make: *** [USB.inl] Error 13 ed-hartounis-imac:Device-USB-0.31 hartouni1$ sudo make /usr/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MDevice::USB -e1 0.31 blib/arch Starting Build Preprocess Stage Finished Build Preprocess Stage Starting Build Parse Stage Finished Build Parse Stage Starting Build Glue 1 Stage Finished Build Glue 1 Stage Starting Build Glue 2 Stage Finished Build Glue 2 Stage Starting Build Glue 3 Stage Finished Build Glue 3 Stage Starting Build Compile Stage Starting "perl Makefile.PL" Stage Writing Makefile for Device::USB Finished "perl Makefile.PL" Stage Starting "make" Stage /usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -typemap / System/Library/Perl/5.8.8/ExtUtils/typemap USB.xs > USB.xsc && mv USB.xsc USB.c cc -c -I/Users/hartouni1/Downloads/Device-USB-0.31 -arch ppc -arch i386 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict- aliasing -Wdeclaration-after-statement -I/usr/local/include -O3 - DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" "-I/System/Library/Perl/5.8.8/ darwin-thread-multi-2level/CORE" USB.c Running Mkbootstrap for Device::USB () chmod 644 USB.bs rm -f blib/arch/auto/Device/USB/USB.bundle LD_RUN_PATH="/usr/local/lib" cc -mmacosx-version-min=10.5.7 -arch ppc -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib USB.o - o blib/arch/auto/Device/USB/USB.bundle \ -lusb \ ld warning: in /usr/local/lib/libusb.dylib, file is not of required architecture chmod 755 blib/arch/auto/Device/USB/USB.bundle cp USB.bs blib/arch/auto/Device/USB/USB.bs chmod 644 blib/arch/auto/Device/USB/USB.bs Finished "make" Stage Starting "make install" Stage Installing /Users/hartouni1/Downloads/Device-USB-0.31/blib/arch/auto/ Device/USB/USB.bs Installing /Users/hartouni1/Downloads/Device-USB-0.31/blib/arch/auto/ Device/USB/USB.bundle Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Writing /Users/hartouni1/Downloads/Device-USB-0.31/blib/arch/auto/ Device/USB/.packlist Finished "make install" Stage Starting Cleaning Up Stage Finished Cleaning Up Stage Finished Build Compile Stage Manifying blib/man3/Device::USB::Device.3pm Manifying blib/man3/Device::USB::DevEndpoint.3pm Manifying blib/man3/Device::USB.3pm Manifying blib/man3/Device::USB::Bus.3pm Manifying blib/man3/Device::USB::DevInterface.3pm Manifying blib/man3/Device::USB::FAQ.3pm Manifying blib/man3/Device::dump_usb.3pm Manifying blib/man3/Device::USB::DevConfig.3pm ed-hartounis-imac:Device-USB-0.31 hartouni1$ sudo make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.........................ok 1/1# Testing Device::USB 0.31, Perl 5.008008, /usr/bin/perl t/00-load.........................ok t/01-create-usb...................ok t/02-find_busses_devices..........ok t/03-list_busses..................dubious Test returned status 0 (wstat 10, 0xa) t/04-find_device..................dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 4-8 Failed 5/8 tests, 37.50% okay t/05-find_device_if...............dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 3-11 Failed 9/11 tests, 18.18% okay t/06-list_devices.................dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 3-8 Failed 6/8 tests, 25.00% okay t/07-list_devices_if..............dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 5-11 Failed 7/11 tests, 36.36% okay t/08-get_busses...................dubious Test returned status 0 (wstat 10, 0xa) t/09-usb-bus......................dubious Test returned status 0 (wstat 10, 0xa) t/10-usb-device-accessors.........dubious Test returned status 0 (wstat 10, 0xa) t/11-usb-device-methods...........ok t/12-constants....................ok t/13-bus_find_device_if...........dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 2-8 Failed 7/8 tests, 12.50% okay t/14-bus_list_devices_if..........dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 2-10 Failed 9/10 tests, 10.00% okay t/15-usb_dev_configuration........dubious Test returned status 0 (wstat 10, 0xa) t/16-usb_dev_interface............dubious Test returned status 0 (wstat 10, 0xa) t/17-usb_dev_endpoint.............dubious Test returned status 0 (wstat 10, 0xa) t/18-usb_device-configurations....dubious Test returned status 0 (wstat 10, 0xa) t/boilerplate.....................ok t/pod-coverage....................skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage t/pod.............................skipped all skipped: Test::Pod 1.14 required for testing POD Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/03-list_busses.t 0 10 ?? ?? % ?? t/04-find_device.t 0 10 8 10 125.00% 4-8 t/05-find_device_if.t 0 10 11 18 163.64% 3-11 t/06-list_devices.t 0 10 8 12 150.00% 3-8 t/07-list_devices_if.t 0 10 11 14 127.27% 5-11 t/08-get_busses.t 0 10 ?? ?? % ?? t/09-usb-bus.t 0 10 ?? ?? % ?? t/10-usb-device-accessors.t 0 10 ?? ?? % ?? t/13-bus_find_device_if.t 0 10 8 14 175.00% 2-8 t/14-bus_list_devices_if.t 0 10 10 18 180.00% 2-10 t/15-usb_dev_configuration.t 0 10 ?? ?? % ?? t/16-usb_dev_interface.t 0 10 ?? ?? % ?? t/17-usb_dev_endpoint.t 0 10 ?? ?? % ?? t/18-usb_device-configurations.t 0 10 ?? ?? % ?? 2 tests skipped. Failed 14/22 test scripts, 36.36% okay. 38/86 subtests failed, 55.81% okay. make: *** [test_dynamic] Error 255 ed-hartounis-imac:Device-USB-0.31 hartouni1$ sudo make install Installing /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Device/ USB/USB.bundle Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Writing /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Device/ USB/.packlist Appending installation info to /Library/Perl/Updates/5.8.8/darwin- thread-multi-2level/perllocal.pod On Jan 18, 2010, at 8:06 PM, G. Wade Johnson via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=53802 > > > On Mon Jan 18 20:39:39 2010, ed_hartouni@comcast.net wrote:
>> should have thought of that.... little rusty... >> but after
> > ---[snip]--- >
>> USB.xs:16: error: conflicting types for ‘libusb_init’ >> /usr/local/include/usb.h:768: error: previous declaration of >> ‘libusb_init’ was hereUSB.xs:16: error: conflicting types for >> ‘libusb_init’
> > This didn't make any sense at first, but now everything is clear. > > Device::USB is written to the 0.1.* version of the libusb library. You > have installed the 1.0 version of the library. Work on 1.0 had been > stalled for a few years and I wasn't paying attention when it became > the > recommended version. > > To use Device::USB, you will need to install the legacy version of > libusb > (http://sourceforge.net/projects/libusb/files/libusb-0.1%20(LEGACY)/0.1.12/ > ). > > Now, it looks like I will need to start work on the new 1.0 version of > Device::USB. > > I'm sorry I don't have better news.
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Mon, 18 Jan 2010 20:28:36 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>
It's a start! found the USB device in the little test Perl that I wrote: ed-hartounis-imac:Desktop hartouni1$ perl usb-test.pl Device: 067B:2303 Manufactured by Prolific Technology Inc. Product: USB-Serial Controller D ---------------------------------------------------------------------------------------------------- #!/usr/bin/perl # use Device::USB; $VENDOR=0x067B; $PRODUCT=0x2303; my $usb = Device::USB->new(); my $dev = $usb->find_device($VENDOR, $PRODUCT); printf "Device: %04X:%04X\n", $dev->idVendor(), $dev->idProduct(); print "Manufactured by ",$dev->manufacturer(), "\n", " Product: ",$dev->product(), "\n"; On Jan 18, 2010, at 8:06 PM, G. Wade Johnson via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=53802 > > > On Mon Jan 18 20:39:39 2010, ed_hartouni@comcast.net wrote:
>> should have thought of that.... little rusty... >> but after
> > ---[snip]--- >
>> USB.xs:16: error: conflicting types for ‘libusb_init’ >> /usr/local/include/usb.h:768: error: previous declaration of >> ‘libusb_init’ was hereUSB.xs:16: error: conflicting types for >> ‘libusb_init’
> > This didn't make any sense at first, but now everything is clear. > > Device::USB is written to the 0.1.* version of the libusb library. You > have installed the 1.0 version of the library. Work on 1.0 had been > stalled for a few years and I wasn't paying attention when it became > the > recommended version. > > To use Device::USB, you will need to install the legacy version of > libusb > (http://sourceforge.net/projects/libusb/files/libusb-0.1%20(LEGACY)/0.1.12/ > ). > > Now, it looks like I will need to start work on the new 1.0 version of > Device::USB. > > I'm sorry I don't have better news.
On Mon Jan 18 23:26:01 2010, ed_hartouni@comcast.net wrote: Show quoted text
> thanks for the help!
Glad to help. [snip] Show quoted text
> /usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -typemap / > System/Library/Perl/5.8.8/ExtUtils/typemap USB.xs > USB.xsc && mv > USB.xsc USB.c > cc -c -I/Users/hartouni1/Downloads/Device-USB-0.31 -arch ppc -arch > i386 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict- > aliasing -Wdeclaration-after-statement -I/usr/local/include -O3 - > DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" "- > I/System/Library/Perl/5.8.8/ > darwin-thread-multi-2level/CORE" USB.c > Running Mkbootstrap for Device::USB () > chmod 644 USB.bs > rm -f blib/arch/auto/Device/USB/USB.bundle > LD_RUN_PATH="/usr/local/lib" cc -mmacosx-version-min=10.5.7 -arch ppc > -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib USB.o - > o blib/arch/auto/Device/USB/USB.bundle \ > -lusb \ > > ld warning: in /usr/local/lib/libusb.dylib, file is not of required > architecture
This looks promising. Is this the correct libusb shared library? The message seems to indicate that it is not. [snip] The error messages below are summarized by the test harness. To get a better chance of debugging them, I would need the full output. Try executing: sudo prove -v -b t/*.t 2>&1 | tee prove.out and send the prove.out file. It will contain everything printed by the tests. Show quoted text
> ed-hartounis-imac:Device-USB-0.31 hartouni1$ sudo make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00-load.........................ok 1/1# Testing Device::USB 0.31, > Perl 5.008008, /usr/bin/perl > t/00-load.........................ok > t/01-create-usb...................ok > t/02-find_busses_devices..........ok > t/03-list_busses..................dubious > Test returned status 0 (wstat 10, 0xa) > t/04-find_device..................dubious > Test returned status 0 (wstat 10, 0xa) > DIED. FAILED tests 4-8 > Failed 5/8 tests, 37.50% okay
[snip] I suspect that the shared library is not correct and that is generating all of the errors, but the dump will give more clues.
On Mon Jan 18 23:28:59 2010, ed_hartouni@comcast.net wrote: Show quoted text
> It's a start! > > found the USB device in the little test Perl that I wrote: > > ed-hartounis-imac:Desktop hartouni1$ perl usb-test.pl > Device: 067B:2303 > Manufactured by Prolific Technology Inc. > Product: USB-Serial Controller D >
---------------------------------------------------------------------------------------------------- Show quoted text
> #!/usr/bin/perl > # > use Device::USB; > > $VENDOR=0x067B; > $PRODUCT=0x2303; > > my $usb = Device::USB->new(); > my $dev = $usb->find_device($VENDOR, $PRODUCT); > printf "Device: %04X:%04X\n", $dev->idVendor(), $dev->idProduct(); > print "Manufactured by ",$dev->manufacturer(), "\n", > " Product: ",$dev->product(), "\n";
[snip] So, did you change something else since the last message? I wouldn't expect anything to work if those tests did not complete successfully.
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Tue, 19 Jan 2010 20:10:33 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>
yes, I ran that after without any other modifications... where should I run sudo prove -v -b t/*.t 2>&1 | tee prove.out from? What I got was: b...b does not exist FAILED--1 test script could be run, alas--no output ever seen On Jan 19, 2010, at 7:57 PM, G. Wade Johnson via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=53802 > > > On Mon Jan 18 23:28:59 2010, ed_hartouni@comcast.net wrote:
>> It's a start! >> >> found the USB device in the little test Perl that I wrote: >> >> ed-hartounis-imac:Desktop hartouni1$ perl usb-test.pl >> Device: 067B:2303 >> Manufactured by Prolific Technology Inc. >> Product: USB-Serial Controller D >>
> ----------------------------------------------------------------------------------------------------
>> #!/usr/bin/perl >> # >> use Device::USB; >> >> $VENDOR=0x067B; >> $PRODUCT=0x2303; >> >> my $usb = Device::USB->new(); >> my $dev = $usb->find_device($VENDOR, $PRODUCT); >> printf "Device: %04X:%04X\n", $dev->idVendor(), $dev->idProduct(); >> print "Manufactured by ",$dev->manufacturer(), "\n", >> " Product: ",$dev->product(), "\n";
> > [snip] > > So, did you change something else since the last message? I wouldn't > expect anything to work if those tests did not complete successfully. >
On Tue Jan 19 23:11:16 2010, ed_hartouni@comcast.net wrote: Show quoted text
> yes, I ran that after without any other modifications... > > where should I run > > sudo prove -v -b t/*.t 2>&1 | tee prove.out > > from?
Sorry. That wasn't very clear. Run it from the directory where you've been building Device::USB. From your previous messages, that looks like: /Users/hartouni1/Downloads/Device-USB-0.31/ The '-b' should include blib/lib and blib/arch in the include path so that you are running the code you just built. If that doesn't work, you could try: sudo prove -Iblib/lib -Iblib/arch -v t/*.t 2>&1 | tee prove.out which should have the same effect. As a last ditch effort, you can run each of the files under t as a perl script with perl -Iblib/lib -Iblib/arch t/xxx.t and capture the output. Are you sure the new libusb libraries are the one's the program is finding when you execute?
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Tue, 19 Jan 2010 20:35:26 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>
I'm not sure, but the test script didn't run previous to reloading the libusb... and the Perl I'm executing seems to have been modified... but I can't be sure. There is a libusb in the /sw/lib area... from Fink it is 0.1.4 (apparently) that could be confusing.... On Jan 19, 2010, at 8:26 PM, G. Wade Johnson via RT wrote: Show quoted text
> > Sorry. That wasn't very clear. Run it from the directory where you've > been building Device::USB. From your previous messages, that looks > like: > > /Users/hartouni1/Downloads/Device-USB-0.31/ > > The '-b' should include blib/lib and blib/arch in the include path so > that you are running the code you just built. If that doesn't work, > you > could try: > > sudo prove -Iblib/lib -Iblib/arch -v t/*.t 2>&1 | tee prove.out > > which should have the same effect. > > As a last ditch effort, you can run each of the files under t as a > perl > script with > > perl -Iblib/lib -Iblib/arch t/xxx.t > > and capture the output. > > Are you sure the new libusb libraries are the one's the program is > finding when you execute?
I'm not sure, but the test script didn't run previous to reloading the libusb...
and the Perl I'm executing seems to have been modified... but I can't be sure. There is a libusb in the /sw/lib area... from Fink it is 0.1.4 (apparently)
that could be confusing....



On Jan 19, 2010, at 8:26 PM, G. Wade Johnson via RT wrote:
Show quoted text

Sorry. That wasn't very clear. Run it from the directory where you've
been building Device::USB. From your previous messages, that looks like:

/Users/hartouni1/Downloads/Device-USB-0.31/

The '-b' should include blib/lib and blib/arch in the include path so
that you are running the code you just built. If that doesn't work, you
could try:

sudo prove -Iblib/lib -Iblib/arch -v t/*.t 2>&1 | tee prove.out

which should have the same effect.

As a last ditch effort, you can run each of the files under t as a perl
script with

 perl -Iblib/lib -Iblib/arch t/xxx.t

and capture the output.

Are you sure the new libusb libraries are the one's the program is
finding when you execute?


Download prove.out
application/octet-stream 4.9k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #53802] failed to install
Date: Tue, 19 Jan 2010 20:50:06 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>
I removed the Fink libusb rebuilt Device::USB and got the same sort of failures on test, e.g. [snip] Failed 14/22 test scripts, 36.36% okay. 38/86 subtests failed, 55.81% okay. make: *** [test_dynamic] Error 255 bash-3.2$ sudo make install Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Writing /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Device/ USB/.packlist Appending installation info to /Library/Perl/Updates/5.8.8/darwin- thread-multi-2level/perllocal.pod and reran the Perl script successfully... Show quoted text
> > Are you sure the new libusb libraries are the one's the program is > finding when you execute?
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Tue, 19 Jan 2010 22:52:10 -0600
To: bug-Device-USB [...] rt.cpan.org
From: "G. Wade Johnson" <gwadej [...] anomaly.org>
On Tue, 19 Jan 2010 23:35:54 -0500 "Edward Hartouni via RT" <bug-Device-USB@rt.cpan.org> wrote: Show quoted text
> Queue: Device-USB > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=53802 > > > I'm not sure, but the test script didn't run previous to reloading > the libusb... > and the Perl I'm executing seems to have been modified... but I > can't be sure. There is a libusb in the /sw/lib area... from Fink it > is 0.1.4 (apparently) > that could be confusing....
You should be able to use the ldd command to find out which shared libraries you are talking to. From the module directory as before, execute ldd blib/arch/auto/Device/USB/USB.so That should list all libraries this shared library links to (the extension may be different on a Mac). It may be that some other file is earlier in the shared library path and that's causing your problem. The test files show that we are failing each time we try to actually execute code from the library. This would be consistent with failure to load the library (and a host of other things, truth be told). G. Wade
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Tue, 19 Jan 2010 20:58:49 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>
no ldd, on OS X it's otool -L bash-3.2$ otool -L blib/arch/auto/Device/USB/USB.bundle blib/arch/auto/Device/USB/USB.bundle: /usr/local/lib/libusb-0.1.4.dylib (compatibility version 9.0.0, current version 9.4.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4) but also no USB.so bash-3.2$ ls blib/arch/auto/Device/USB/ USB.bs USB.bundle On Jan 19, 2010, at 8:52 PM, G. Wade Johnson via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=53802 > > > On Tue, 19 Jan 2010 23:35:54 -0500 > "Edward Hartouni via RT" <bug-Device-USB@rt.cpan.org> wrote: >
>> Queue: Device-USB >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=53802 > >> >> I'm not sure, but the test script didn't run previous to reloading >> the libusb... >> and the Perl I'm executing seems to have been modified... but I >> can't be sure. There is a libusb in the /sw/lib area... from Fink it >> is 0.1.4 (apparently) >> that could be confusing....
> > You should be able to use the ldd command to find out which shared > libraries you are talking to. > > From the module directory as before, execute > > ldd blib/arch/auto/Device/USB/USB.so > > That should list all libraries this shared library links to (the > extension may be different on a Mac). It may be that some other file > is > earlier in the shared library path and that's causing your problem. > > The test files show that we are failing each time we try to actually > execute code from the library. This would be consistent with failure > to > load the library (and a host of other things, truth be told). > > G. Wade >
Subject: Re: [rt.cpan.org #53802] failed to install
Date: Wed, 20 Jan 2010 21:29:52 -0800
To: bug-Device-USB [...] rt.cpan.org
From: Edward Hartouni <ed_hartouni [...] comcast.net>
Show quoted text
>I uninstalled the libusb from sourceforge and reinstalled the libusb
from Fink... to see if the other libraries would work. Show quoted text
> >when I set the environment variables:
ed-hartounis-imac:Device-USB-0.31 hartouni1$ export LIBUSB_LIBDIR=/sw/ lib ed-hartounis-imac:Device-USB-0.31 hartouni1$ export LIBUSB_INCDIR=/sw/ include Show quoted text
>I successfully see the libraries
ed-hartounis-imac:Device-USB-0.31 hartouni1$ ls $LIBUSB_INCDIR autosprintf.h cursesapp.h cursesp.h eti.h iconv.h localcharset.h ncurses_dll.h termcap.h usbpp.h bzlib.h cursesf.h cursesw.h etip.h libcharset.h menu.h panel.h unctrl.h curses.h cursesm.h cursslk.h form.h libintl.h ncurses.h term.h usb.h ed-hartounis-imac:Device-USB-0.31 hartouni1$ ls $LIBUSB_LIBDIR apt libasprintf.dylib libcurses.dylib libintl.la libusbpp-0.1.4.4.4.dylib dpkg libasprintf.la libform.dylib libmenu.dylib libusbpp-0.1.4.dylib fink libbz2.1.0.3.dylib libiconv.2.4.0.dylib libncurses.dylib libusbpp.a libapt-inst.1.0.0.dylib libbz2.1.dylib libiconv.2.dylib libpanel.dylib libusbpp.dylib libapt-inst.1.0.dylib libbz2.dylib libiconv.dylib libtermcap.dylib libusbpp.la libapt-pkg.3.2.0.dylib libcharset.1.0.0.dylib libiconv.la libusb-0.1.4.4.4.dylib ncurses libapt-pkg.3.2.dylib libcharset.1.dylib libintl.3.4.3.dylib libusb-0.1.4.dylib perl5 libasprintf.0.0.0.dylib libcharset.a libintl.3.dylib libusb.a pkgconfig libasprintf.0.dylib libcharset.dylib libintl.a libusb.dylib rmt libasprintf.a libcharset.la libintl.dylib libusb.la terminfo Show quoted text
>but Makefile.PL doesn't
ed-hartounis-imac:Device-USB-0.31 hartouni1$ sudo perl Makefile.PL ERROR: Can't find usb.h header. If the library is not installed, you will need to install it. If it is installed somewhere other than /usr or /usr/local, you need to set the following environment variables: LIBUSB_LIBDIR should contain the path to the libusb libraries LIBUSB_INCDIR should contain the path to the libusb include files On Jan 19, 2010, at 8:52 PM, G. Wade Johnson via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=53802 > > > On Tue, 19 Jan 2010 23:35:54 -0500 > "Edward Hartouni via RT" <bug-Device-USB@rt.cpan.org> wrote: >
>> Queue: Device-USB >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=53802 > >> >> I'm not sure, but the test script didn't run previous to reloading >> the libusb... >> and the Perl I'm executing seems to have been modified... but I >> can't be sure. There is a libusb in the /sw/lib area... from Fink it >> is 0.1.4 (apparently) >> that could be confusing....
> > You should be able to use the ldd command to find out which shared > libraries you are talking to. > > From the module directory as before, execute > > ldd blib/arch/auto/Device/USB/USB.so > > That should list all libraries this shared library links to (the > extension may be different on a Mac). It may be that some other file > is > earlier in the shared library path and that's causing your problem. > > The test files show that we are failing each time we try to actually > execute code from the library. This would be consistent with failure > to > load the library (and a host of other things, truth be told). > > G. Wade >