Phil DeBoest
2006-Jul-22 17:25 UTC
[Nut-upsuser] Error during make: *** No rule to make target `usb.h', needed by `tripplite-hid.o'. Stop.
I downloaded the latest development tree (revision 471), ran configure with the following command: ./configure --with-user=nut --with-drivers=tripplite-hid make The common directory is built normally, then when it tries to make the drivers, I get this error: make[1]: *** No rule to make target `usb.h', needed by `tripplite-hid.o'. Stop. I get this error when I try to build any usb or hid driver. When I try: ./configure --with-user=nut make make usb I get: make[1]: *** No rule to make target `usb.h', needed by `newhidups.o'. Stop. The operating system I want to run it on is Slackware 10.1, though have tried building it on a Slackware 10.2 and even a SimplyMepis 6.0 (Ubuntu Dapper) box with the same results. Any suggestions would be appreciated. Phil Here is the output of the configure command: checking NUT version... 2.1.0 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/ginstall -c checking for egrep... grep -E checking for ar... /usr/bin/ar checking for ranlib... ranlib checking for inline... inline checking for flock... yes checking for lockf... yes checking for fcvt... yes checking for fcvtl... no checking for cfsetispeed... yes checking for tcsendbreak... yes checking for seteuid... yes checking for setsid... yes checking for getpassphrase... no checking for vsnprintf... yes checking for snprintf... yes checking for setenv... yes checking for inet_aton... yes checking for strerror... yes checking for atexit... yes checking whether byte ordering is bigendian... no checking for getopt declarations... in unistd.h checking whether to use uu_lock... no checking for connect... yes checking sys/modem.h usability... no checking sys/modem.h presence... no checking for sys/modem.h... no checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking varargs.h usability... no checking varargs.h presence... no checking for varargs.h... no checking sys/termios.h usability... yes checking sys/termios.h presence... yes checking for sys/termios.h... yes checking whether time.h and sys/time.h may both be included... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for socklen_t... yes checking stdint.h usability... yes checking stdint.h presence... yes checking for stdint.h... yes checking for uint16_t... yes checking for stdint.h... (cached) yes checking for uint8_t... yes checking whether to enable SSL development code... no checking for gd version via gdlib-config... not found checking for gd include flags... using defaults checking for gd library flags... using defaults checking whether to build CGI programs... no checking for Net-SNMP cflags... not found checking for Net-SNMP libs... not found checking for libusb cflags... checking for libusb libs... -L/usr/lib -lusb checking for usb_detach_kernel_driver_np in -lusb... yes checking for Linux hiddev.h... using default: /usr/include/linux/hiddev.h checking state path... using default: /var/state/ups checking alt pid path... using default: /var/state/ups checking driver path... using default checking cgi path... using default checking html path... using default checking pidpath... using default: /var/run checking network port number... using default value: 3493 checking user to run as... nut checking facility for syslog... using default value: LOG_DAEMON checking which drivers to build... tripplite-hid checking whether to strip debug symbols... no checking whether to enable pkg-config support... yes checking for long long... yes configure: creating ./config.status config.status: creating clients/Makefile config.status: creating conf/Makefile config.status: creating data/Makefile config.status: creating data/html/Makefile config.status: creating data/html/header.html config.status: creating drivers/Makefile config.status: creating server/Makefile config.status: creating Makefile config.status: creating common/Makefile config.status: creating man/Makefile config.status: creating lib/Makefile config.status: creating lib/libupsclient-config config.status: creating lib/libupsclient.pc config.status: creating scripts/hotplug/libhidups config.status: creating include/config.h config.status: include/config.h is unchanged And the output of the make command: common/ make[1]: Entering directory `/usr/local/src/nut/common' gcc -I../include -O -Wall -Wsign-compare -c -o common.o common.c gcc -I../include -O -Wall -Wsign-compare -c -o upsconf.o upsconf.c gcc -I../include -O -Wall -Wsign-compare -c -o parseconf.o parseconf.c gcc -I../include -O -Wall -Wsign-compare -c -o state.o state.c make[1]: Leaving directory `/usr/local/src/nut/common' drivers/ make[1]: Entering directory `/usr/local/src/nut/drivers' make[1]: *** No rule to make target `usb.h', needed by `tripplite-hid.o'. Stop. make[1]: Leaving directory `/usr/local/src/nut/drivers' make: *** [build] Error 1
Kjell Claesson
2006-Jul-23 09:28 UTC
[Nut-upsuser] Error during make: *** No rule to make target `usb.h', needed by `tripplite-hid.o'. Stop.
Hi Phil. l?r 2006-07-22 klockan 12:25 -0500 skrev Phil DeBoest:> I downloaded the latest development tree (revision 471), ran configure > with the following command: > ./configure --with-user=nut --with-drivers=tripplite-hid > make > > The common directory is built normally, then when it tries to make the > drivers, I get this error: > make[1]: *** No rule to make target `usb.h', needed by > `tripplite-hid.o'. Stop. > > I get this error when I try to build any usb or hid driver. When I try: > ./configure --with-user=nut > make > make usb > > I get: > make[1]: *** No rule to make target `usb.h', needed by `newhidups.o'. Stop. > > The operating system I want to run it on is Slackware 10.1, though have > tried building it on a Slackware 10.2 and even a SimplyMepis 6.0 (Ubuntu > Dapper) box with the same results. > > Any suggestions would be appreciated. >It looks like the Makefile.drvbuild have to be regenerated. When you have done the config, cd into the driver directory and run 'make depend'. Then 'cd ..' and do the 'make' and 'make usb'. Now it should build. It bombs out on the make as the target is an usb driver. But it builds on the 'make usb'. Regards Kjell