I got myself confused and therefore gave you bad information.  Originally I found two versions of time.h, the first at usr/include/time.h has 
struct tm {
    int    tm_sec;        /* seconds after the minute [0-60] */
in the code.  The second one at usr/include/sys/time.h, which I must have copied and renamed systime.h instead of sys/time.h.  Therefore, there is NO systime.h in the system.

Since you had already added the includes for systime.h I put the copy of systime.h in usr/include and ran bootstrap, configure, and make.  The error for stprage size of 'tz' isn't known was still there.  The usr/include/sys/time.h that I now call systime.h has struct timezone {
    int    tz_minuteswest;    /* minutes west of Greenwich */
    int    tz_dsttime;    /* type of dst correction */
in the code.  I tried changing the struct timezone to struct tz, but came back with the same storage size error.  I don't really know what the linux tz is looking for.  A google search showed the tz and zoneinfo maybe the same thing.  There is a directory named zoneinfo in usr/share/, containing more directories for countries, which contain localized binary files.

Again sorry for the wild goose chase with systime.


On Oct 2, 2005, at 3:15 PM, Christian Magnusson wrote:


Thanks for finding the problem by yourself, and I added the include of
systime.h if it exists. Did you try to do this yourself too?

I have updated the cvs. The small patches is included below too...
You have to run "./bootstrap --disable-swig" again since I updated
the configure template.

/Christian


On Sun, 2005-10-02 at 16:52, Ross Cathriner wrote:

That was a big help and the make went much further, however the next  
error is in ow_ds9490.c

I found where 'tm' was defined on time.h http://homepage.mac.com/rnc/
time.h
And a reference to timezone in systime.h http://homepage.mac.com/rnc/
systime.h

Online man pages for Darwin can be found here: http:// 
developer.apple.com/documentation/Darwin/Reference/ManPages/ 
index.html#//apple_ref/doc/framework/manpages


ow_ds9490.c: In function 'DS9490_next_both':
ow_ds9490.c:919: error: storage size of 'tz' isn't known
ow_ds9490.c:945: warning: comparison between signed and unsigned
ow_ds9490.c:920: warning: unused variable 'now'
ow_ds9490.c:920: warning: unused variable 'endtime'
ow_ds9490.c:919: warning: unused variable 'tz'
ow_ds9490.c:918: warning: unused variable 'tv'
ow_ds9490.c: In function 'DS9490_HaltPulse':
ow_ds9490.c:1147: error: storage size of 'tz' isn't known
ow_ds9490.c:1147: warning: unused variable 'tz'
make[4]: *** [ow_ds9490.lo] Error 1



diff -ruw cvs/owfs/configure.ac owfs/configure.ac
--- cvs/owfs/configure.ac       2005-10-02 22:07:11.000000000 +0200
+++ owfs/configure.ac   2005-10-02 22:03:58.000000000 +0200
@@ -711,7 +711,7 @@

 AC_HEADER_DIRENT
 AC_HEADER_STDC
-AC_CHECK_HEADERS([sys/mkdev.h sys/time.h sys/types.h feature_tests.h
fcntl.h netinet/in.h stdlib.h string.h sys/file.h syslog.h termios.h
unistd.h limits.h stdint.h features.h getopt.h linux/limits.h
bits/netdb.h bits/siginfo.h])
+AC_CHECK_HEADERS([sys/mkdev.h sys/time.h sys/types.h systime.h
feature_tests.h
fcntl.h netinet/in.h stdlib.h string.h sys/file.h syslog.h termios.h
unistd.h limits.h stdint.h features.h getopt.h linux/limits.h
bits/netdb.h bits/siginfo.h])  
 # owftpd section
 AC_SUBST(HAVE_NEW_SS_FAMILY)


diff -ruw cvs/owfs/module/owlib/src/include/ow.h
owfs/module/owlib/src/include/ow.h
--- cvs/owfs/module/owlib/src/include/ow.h      2005-09-14
13:33:05.000000000 +0200
+++ owfs/module/owlib/src/include/ow.h  2005-10-02 22:03:11.000000000
+0200
@@ -95,6 +95,10 @@
 #else
 #include <time.h>
 #endif
+#ifdef HAVE_SYSTIME_H
+/* For MacOSX */
+#include <systime.h>
+#endif
 #include <termios.h>
 #include <errno.h>
 #include <syslog.h>






-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
_______________________________________________
Owfs-developers mailing list


Reply via email to