Hi,
this is my current owshell.h

#define OWSHELL_H
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include "config.h"
#include "owfs_config.h"

I have run again configure and compile.

I see same error:

make[4]: Entering directory '/home/wsdadm/owfs-3.1p1/module/owshell/src/c'
gcc -DHAVE_CONFIG_H -I. -I../../../../src/include    -I../include
-I../../../owlib/src/include -fexceptions -Wall -W -Wundef -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes
-Wredundant-decls    -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=600
-D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2 -mwin32
-g -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
-D_POSIX_C_SOURCE=200112L -c ow_tcp_read.c
ow_tcp_read.c: In function ‘tcp_read’:
ow_tcp_read.c:31:3: error: unknown type name ‘fd_set’
   fd_set readset;
   ^
ow_tcp_read.c:35:3: warning: implicit declaration of function ‘FD_ZERO’
[-Wimplicit-function-declaration]
   FD_ZERO(&readset);
   ^
ow_tcp_read.c:36:3: warning: implicit declaration of function ‘FD_SET’
[-Wimplicit-function-declaration]
   FD_SET(file_descriptor, &readset);
   ^
ow_tcp_read.c:39:3: warning: implicit declaration of function ‘select’
[-Wimplicit-function-declaration]
   rc = select(file_descriptor + 1, &readset, NULL, NULL, &tv);
   ^
ow_tcp_read.c:42:4: warning: implicit declaration of function ‘FD_ISSET’
[-Wimplicit-function-declaration]
    if (FD_ISSET(file_descriptor, &readset) == 0) {
    ^
Makefile:644: recipe for target 'ow_tcp_read.o' failed



2016-02-03 14:58 GMT+01:00 Jan Kandziora <j...@gmx.de>:

> Am 03.02.2016 um 07:33 schrieb Radoslav Chovan:
> > Hi,
> > after your advice, configure run without error, but compilation in cygwin
> > break on this error:
> >
> > version 3.1p1
> >
> > gcc -DHAVE_CONFIG_H -I. -I../../../../src/include    -I../include
> > -I../../../owlib/src/include -fexceptions -Wall -W -Wundef -Wshadow
> > -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes
> > -Wredundant-decls    -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=600
> > -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2
> -mwin32
> > -g -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
> > -D_POSIX_C_SOURCE=200112L -c ow_tcp_read.c
> > ow_tcp_read.c: In function ‘tcp_read’:
> > ow_tcp_read.c:31:3: error: unknown type name ‘fd_set’
> >    fd_set readset;
> >    ^
> > ow_tcp_read.c:35:3: warning: implicit declaration of function ‘FD_ZERO’
> > [-Wimplicit-function-declaration]
> >    FD_ZERO(&readset);
> >    ^
> > ow_tcp_read.c:36:3: warning: implicit declaration of function ‘FD_SET’
> > [-Wimplicit-function-declaration]
> >    FD_SET(file_descriptor, &readset);
> >    ^
> > ow_tcp_read.c:39:3: warning: implicit declaration of function ‘select’
> > [-Wimplicit-function-declaration]
> >    rc = select(file_descriptor + 1, &readset, NULL, NULL, &tv);
> >    ^
> > ow_tcp_read.c:42:4: warning: implicit declaration of function ‘FD_ISSET’
> > [-Wimplicit-function-declaration]
> >     if (FD_ISSET(file_descriptor, &readset) == 0) {
> >     ^
> > Makefile:644: recipe for target 'ow_tcp_read.o' failed
> > make[4]: *** [ow_tcp_read.o] Error 1
> > make[4]: Leaving directory '/home/wsdadm/owfs-3.1p1/module/owshell/src/c'
> > Makefile:486: recipe for target 'all-recursive' failed
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory '/home/wsdadm/owfs-3.1p1/module/owshell/src'
> > Makefile:486: recipe for target 'all-recursive' failed
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory '/home/wsdadm/owfs-3.1p1/module/owshell'
> > Makefile:500: recipe for target 'all-recursive' failed
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory '/home/wsdadm/owfs-3.1p1/module'
> > Makefile:555: recipe for target 'all-recursive' failed
> > make: *** [all-recursive] Error 1
> >
> Question: Do you have all the needed header files installed? Usually
> this is covered by the configure run but cygwin is special and we don't
> have too many persons who test it.
>
>
> You can try adding
>
> #include <sys/time.h>
> #include <sys/types.h>
> #include <unistd.h>
>
> inside module/owshell/src/include/owshell.h right after
>
> #define OWSHELL_H
>
> Let me know if you get another error at the same file or run into
> another error with the next.
>
>
> Kind regards
>
>         Jan
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to