Subject: Re: FWTK compile errors
To: Aaron S. Magill <amagill@uiuc.edu>
From: Hauke Fath <bg5@aixterm1.urz.uni-heidelberg.de>
List: port-mac68k
Date: 05/10/1996 23:33:38
>>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


Ick!

I should have mentioned this: I simply

#if 0

#endif'ed the contents of the fwtk source files that contained the *env()
functions.
fwtk was all happy then with the corresponding functions in libc.
Turned out they were redundant.



	hauke

---
"It's never straight up and down"     (DEVO)