Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!laura!tommy!klute From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute) Newsgroups: comp.windows.x Subject: Re: problem with installing xdtm Message-ID: <3501@laura.UUCP> Date: 27 May 91 12:32:17 GMT References: <11560@hub.ucsb.edu> Sender: news@laura.UUCP Organization: University of Dortmund, Germany Lines: 54 In article <11560@hub.ucsb.edu>, yfwang@hawaii.ucsb.edu writes: |> i grabbed from comp.sources.x xdtm, the X desktop manager. however, |> i cannot install the package because i got an error during compilation. |> the error message is |> |> --------- |> kawai(2967)% make |> gcc -g -I/usr/local/Pkg/XV11R4/include -sun4 -c main.c |> gcc -g -I/usr/local/Pkg/XV11R4/include -sun4 -c menus.c |> gcc -g -I/usr/local/Pkg/XV11R4/include -sun4 -c appman.c |> appman.c: In function execute: |> appman.c:885: request for member `w_S' in something not a structure or union |> appman.c:885: request for member `w_T' in something not a structure or union |> *** Error code 1 |> make: Fatal error: Command failed for target `appman.o' Try the following patch: *** /tmp/RCSAa02473 Tue May 21 16:38:25 1991 --- appman.c Tue May 21 16:29:34 1991 *************** *** 749,755 **** int result, pid, fd; int status = 0; String *newargs, strptr; ! int w_stat; if (fullname == NULL) { /* Find program */ --- 749,755 ---- int result, pid, fd; int status = 0; String *newargs, strptr; ! union wait w_stat; if (fullname == NULL) { /* Find program */ *************** *** 883,888 **** --- 883,889 ---- if (cwait) { wait(&w_stat); if (WIFEXITED(w_stat)) /* jcc */ + #define WEXITSTATUS(w_stat) (w_stat.w_T.w_Retcode) status = WEXITSTATUS(w_stat); /* ejg */ else status = 1; -- Dipl.-Inform. Rainer Klute klute@irb.informatik.uni-dortmund.de Univ. Dortmund, IRB klute@unido.uucp, klute@unido.bitnet Postfach 500500 |)|/ Tel.: +49 231 755-4663 D-4600 Dortmund 50 |\|\ Fax : +49 231 755-2386