> If anybody is having problems compiling this software on SCO OpenServer 5, > they might like to try the following fixes :- > > > * In the file 'Xvnc/config/cf/sco5.cf' > Line 60 reads:- > #ifdef BuildDynamicLoading > #define SCODynamicFlags -Wl,-Bexport > #endif > > Change to:- > #ifdef BuildDynamicLoading > #define SCODynamicFlags -Wl,-Bexport > #else > #define SCODynamicFlags > #endif > > > * If you get the following error then you may not have 'usleep()' in > any of your standard libraries:- > undefined first referenced > symbol in file > usleep rfbproto.o > ld fatal: Symbol referencing errors. No output written to vncviewer > > You may either obtain a library with usleep in it from somewhere, or write > your own as I did. To do this create a file called vncviewer/usleep.c :- > /*** Start of usleep module ***/ > > #include > #include > #include > #include > #include > > void got_alarm(int x) > { > return; > } > > int usleep(unsigned int n) > { > struct itimerval value,ovalue; > signal(SIGALRM,got_alarm); > bzero((void *)&value,(size_t) sizeof(struct itimerval)); > value.it_value.tv_sec = n / 1000000L; > value.it_value.tv_usec = n % 1000000L; > setitimer(ITIMER_REAL,&value,&ovalue); > pause(); > return 0; > } > > /*** End of usleep module ***/ > > Then add this new file to vncviewer/Imakefile > Line 8 :- > SRCS = args.c listen.c rfbproto.c sockets.c usleep.c vncviewer.c x.c > OBJS = args.o listen.o rfbproto.o sockets.o usleep.o vncviewer.o x.o > > > I encountered no other problems besides those two and everything seems to > compile and work fine. > > I hope this information is helpful to you. > > -- Ben Maizels