Subject: Re: FWTK compile errors
To: Brad Salai <bsalai@servtech.com>
From: Aaron S. Magill <amagill@uiuc.edu>
List: port-mac68k
Date: 05/10/1996 01:30:16
>I did this, and got through daemon.c and lots further in fact, until:
>
>cc -I.. -g -I/usr/X11R6/include -c setenv.c
>setenv.c: In function `setenv':
>setenv.c:51: argument `name' doesn't match prototype
>/usr/include/stdlib.h:175: prototype declaration
>setenv.c:51: argument `value' doesn't match prototype
>/usr/include/stdlib.h:175: prototype declaration
>setenv.c: In function `unsetenv':
>setenv.c:109: argument `name' doesn't match prototype
>/usr/include/stdlib.h:176: prototype declaration
>setenv.c:114: warning: type mismatch with previous external decl
>setenv.c:56: warning: previous external decl of `_findenv'
>*** Error code 1
Ok, the updated FAQ I just sent Allen covers this, but in a nutshell I
found myself doing the following:
Every occurance of getenv, setenv, and unsetenv (including the function
definitions) was changed to my_getenv, my_setenv, and my_unsetenv
respectively. The reason for this was that the header files which define
these three functions does not match the prototypes the fwtk is using.
(There are about 6 changes to be made, in x-gw/getenv.c, x-gw/setenv.c,
x-gw/shell.c and x-gw/x-gw.c.)
It may be possible to use the library supplied getenv, etc, but I didn't
see an easy way to do it quickly when I first started setting up the fwtk,
and it was just simpler to rename everything.
The down side to this is that I haven't tested the code to make sure it
works properly. I don't have a need to proxy X services, so I have never
had a reason to test the code.
If you make the changes, it'll compile. If you actually use the X gateway,
let me know how it works so I can reflect it in the FAQ.
Oh, you may also have to edit x-gw/Makefile so that XLIBDIR (or something
similar) points to /usr/X11R6/lib, not /usr/local/X11/lib.
Hope this helps!
Aaron
--
Aaron Scott Magill amagill@uiuc.edu
-------------------------------------------------------------------------------
}{ "I have SEEN evil! I have SEEN horror! I have seen the unholy maggots }{
}{ which feast in the dark recesses of the human soul! I have seen all }{
}{ this, officer, but until today, I had never seen... YOU!" - Gomez Addams }{
-------------------------------------------------------------------------------