Although I have managed to get owhttpd/owlib to compile (as noted below), it will not work with my USB interface (DS9490R-A). I've noted my tribulations below, and am hoping there is some easy solution. I know USB works under Mac OS X, so I'm really hoping to see it work in FreeBSD as well.
I have a debian box that works fine (as a test), but I prefer FreeBSD for my embedded platforms. Issues: - Doesn't compile without setting __BSD_VISIBLE to 1 - USB communication doesn't work - Binds to TCP6 instead of TCP4 (per netstat) -- When trying to compile under FreeBSD 6.1 the make fails because of the include file sys/file.h.? ? ./configure reports this:? ? checking for string.h... (cached) yes? checking sys/file.h usability... no? checking sys/file.h presence... yes? configure: WARNING: sys/file.h: present but cannot be compiled? configure: WARNING: sys/file.h: check for missing prerequisite headers?? configure: WARNING: sys/file.h: see the Autoconf documentation? configure: WARNING: sys/file.h: section "Present But Cannot Be Compiled"? configure: WARNING: sys/file.h: proceeding with the preprocessor's result? configure: WARNING: sys/file.h: in the future, the compiler will take precedence? configure: WARNING: ## ------------------------------------------ ##? configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##? configure: WARNING: ## ------------------------------------------ ##? checking for sys/file.h... yes? ? Make:? ? gcc -DHAVE_CONFIG_H -I. -I. -I../../../../src/include -I/usr/local/include -I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_BITS=64 -D__EXTENSIONS__ -g -O2 -D_THREAD_SAFE -pthread -D_XOPEN_SOURCE=500 -MT compat.lo -MD -MP -MF .deps/compat.Tpo -c compat.c -fPIC -DPIC -o .libs/compat.o? In file included from ../include/ow.h:102,? from compat.c:14:? /usr/include/sys/file.h:154: error: syntax error before "u_int"? *** Error code 1? If I use the following directive, everthing will compile: #define __BSD_VISIBLE 1? before a call to sys/type.h will correct this issue. I added it to ow.h and it now compiles (who know if I broke anything...).? I do get a log of these messages during the compile:? ? /usr/local/include/usb.h:285: warning: declaration of 'index' shadows a global declaration? /usr/include/strings.h:50: warning: shadowed declaration is here? Once it's compiled as above, with libusb installed, I get the following error when running:? ? testbox# owhttpd -p 3001 --error_print 2 --error_level 4 -u -F? CALL: PARSENAME path=[]? CONNECT: Adapter found: /dev/usb0//dev/ugen0? DEFAULT: Opened USB DS9490 adapter at /dev/usb0//dev/ugen0.? DEFAULT: DS9490_open: usb_clear_halt failed ret=1? DATA: BUS_first: No data will be returned? DATA: DS9490_reset? DATA: BUS_first failed during connect [-1/-1]? ? -- View this message in context: http://www.nabble.com/FreeBSD-6.1-Troubles...-tf1969732.html#a5407184 Sent from the OWFS - Dev forum at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
