Christian Magnusson wrote:

I fixed this bug in the CVS… When you compile owfs without support for usb-adapters you get into this problem. It was a bug in ow_opt.c which tries to call the function DS9490_enumerate() which doesn’t exist if USB is disabled.

This was my fix for it in module/owlib/src/c/ow_opt.c

int OW_ArgUSB( const char * arg ) {

struct connection_in * in = NewIn(NULL) ;

if ( in==NULL ) return 1 ;

in->busmode = bus_usb ;

if ( arg == NULL ) {

in->connin.usb.usb_nr = 1 ;

} else if ( strcasecmp(arg,"all") == 0 ) {

int n ;

#ifdef OW_USB

n = DS9490_enumerate() ;

#else

n = 0 ;

#endif /* OW_USB */

------------------------------------------------------------------------

*Från:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *För *Darryl
*Skickat:* den 27 april 2006 04:08
*Till:* owfs-developers@lists.sourceforge.net
*Ämne:* Re: [Owfs-developers] 2.3p1 compile problems

After a make clean; I tried using bootstrap && configure && make and get what appears to be the same error.

There are no owfs processes or anything running.
-darryl

On 4/26/06, *Paul Alfille* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

I don't know the answer for sure. I can run configure without "bootstrap" and install 2.2p1 and then 2.3p1 without seeing the same error you had. One of the mysteries of shared libraries and the arcane autoconf/automake process.



Paul

On 4/26/06, *Darryl* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

Paul, just did a standard(?) ./configure then make. I didnt' realize you had to bootstrap on releases.
And yes the subject line was mislabeled sorry.

On 4/26/06, *Paul Alfille* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

Daryl,

The current version is 2.3p1, I think you just mislabeled the email. Your code snippet says 2.3p1

I just did a fresh download of the source. I can compile without errors.

It really looks like you are compiling against an old version of the library. (libow)

Could there be a version of the library locked in memory with a running process? Did you follow the ./bootstrap && ./configure && make ?


Paul

On 4/26/06, *Darryl* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

Hi,

Just tried to compile the latest owfs and got the following:

gcc -I../include -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=22 -I/usr/local/include -I../../../owlib/src/include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes -Wredundant-decls -DOW_MT -g -O2 -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/opt/owfs/lib -o .libs/owfs owfs.o owfs_callback.o fuse_line.o -L/home/darryl/owfs-2.3p1/module/owlib/src/c -pthread /home/darryl/owfs-2.3p1/module/owlib/src/c/.libs/libow.so -L/usr/local/lib /usr/local/lib/libfuse.so -lpthread -Wl,--rpath -Wl,/opt/owfs/lib -Wl,--rpath -Wl,/usr/local/lib /home/darryl/owfs-2.3p1/module/owlib/src/c/.libs/libow.so: undefined reference to `DS9490_enumerate'
collect2: ld returned 1 exit status
make[4]: *** [owfs] Error 1
make[4]: Leaving directory `/home/darryl/owfs- 2.3p1/module/owfs/src/c'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/darryl/owfs-2.3p1/module/owfs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/darryl/owfs- 2.3p1/module/owfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/darryl/owfs-2.3p1/module'
make: *** [all-recursive] Error 1
[EMAIL PROTECTED]:~/owfs-2.3p1$


Any clues?


--
http://randomthoughts.vandorp.ca




--
http://randomthoughts.vandorp.ca






--
http://randomthoughts.vandorp.ca

Thanks, thats fixed it for me. I just put
int n=0;
instead of
int n=DS9490_enumerate();

Tony



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to