summaryrefslogtreecommitdiffstats
path: root/ktalkd/SNPRINTF_MISSING
blob: 50a04a89cfd6ba0b24fdbdbd487df16ce679b3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ktalkd needs the snprintf function, but some system don't have it (some
Solaris versions, for instance).

If snprintf is missing on your system, you can do the following :

* compile ktalkd/kotalkd/vsnprintf.c, by entering 'make vsnprintf.o' in this
directory. (there might be warnings, don't be afraid of them...)
* if it compiles
  - add vsnprintf.o to the kotalkd_OBJECTS line in ktalkd/kotalkd/Makefile 
  - copy vsnprintf.o to ktalkd/ktalkd
  - add vsnprintf.o to the cond0ktalkd_OBJECTS line in ktalkd/ktalkd/Makefile 
  then run make from the toplevel directory again.

Many thanks to Olof S Kylander <olof@frozenriver.com> for providing vsnprintf.c
and to Bert Haverkamp <b.r.j.haverkamp@its.tudelft.nl> for reporting bugs in this readme.

I know, the really good approach would be to include the missing
automatically, which can be done. But for this I need to know if
vsnprintf.c compiles on all architectures where snprintf is missing.
If yes, I'll make the code in vsnprintf included automatically (in tdecore/fakes.cpp)