Re: [Owfs-developers] What is wrong with my owperl ?

2005-07-12 Thread Christian Magnusson

I succeeded to compile owhttpd and owserver for Solaris 7 now. It seems
to work, but I haven't tried to use any adapter yet... just running
to the serial port which is detected as a bad adapter.

Have added some compatibility source-files to owlib, and you can have
a look at it and tell me if you have any ideas of changes to make it
cleaner. Will check in all changes as soon as I can here.

/Christian


On Tue, 2005-07-12 at 09:57, Christian Magnusson wrote:
 
 On Mon, 2005-07-11 at 19:24 +0200, Krzysztof wrote:
  Christian Magnusson wrote:
   There were no dependencies to libpthread when compiling libow.so,
   so OW.so loaded libow.so and didn't understand to use libpthread.so
   too.
  
   I have updated some of the makefiles and configure.ac to fix the
   problem (I hope). I guess this fix only was needed for older libc.
  
  YES! Now it works like a charm :-)
  thank you!
  
 
 
 I just tried to compile owhttpd for Solaris 7, and I just wanted to
 tell you that I'm updating configure.ac again to get correct compilation
 flags... especially for pthread. The changes will be somewhat better and
 will work for more platforms in a while.
 
 /Christian
 
 
 
 
 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
 July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
 core and dual graphics technology at this free one hour event hosted by HP, 
 AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers



---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] What is wrong with my owperl ?

2005-07-12 Thread Paul Alfille
Nice work.

Wish we could find someone to test a Mac OS X system.

Paul

On Tuesday 12 July 2005 09:18 am, Christian Magnusson wrote:
 I succeeded to compile owhttpd and owserver for Solaris 7 now. It seems
 to work, but I haven't tried to use any adapter yet... just running
 to the serial port which is detected as a bad adapter.

 Have added some compatibility source-files to owlib, and you can have
 a look at it and tell me if you have any ideas of changes to make it
 cleaner. Will check in all changes as soon as I can here.

 /Christian

 On Tue, 2005-07-12 at 09:57, Christian Magnusson wrote:
  On Mon, 2005-07-11 at 19:24 +0200, Krzysztof wrote:
   Christian Magnusson wrote:
There were no dependencies to libpthread when compiling libow.so,
so OW.so loaded libow.so and didn't understand to use libpthread.so
too.
   
I have updated some of the makefiles and configure.ac to fix the
problem (I hope). I guess this fix only was needed for older libc.
  
   YES! Now it works like a charm :-)
   thank you!
 
  I just tried to compile owhttpd for Solaris 7, and I just wanted to
  tell you that I'm updating configure.ac again to get correct compilation
  flags... especially for pthread. The changes will be somewhat better and
  will work for more platforms in a while.
 
  /Christian
 
 
 
 
  ---
  This SF.Net email is sponsored by the 'Do More With Dual!' webinar
  happening July 14 at 8am PDT/11am EDT. We invite you to explore the
  latest in dual core and dual graphics technology at this free one hour
  event hosted by HP, AMD, and NVIDIA.  To register visit
  http://www.hp.com/go/dualwebinar
  ___
  Owfs-developers mailing list
  Owfs-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/owfs-developers

 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar
 happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest
 in dual core and dual graphics technology at this free one hour event
 hosted by HP, AMD, and NVIDIA.  To register visit
 http://www.hp.com/go/dualwebinar
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] What is wrong with my owperl ?

2005-07-11 Thread Paul Alfille
On Monday 11 July 2005 01:24 pm, Krzysztof wrote:

 I still have a strange problem with owfs, sometimes I can not read files -
 just after I disconnect 18b20 from 1 wire network, its address directory
 (cache) still exists but reading the temperature file is impossible - mc
 gives error and crashes :-)

 File exists (I also did test -e, test -s to check it) however I can't read
 it :-)

I suspect you can read the uncached directory to get a current view of the 
devices.

There is a trade-off between speed and response to changes. The 1-wire bus is 
(relatively) slow. For applications where the bus contents change rarely, you 
can avoid a rescan of the bus by not using the uncached directory.

If you are recording data values intermittently, you probably want to scan the 
bus at the start of each sample period, then read uncached values for the 
database.

Here is a simple example (whish says two things, it's hot, and they are pretty 
accurate!):

# x=/mnt/1wire/uncached/*; for y in $x; do echo $y: `cat $y/temperature`; \ 
done
cat: /mnt/1wire/uncached/01.0683C909/temperature: No such file or 
directory
/mnt/1wire/uncached/01.0683C909:
cat: /mnt/1wire/uncached/05.5ADD1E00/temperature: No such file or 
directory
/mnt/1wire/uncached/05.5ADD1E00:
cat: /mnt/1wire/uncached/05.DD011F00/temperature: No such file or 
directory
/mnt/1wire/uncached/05.DD011F00:
cat: /mnt/1wire/uncached/09.BCCA7903/temperature: No such file or 
directory
/mnt/1wire/uncached/09.BCCA7903:
/mnt/1wire/uncached/10.003054000800:  33.0625
/mnt/1wire/uncached/10.044954000800:   33.125
/mnt/1wire/uncached/10.052854000800:  33.0625
/mnt/1wire/uncached/10.074D54000800:   33.125
/mnt/1wire/uncached/10.0D2B54000800:   33.125
/mnt/1wire/uncached/10.101454000800:  33.0625
/mnt/1wire/uncached/10.101554000800:  32.9375
/mnt/1wire/uncached/10.164F54000800:  33.0625
/mnt/1wire/uncached/10.182654000800:  33.1875
/mnt/1wire/uncached/10.1D1554000800:   33.125
/mnt/1wire/uncached/10.234254000800:   33.125
/mnt/1wire/uncached/10.2C1B54000800:   33.125
/mnt/1wire/uncached/10.2D4154000800:  33.0625
/mnt/1wire/uncached/10.301A54000800:   33.125
/mnt/1wire/uncached/10.311154000800:   33.125
/mnt/1wire/uncached/10.39756B000800:33.25
/mnt/1wire/uncached/10.3C1F54000800:  33.0625
/mnt/1wire/uncached/10.401D54000800:  33.0625
/mnt/1wire/uncached/10.414354000800:   33.125
/mnt/1wire/uncached/10.42916B000800:   33.125
/mnt/1wire/uncached/10.483354000800:  33.0625
/mnt/1wire/uncached/10.4A2D54000800:  33.0625
/mnt/1wire/uncached/10.4A4454000800:   33.125
/mnt/1wire/uncached/10.4E4C54000800:   33.125
/mnt/1wire/uncached/10.552954000800:   33.125
/mnt/1wire/uncached/10.584E54000800:   33
/mnt/1wire/uncached/10.5A3F54000800:  33.0625
/mnt/1wire/uncached/10.5E1B54000800:  33.0625
/mnt/1wire/uncached/10.601454000800:  33.0625
/mnt/1wire/uncached/10.602454000800:  33.0625
/mnt/1wire/uncached/10.602E54000800:  33.0625
/mnt/1wire/uncached/10.611154000800:   33.125
/mnt/1wire/uncached/10.641654000800:   33.125
/mnt/1wire/uncached/10.653E54000800:  33.0625
/mnt/1wire/uncached/10.674E54000800:  33.0625
/mnt/1wire/uncached/10.6F3F54000800:33.25
/mnt/1wire/uncached/10.711C54000800:   33.125
/mnt/1wire/uncached/10.792F54000800:  33.1875
/mnt/1wire/uncached/10.793E54000800:   33.125
/mnt/1wire/uncached/10.7E3754000800:   33.125
/mnt/1wire/uncached/10.801754000800:  33.0625
/mnt/1wire/uncached/10.821454000800:  33.1875
/mnt/1wire/uncached/10.892254000800:  33.0625
/mnt/1wire/uncached/10.894F54000800:  33.0625
/mnt/1wire/uncached/10.8B3954000800:   33.125
/mnt/1wire/uncached/10.904154000800:   33.125
/mnt/1wire/uncached/10.904954000800:   33.125
/mnt/1wire/uncached/10.974F54000800:   33.125
/mnt/1wire/uncached/10.9A2F54000800:   33.125
/mnt/1wire/uncached/10.9A9E3C000800:   33.125
/mnt/1wire/uncached/10.9B2D54000800:  33.0625
/mnt/1wire/uncached/10.9C4654000800:  33.0625
/mnt/1wire/uncached/10.9D4154000800:  33.0625
/mnt/1wire/uncached/10.A44E54000800:  33.0625
/mnt/1wire/uncached/10.A53654000800:  33.1875
/mnt/1wire/uncached/10.A73A54000800:   33.125
/mnt/1wire/uncached/10.AA4D54000800:   33.125
/mnt/1wire/uncached/10.AC2754000800:   33.125
/mnt/1wire/uncached/10.AD1A54000800:   33.125
/mnt/1wire/uncached/10.B14154000800:   33.125
/mnt/1wire/uncached/10.B64054000800:   33.125
/mnt/1wire/uncached/10.B72E54000800:  33.0625
/mnt/1wire/uncached/10.B74754000800:  33.1875
/mnt/1wire/uncached/10.B83754000800:   33.125
/mnt/1wire/uncached/10.BB1754000800:  33.1875
/mnt/1wire/uncached/10.BE2254000800:   33
/mnt/1wire/uncached/10.C24654000800:   33.125
/mnt/1wire/uncached/10.C44154000800:   33.125
/mnt/1wire/uncached/10.C64354000800:  33.0625

Re: [Owfs-developers] What is wrong with my owperl ?

2005-07-10 Thread Krzysztof
Paul Alfille wrote:
 I just pulled a fresh owfs from the CVS, did c./bootstrap and make
 install. then module/swig/owperl5/test.pl /dev/ttyS1 works.


I just pulled newest owfs from cvs too and the problem persists.
I've checked perl lib paths and files ow.pm ,ow.so are up to date!

[EMAIL PROTECTED]:/temp/owfs/module/swig/perl5# ./test.pl 127.0.0.1:1234
Can't load '/usr/lib/perl5/site_perl/5.8.5/i486-linux/auto/OW/OW.so' for
module OW: /usr/lib/perl5/site_perl/5.8.5/i486-linux/auto/OW/OW.so:
undefined symbol: pthread_join at
/usr/lib/perl5/5.8.5/i486-linux/DynaLoader.pm line 230.
 at /usr/lib/perl5/site_perl/5.8.5/i486-linux/OW.pm line 7
Compilation failed in require at ./test.pl line 8.
BEGIN failed--compilation aborted at ./test.pl line 8.
[EMAIL PROTECTED]:/temp/owfs/module/swig/perl5#


Weird problem :)
Any ideas anyone?



---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] What is wrong with my owperl ?

2005-07-10 Thread Christian Magnusson

There were no dependencies to libpthread when compiling libow.so,
so OW.so loaded libow.so and didn't understand to use libpthread.so
too.

I have updated some of the makefiles and configure.ac to fix the
problem (I hope). I guess this fix only was needed for older libc.

/Christian



On Sun, 2005-07-10 at 12:47, Krzysztof wrote:
 Paul Alfille wrote:
  I just pulled a fresh owfs from the CVS, did c./bootstrap and make
  install. then module/swig/owperl5/test.pl /dev/ttyS1 works.
 
 
 I just pulled newest owfs from cvs too and the problem persists.
 I've checked perl lib paths and files ow.pm ,ow.so are up to date!
 
 [EMAIL PROTECTED]:/temp/owfs/module/swig/perl5# ./test.pl 127.0.0.1:1234
 Can't load '/usr/lib/perl5/site_perl/5.8.5/i486-linux/auto/OW/OW.so' for
 module OW: /usr/lib/perl5/site_perl/5.8.5/i486-linux/auto/OW/OW.so:
 undefined symbol: pthread_join at
 /usr/lib/perl5/5.8.5/i486-linux/DynaLoader.pm line 230.
  at /usr/lib/perl5/site_perl/5.8.5/i486-linux/OW.pm line 7
 Compilation failed in require at ./test.pl line 8.
 BEGIN failed--compilation aborted at ./test.pl line 8.
 [EMAIL PROTECTED]:/temp/owfs/module/swig/perl5#
 
 
 Weird problem :)
 Any ideas anyone?
 
 
 
 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
 July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
 core and dual graphics technology at this free one hour event hosted by HP, 
 AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers



---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] What is wrong with my owperl ?

2005-07-09 Thread Paul Alfille
Here we go again.

I just pulled a fresh owfs from the CVS, did c./bootstrap and make install.
then module/swig/owperl5/test.pl /dev/ttyS1 works.

Do you think this is stale information again? Fuse would not be relevant.

Note, I'm using perl 5.8.5 as well.

Paul

On Saturday 09 July 2005 01:47 pm, Krzysztof wrote:
 Hi

 I'm sorry to bower you again :-)

 I've installed owfs with perl support.

 [EMAIL PROTECTED]:/home/temp.../new/owfs/module/swig/perl5# ./test.pl
 Can't load '/usr/lib/perl5/site_perl/5.8.5/i486-linux/auto/OW/OW.so' for
 module OW: /usr/lib/perl5/site_perl/5.8.5/i486-linux/auto/OW/OW.so:
 undefined symbol: pthread_join at
 /usr/lib/perl5/5.8.5/i486-linux/DynaLoader.pm line 230.
  at /usr/lib/perl5/site_perl/5.8.5/i486-linux/OW.pm line 7
 Compilation failed in require at ./test.pl line 8.
 BEGIN failed--compilation aborted at ./test.pl line 8.
 [EMAIL PROTECTED]:

 Hmmm what is wrong? After # line 7 @ OW.pm (bootstrap OW) I got another
 error:

 [EMAIL PROTECTED]:/home/temp.../new/owfs/module/swig/perl5# ./test.pl
 OWFS 1-wire tree perl program
   by Paul Alfille 2004 see http://owfs.sourceforge.net
 Syntax:
 ./test.pl 1wire-port
   1wire-port (required):
 'u' for USB -or-
 /dev/ttyS0 (or whatever) serial port

 [EMAIL PROTECTED]:/home/temp.../new/owfs/module/swig/perl5# ./test.pl 
 127.0.0.1
 Use of inherited AUTOLOAD for non-method OW::init() is deprecated at
 ./test.pl line 20.
 Can't locate auto/OW/init.al in @INC (@INC contains:
 /usr/lib/perl5/5.8.5/i486-linux /usr/lib/perl5/5.8.5
 /usr/lib/perl5/site_perl/5.8.5/i486-linux /usr/lib/perl5/site_perl/5.8.5
 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl .) at ./test.pl
 line 20

 #slocate init.al = no results

 How can I fix that? I use perl to load data to rrdtool database and I'd
 like to use owperl!


 [EMAIL PROTECTED]:/usr/lib/perl5/site_perl/5.8.5/i486-linux# slocate OW. |grep
 perl
 /usr/lib/perl5/site_perl/5.8.5/i486-linux/auto/OW/OW.bs
 /usr/lib/perl5/site_perl/5.8.5/i486-linux/auto/OW/OW.so
 /usr/lib/perl5/site_perl/5.8.5/i486-linux/OW.pm

 It seems I have all files that owperl needs?



 ---
 This SF.Net email is sponsored by the 'Do More With Dual!' webinar
 happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest
 in dual core and dual graphics technology at this free one hour event
 hosted by HP, AMD, and NVIDIA.  To register visit
 http://www.hp.com/go/dualwebinar
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers