Hi, When compiling OWFS on a freshly installed Cygwin system I get the following errors during make. I'm using owfs-2.9p0, gcc (GCC) 4.5.3 on CYGWIN_NT-6.1 HOST1 1.7.18(0.263/5/3) 2013-04-19 10:39 i686 Cygwin. As a workaround I changed the corresponding preprocessor statement from __GNUC_MINOR__ being greater than 4 to being greater than 5 and it compiles fine, however I don't really know much about the #pragma GCC diagnostic so maybe anyone knows a better way to solve this problem.
Error Messages: [...] libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../../src/include -I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2 -mwin32 -g -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT ownet_write.lo -MD -MP -MF .deps/ownet_write.Tpo -c ownet_write.c -o ownet_write.o >/dev/null 2>&1 mv -f .deps/ownet_dir.Tpo .deps/ownet_dir.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../../src/include -I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2 -mwin32 -g -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT ownet_present.lo -MD -MP -MF .deps/ownet_present.Tpo -c ownet_present.c -o ownet_present.o >/dev/null 2>&1 ow_server.c: In function 'ServerWrite': ow_server.c:143:9: error: #pragma GCC diagnostic not allowed inside functions ow_server.c:144:9: error: #pragma GCC diagnostic not allowed inside functions ow_server.c:145:9: warning: cast discards qualifiers from pointer target type ow_server.c:146:9: error: #pragma GCC diagnostic not allowed inside functions ow_server.c: In function 'WriteToServer': ow_server.c:507:9: error: #pragma GCC diagnostic not allowed inside functions ow_server.c:508:9: error: #pragma GCC diagnostic not allowed inside functions ow_server.c:509:3: warning: cast discards qualifiers from pointer target type ow_server.c:510:9: error: #pragma GCC diagnostic not allowed inside functions libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../../src/include -I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2 -mwin32 -g -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT ow_rwlock.lo -MD -MP -MF .deps/ow_rwlock.Tpo -c ow_rwlock.c -o ow_rwlock.o >/dev/null 2>&1 Makefile:547: recipe for target `ow_server.lo' failed make[5]: *** [ow_server.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... mv -f .deps/ownet_init.Tpo .deps/ownet_init.Plo libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../../src/include -I../include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2 -mwin32 -g -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT ow_tcp_read.lo -MD -MP -MF .deps/ow_tcp_read.Tpo -c ow_tcp_read.c -o ow_tcp_read.o >/dev/null 2>&1 mv -f .deps/ownet_read.Tpo .deps/ownet_read.Plo mv -f .deps/ownet_present.Tpo .deps/ownet_present.Plo mv -f .deps/ownet_write.Tpo .deps/ownet_write.Plo mv -f .deps/ownet_setget.Tpo .deps/ownet_setget.Plo mv -f .deps/ow_rwlock.Tpo .deps/ow_rwlock.Plo mv -f .deps/ow_tcp_read.Tpo .deps/ow_tcp_read.Plo make[5]: Leaving directory `/home/cegger/devel/owfs-2.9p0/module/ownet/c/src/c' Makefile:413: recipe for target `all-recursive' failed make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/cegger/devel/owfs-2.9p0/module/ownet/c/src' Makefile:410: recipe for target `all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/cegger/devel/owfs-2.9p0/module/ownet/c' Makefile:414: recipe for target `all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/cegger/devel/owfs-2.9p0/module/ownet' Makefile:424: recipe for target `all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cegger/devel/owfs-2.9p0/module' Makefile:469: recipe for target `all-recursive' failed make: *** [all-recursive] Error 1 best regards Clemens Egger ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
