Thank you.
On 6/15/06, Jochen Frieling <[EMAIL PROTECTED]> wrote:
> Problem: Trying to compile owfs-2.4p1 w/o usb support:
>
> gcc -I../include -I../../../owlib/src/include -fexceptions -Wall -W
> -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion
> -Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_BITS=64 -g -O2 -o
> .libs/owhttpd owhttpd.o owhttpd_handler.o owhttpd_present.o
> owhttpd_write.o owhttpd_read.o owhttpd_dir.o owhttpd_favicon.o
> -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/opt/owfs/lib
> -L/home/ptxdist/owfs-2.4p1/module/owlib/src/c -pthread
> /home/ptxdist/owfs-2.4p1/module/owlib/src/c/.libs/libow.so -lpthread
> -Wl,--rpath -Wl,/opt/owfs/lib
> /home/ptxdist/owfs-2.4p1/module/owlib/src/c/.libs/libow.so: undefined
> reference to `altUSB'
> collect2: ld returned 1 exit status
>
> Fix: only use the "altUSB" variable if we have usb support activated
>
> --- owfs-2.4p1/module/owlib/src/c/ow_opt.c 2006-06-08 04:53:51.000000000
> +0200
> +++ owfs-2.4p1.patched/module/owlib/src/c/ow_opt.c 2006-06-15
> 15:44:41.000000000 +0200
> @@ -80,7 +80,9 @@
> {"LINK", no_argument, &LINK_mode,1}, /* link in ascii mode */
> {"nolink", no_argument, &LINK_mode,0}, /* link not in ascii mode */
> {"NOLINK", no_argument, &LINK_mode,0}, /* link not in ascii mode */
> +#if OW_USB
> {"altUSB", no_argument, &altUSB, 1}, /* Willy Robison's tweaks */
> +#endif
> {0,0,0,0},
> } ;
>
>
>
>
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers