Brian, El Thursday 04 October 2007 22:02:22 Brian Keener escribió: > [ 53%] Building CXX object > src/osgPlugins/net/CMakeFiles/osgdb_net.dir/sockinet. > o > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockinet.cpp:66:1: warning: > "socklen_ > t" redefined > In file included from /usr/include/sys/socket.h:15, > from > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.h:46 > , > from > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockinet.h:16, > from > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockinet.cpp:36 > > /usr/include/cygwin/socket.h:24:1: warning: this is the location of the > previous > definition > [ 54%] Building CXX object > src/osgPlugins/net/CMakeFiles/osgdb_net.dir/sockstrea > m.o > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp:143:1: > warning: "sockl > en_t" redefined > In file included from /usr/include/sys/socket.h:15, > from > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.h:46 > , > from > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp: > 63: > /usr/include/cygwin/socket.h:24:1: warning: this is the location of the > previous > definition > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp: In member > function `i > nt sockbuf::pgrp() const': > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp:931: error: > `SIOCGPGRP > ' undeclared (first use this function) > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp:931: error: > (Each unde > clared identifier is reported only once for each function it appears > in.) > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp: In member > function `i > nt sockbuf::pgrp(int) const': > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp:941: error: > `SIOCSPGRP > ' undeclared (first use this function) > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp: In member > function `v > oid sockbuf::closeonexec(bool) const': > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp:952: error: > `FIOCLEX' > undeclared (first use this function) > /usr/src/OpenSceneGraph/src/osgPlugins/net/sockstream.cpp:955: error: > `FIONCLEX' > undeclared (first use this function) > make[2]: *** [src/osgPlugins/net/CMakeFiles/osgdb_net.dir/sockstream.o] > Error 1 > make[1]: *** [src/osgPlugins/net/CMakeFiles/osgdb_net.dir/all] Error 2 > make: *** [all] Error 2
this shouldn't be possible with the changes recently commited to the SVN. Could you confirm that the lines number 924 and 925 of sockinet.cpp are //#if !defined(WIN32) #if !(defined(__CYGWIN__) || defined(WIN32)) that is, the first line is commented out but not the second one. Could you also please check that __CYGWIN__ macro is defined for the compiler you are using? On my system: $ touch testfile.cpp $ g++ testfile.cpp -E -dM | grep __CYGWIN__ #define __CYGWIN__ 1 $ g++ -v Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose --prefix=/usr --exec-prefix=/usr -- sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-langu ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --w ithout-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-thre ads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enabl e-libstdcxx-debug Thread model: posix Thank you, Alberto _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

