[qvwm-e:00316] Oops! [Was re: usleep ERROR - compiling on DEC-alpha]

Chris Sorenson <[email protected]> Mon, 03 Mar 2003 13:44:52 -0600
Newsgroups gmane.comp.window-managers.qvwm.english
Organization =^..^=
Message-ID <[email protected]>
Sorry about the incorrect subject line on my original reply, I had 
retrieved the message from my spam filter and forgot that the filter 
overwrites the subject line... :P

>
>>
>>
>> hello, I want to compile qvwm on a DEC-alpha - machine, however I get 
>> the
>> following error:
>>
>>
>>
>> -- c++ -DQVWMDIR=\"/project/amphioxus/share/qvwm\" 
>> -DIMGDIR=\"/project/amphioxus/share/qvwm/images\" 
>> -DSNDDIR=\"/project/amphioxus/share/qvwm/sounds\" 
>> -DPATH_RM=\"/usr/ucb/rm\" -DHAVE_CONFIG_H -I.. -I.     -g -O2   
>> -I/usr/local/include -fpermissive -c titlebar.cc
>> titlebar.cc: In member function `void Qvwm::MotionTitlebar(const 
>> Rect&, const   Rect&)':
>> titlebar.cc:263: `usleep' undeclared (first use this function)
>> titlebar.cc:263: (Each undeclared identifier is reported only once 
>> for each   function it appears in.)
>> *** Exit 1
>> Stop.
>> *** Exit 1
>> Stop.
>>
>> I tried to dissable HAVE_USLEEP in Config.tmpl and I tried the 
>> solaris patch usleep((unsigned
>> long)10000);
>>
>> both without success.
>>
>> Thank your for your suggestions.
>>
>> regards,
>>  
>>
> usleep is defined in the system header file unistd.h, which is 
> /usr/include/unistd.h on BSD4.3 compatible systems. Presumably your 
> DEC-alpha isn't BSD4.3 compatible.
>
> unistd.h is included in many of the qvwm C++ files, if your DEC 
> defines usleep in a different file, you'll need to replace the 
> '#include <unistd.h>' preprocessor statements in each of the qvwm 
> files with the correct file name.
>
> Try 'grep usleep /usr/include/*.h', or in any other directory where 
> the system include files may be located, to find the usleep 
> declaration. It's got to be there somewhere.
>
> Perhaps someone who knows DEC Unix can be of more assistance...
>
>