Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^7: Problem make'ing Device::USB on osx Snow Leopard 10.6.2

by nick.fox (Novice)
on Jan 21, 2010 at 23:18 UTC ( #818840=note: print w/replies, xml ) Need Help??


in reply to Re^6: Problem make'ing Device::USB on osx Snow Leopard 10.6.2
in thread Problem make'ing Device::USB on osx Snow Leopard 10.6.2

I have a fairly recent version of the Developer tools as my laptop is only a few months old and i installed xcode more recently.

Secondly, I have now managed to install libusb-legacy using MacPorts and Make now works for Device::USB and it compiles! WOO! .. or so it seems..

However, on execution of the dump_usb.pl script included with Device::USB it becomes apparent that it has not compiled correctly! gah, i cant win.

The following is ./configure > make > sudo make install > ./dump_usb.pl

Checking if your kit is complete... Looks good Writing Makefile for Device::USB cp USB.pm blib/lib/Device/USB.pm cp lib/Device/USB/DevEndpoint.pm blib/lib/Device/USB/DevEndpoint.pm cp lib/Device/USB/Device.pm blib/lib/Device/USB/Device.pm Skip blib/lib/Device/USB.pm (unchanged) cp lib/Device/USB/Bus.pm blib/lib/Device/USB/Bus.pm cp lib/Device/USB/DevInterface.pm blib/lib/Device/USB/DevInterface.pm cp lib/Device/USB/FAQ.pod blib/lib/Device/USB/FAQ.pod cp dump_usb.pl blib/lib/Device/dump_usb.pl cp lib/Device/USB/DevConfig.pm blib/lib/Device/USB/DevConfig.pm /usr/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MDevice::USB -e1 0.31 b +lib/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 Note (probably harmless): No library found for -lusb Writing Makefile for Device::USB Finished "perl Makefile.PL" Stage Starting "make" Stage /usr/bin/perl /System/Library/Perl/5.10.0/ExtUtils/xsubpp -typemap /S +ystem/Library/Perl/5.10.0/ExtUtils/typemap USB.xs > USB.xsc && mv U +SB.xsc USB.c gcc-4.2 -c -I/Users/nick/.cpan/build/Device-USB-0.31-TDsdQM -I"/opt/l +ocal/include/libusb-legacy/" -arch x86_64 -arch i386 -arch ppc -g -pi +pe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/includ +e -Os -DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" "-I/System/Library/ +Perl/5.10.0/darwin-thread-multi-2level/CORE" USB.c USB.xs: In function ‘libusb_get_string’: USB.xs:172: warning: format ‘%u’ expects type ‘unsigned int’, but argu +ment 5 has type ‘size_t’ USB.xs: In function ‘libusb_get_string_simple’: USB.xs:183: warning: format ‘%u’ expects type ‘unsigned int’, but argu +ment 4 has type ‘size_t’ USB.xs: In function ‘libusb_get_string’: USB.xs:172: warning: format ‘%u’ expects type ‘unsigned int’, but argu +ment 5 has type ‘size_t’ USB.xs: In function ‘libusb_get_string_simple’: USB.xs:183: warning: format ‘%u’ expects type ‘unsigned int’, but argu +ment 4 has type ‘size_t’ USB.xs: In function ‘libusb_get_string’: USB.xs:172: warning: format ‘%u’ expects type ‘unsigned int’, but argu +ment 5 has type ‘size_t’ USB.xs: In function ‘libusb_get_string_simple’: USB.xs:183: warning: format ‘%u’ expects type ‘unsigned int’, but argu +ment 4 has type ‘size_t’ Running Mkbootstrap for Device::USB () chmod 644 USB.bs rm -f blib/arch/auto/Device/USB/USB.bundle gcc-4.2 -mmacosx-version-min=10.6 -arch x86_64 -arch i386 -arch ppc - +bundle -undefined dynamic_lookup -L/usr/local/lib USB.o -o blib/arch +/auto/Device/USB/USB.bundle \ \ 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 Files found in blib/arch: installing files in blib/lib into architectu +re dependent library tree Installing /Users/nick/.cpan/build/Device-USB-0.31-TDsdQM/blib/arch/au +to/Device/USB/USB.bs Installing /Users/nick/.cpan/build/Device-USB-0.31-TDsdQM/blib/arch/au +to/Device/USB/USB.bundle 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 office-237-50:usbPanicBtn nick$ cd /Users/nick/.cpan/build/Device-USB- +0.31-TDsdQM office-237-50:Device-USB-0.31-TDsdQM nick$ ls Changes MANIFEST.SKIP Makefile README USB.pm + blib lib t MANIFEST META.yml Makefile.PL USB.inl _Inline d +ump_usb.pl pm_to_blib office-237-50:Device-USB-0.31-TDsdQM nick$ chmod +x dump_usb.pl chmod: Unable to change file mode on dump_usb.pl: Operation not permit +ted office-237-50:Device-USB-0.31-TDsdQM nick$ sudo chmod +x dump_usb.pl office-237-50:Device-USB-0.31-TDsdQM nick$ make install Files found in blib/arch: installing files in blib/lib into architectu +re dependent library tree !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/usr/local/share/man/man3' Do not have write permissions on '/usr/local/share/man/man3' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at -e line 1 make: *** [pure_site_install] Error 13 office-237-50:Device-USB-0.31-TDsdQM nick$ sudo make install Password: Files found in blib/arch: installing files in blib/lib into architectu +re dependent library tree Installing /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/Device +/USB/USB.bundle Installing /usr/local/share/man/man3/Device::dump_usb.3pm Installing /usr/local/share/man/man3/Device::USB.3pm Installing /usr/local/share/man/man3/Device::USB::Bus.3pm Installing /usr/local/share/man/man3/Device::USB::DevConfig.3pm Installing /usr/local/share/man/man3/Device::USB::DevEndpoint.3pm Installing /usr/local/share/man/man3/Device::USB::Device.3pm Installing /usr/local/share/man/man3/Device::USB::DevInterface.3pm Installing /usr/local/share/man/man3/Device::USB::FAQ.3pm Appending installation info to /Library/Perl/Updates/5.10.0/darwin-thr +ead-multi-2level/perllocal.pod office-237-50:Device-USB-0.31-TDsdQM nick$ ./dump_usb.pl Had problems bootstrapping Inline module 'Device::USB' Can't load '/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/Devic +e/USB/USB.bundle' for module Device::USB: dlopen(/Library/Perl/5.10.0 +/darwin-thread-multi-2level/auto/Device/USB/USB.bundle, 1): Symbol no +t found: _usb_busses Referenced from: /Library/Perl/5.10.0/darwin-thread-multi-2level/aut +o/Device/USB/USB.bundle Expected in: flat namespace in /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/Device/USB/US +B.bundle at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/Dy +naLoader.pm line 207, <DATA> line 1. at /Library/Perl/5.10.0/Inline.pm line 504 at /Library/Perl/5.10.0/darwin-thread-multi-2level/Device/USB.pm line + 20 Compilation failed in require at ./dump_usb.pl line 3, <DATA> line 1. BEGIN failed--compilation aborted at ./dump_usb.pl line 3, <DATA> line + 1.

Replies are listed 'Best First'.
Re^8: Problem make'ing Device::USB on osx Snow Leopard 10.6.2
by dHarry (Abbot) on Jan 22, 2010 at 08:32 UTC

    Hmm strange, so far I installed everything with ease on my Mac. After a sudo bash and cpan install it installed all modules without any problem.... so far. For Device::USB I also encounter errors, I'll spend some more time on it.

    Cheers

    Harry

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://818840]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-04-25 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?