On 11/10/2010 05:09 PM, David C. Rankin wrote:
Guys,
I'm trying to build inkscape 0.48 for an 11.0 box. The issue I'm running into is errno.h on 11.0 doesn't contain EINVAL or ERANGE defines resulting in the following build errors:
dir-util.cpp: In function ‘char* inkscape_rel2abs(const char*, const char*, char*, size_t)’: dir-util.cpp:114: error: ‘EINVAL’ was not declared in this scope dir-util.cpp:180: error: ‘ERANGE’ was not declared in this scope dir-util.cpp: In function ‘char* inkscape_abs2rel(const char*, const char*, char*, size_t)’: dir-util.cpp:201: error: ‘EINVAL’ was not declared in this scope dir-util.cpp:251: error: ‘ERANGE’ was not declared in this scope make[2]: *** [dir-util.o] Error 1
Seems like I should be able to work around this with:
#define EINVAL 22 #define ERANGE 34
but where to put them? dir-util.h? Modify the existing /usr/include/errno.h? What say the build gurus?
Progress,
I can get dir-util.o to build by including the following in dir-util.cpp
#include