[OpenIndiana-discuss] Darktable 2.0.5
Alexander Pyhalov
alp at rsu.ru
Mon Jul 18 06:07:43 UTC 2016
Hi.
bentahyr at chez.com писал 18.07.2016 08:06:
> I'm trying to compile this software on OI and fell onto the
> requirement of dprintf :
>
> darktable-release-2.0.5/src/common/darktable.c:174:3: error: implicit
> declaration of function 'dprintf'
> [-Werror=implicit-function-declaration]
> dprintf(fout, "this is %s reporting a segfault:\n\n",
> PACKAGE_STRING);
> ^
> cc1: some warnings being treated as errors
> src/CMakeFiles/lib_darktable.dir/build.make:279: recipe for target
> 'src/CMakeFiles/lib_darktable.dir/common/darktable.c.o' failed
> gmake[2]: *** [src/CMakeFiles/lib_darktable.dir/common/darktable.c.o]
> Error 1
>
> It seems that Openindiana doesn't support this function, am I correct ?
>
> If yes, should I use fprintf instead (with some file descriptor
> juggling ?
Yes, illumos doesn't provide dprintf(). But fprintf works with FILE*,
not file descriptors. So you need to use
sprintf/snprintf + write.
---
System Administrator of Southern Federal University Computer Center
More information about the openindiana-discuss
mailing list