Thread Device::USB Abhängigkeiten. (17 answers)
Opened by USB at 2009-03-30 14:31

Gast USB
 2009-04-01 20:04
#120133 #120133
Nein, sind nicht geheim - aber irgendwie nicht mehr wichtig.
Leider habe ich von "make" kaum eine Ahnung, aber von meinen "C in 21 Tagen"-Kenntnissen her würde ich als Feherlursache auf die falsche Headerdatei tippen.

[code]
...
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
make[1]: Entering directory `/home/mm/.cpan/build/Device-USB-0.28-cjygpi/_Inline/build/Device/USB'
/usr/bin/perl /usr/lib/perl5/5.10.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap USB.xs > USB.xsc && mv USB.xsc USB.c
cc -c -I/home/mm/.cpan/build/Device-USB-0.28-cjygpi -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" -fPIC "-I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE" USB.c
In file included from USB.xs:6:
/usr/include/usb.h:4:35: error: linux/mod_devicetable.h: Datei oder Verzeichnis nicht gefunden
USB.xs: In function ‘libusb_init’:
USB.xs:12: warning: implicit declaration of function ‘usb_init’
USB.xs: In function ‘libusb_find_busses’:
USB.xs:17: warning: implicit declaration of function ‘usb_find_busses’
...
...
USB.xs: In function ‘lib_debug_mode’:
USB.xs:552: warning: implicit declaration of function ‘usb_set_debug’
make[1]: *** [USB.o] Fehler 1
make[1]: Leaving directory `/home/mm/.cpan/build/Device-USB-0.28-cjygpi/_Inline/build/Device/USB'

A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
make

The build directory was:
/home/mm/.cpan/build/Device-USB-0.28-cjygpi/_Inline/build/Device/USB

To debug the problem, cd to the build directory, and inspect the output files.

at /home/mm/.cpan/build/Device-USB-0.28-cjygpi/blib/lib/Device/USB.pm line 20
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [USB.inl] Fehler 25

View full thread Device::USB Abhängigkeiten.