Wed, 01 Aug 2012 23:49:03 +0200
Hack rpmconstant header file to allow targets to build, because...
Solaris studio cc(1) fails to build targets in rpmconstant with errors:
'undefined symbol first referenced in file constant.o' regarding symbols:
rpmdsInit, rpmdsNext, rpmdsTagN, rpmHeaderFormats, hdrVec, rpmTagTable,
rpmdsSearch, rpmdsResult, rpmTags, rpmdsIx, rpmdsDNEVR, rpmdsSetResult.
It seems that these symbols are not used by RPM in any way, and thus
the build configuration can succeed without including the nasty headers.
michael@303 | 1 | Index: zzjson-1.1.0/src/zzjson_parse.c |
michael@303 | 2 | --- zzjson-1.1.0/src/zzjson_parse.c.orig 2009-08-16 02:49:38 +0200 |
michael@303 | 3 | +++ zzjson-1.1.0/src/zzjson_parse.c 2009-11-18 19:49:55 +0100 |
michael@303 | 4 | @@ -9,6 +9,7 @@ |
michael@303 | 5 | #include <math.h> |
michael@303 | 6 | #include <stdio.h> |
michael@303 | 7 | |
michael@303 | 8 | +#undef getchar |
michael@303 | 9 | #define GETC() config->getchar(config->ihandle) |
michael@303 | 10 | #define UNGETC(c) config->ungetchar(c, config->ihandle) |
michael@303 | 11 | #define SKIPWS() skipws(config) |