> Hi, > > I tried to compile vnc-4.0b3 on hpux 11.00, but it fails with the > > following error message: > > ./configure --prefix=/opt/vnc-4.0b3 \ > --with-installed-zlib > gmake > > ... > c++ -I.. -I/usr/include/X11R6 -O2 -Wall -c TXImage.cxx > TXImage.cxx: In member function `void > TXImage::getNativePixelFormat(Visual*, > int)': > TXImage.cxx:304: `ffs' undeclared (first use this function) > TXImage.cxx:304: (Each undeclared identifier is reported only
Hi, I solved this error by adding the following lines in tx/TXImage.cxx #if defined(__hpux) #include <strings.h> #endif but then this error occurs: c++ -I.. -I/usr/include/X11R6 -O2 -Wall -c Timer.cxx rm -f libtx.a ar cq libtx.a TXWindow.o TXScrollbar.o TXViewport.o TXImage.o TXMenu.o Timer.o ranlib libtx.a gmake[1]: Leaving directory `/users/mgansser/GNU/vnc-4.0b3-unixsrc/tx' gmake[1]: Entering directory `/users/mgansser/GNU/vnc-4.0b3-unixsrc/x0vncserver' c++ -I.. -I/usr/include/X11R6 -O2 -Wall -c Image.cxx In file included from Image.cxx:29: Image.h:27: conflicting types for `struct XShmSegmentInfo' /usr/include/X11R6/X11/extensions/XShm.h:70: previous declaration as `typedef struct XShmSegmentInfo XShmSegmentInfo' /usr/local/include/c++/3.2.3/bits/stl_threads.h: In instantiation of `__gthread_mutex_t std::_Swap_l ock_struct<0>::_S_swap_lock': /usr/local/include/c++/3.2.3/bits/stl_threads.h:122: instantiated from here /usr/local/include/c++/3.2.3/bits/stl_threads.h:115: warning: aggregate has a partly bracketed initializer /usr/local/include/c++/3.2.3/bits/stl_threads.h:115: warning: aggregate has a partly bracketed initializer /usr/local/include/c++/3.2.3/bits/stl_threads.h:115: warning: aggregate has a partly bracketed initializer /usr/local/include/c++/3.2.3/bits/stl_threads.h:115: warning: aggregate has a partly bracketed initializer /usr/local/include/c++/3.2.3/bits/stl_threads.h:115: warning: aggregate has a partly bracketed initializer /usr/local/include/c++/3.2.3/bits/stl_threads.h:115: warning: aggregate has a partly bracketed initializer /usr/local/include/c++/3.2.3/bits/stl_threads.h:115: warning: aggregate has a partly bracketed initializer gmake[1]: *** [Image.o] Error 1 gmake[1]: Leaving directory `/users/mgansser/GNU/vnc-4.0b3-unixsrc/x0vncserver' gmake: *** [all] Error 1 mzfem_root:/users/mgansser/GNU/vnc-4.0b3-unixsrc # any suggestion ? thanks Martin _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
