[Uml-devel] compilation problems with version 1.1 beta 1

tomas.walch at se.transport.bombardier.com tomas.walch at se.transport.bombardier.com
Tue Sep 17 04:01:05 UTC 2002


Hi!


>1. setenv is unkown function (commenting it makes it compile):

setenv is a function that's sometimes a part of stdlib and sometimes not (e.g.
Solaris). To compensate for this there is a workaround in the kdelibs file
fakes.cc that gets created if kdelibs configure finds that setenv is missing.
putenv and setenv are definitely related but don't work exactly the same, at
least their signatures are different. Kdelibs adds the declaration of it's fake
setenv to it's config.h and this is something that uml configure ought to do as
well, we know. The body of the fake setenv is already compiled into libkdecore
(or some other kdelib, it's doesn't really matter - I had the same problem and
the linker found it).

If you can't wait until uml configure can handle this for you you can paste
these lines cut from kdelibs config.h to the top of your uml.h file:

#if !defined(HAVE_SETENV)
#ifdef __cplusplus
extern "C"
#endif
int setenv(const char *name, const char *value, int overwrite);
#endif

/ Tomas Walch.







More information about the umbrello-devel mailing list