I'm compiling xine-lib-1.1.16.1 with Studio 12 on this file, I get the following error:
yuv2rgb_mlib.c -KPIC -DPIC -o .libs/xineplug_vo_out_xshm_la-yuv2rgb_mlib.o pkgbuild: "/opt/SUNWmlib/include/mlib_algebra_proto.h", line 2775: error: syntax error before or at: * pkgbuild: "/opt/SUNWmlib/include/mlib_algebra_proto.h", line 2779: error: syntax error before or at: * pkgbuild: "/opt/SUNWmlib/include/mlib_algebra_proto.h", line 2803: error: syntax error before or at: * pkgbuild: "/opt/SUNWmlib/include/mlib_algebra_proto.h", line 2806: error: syntax error before or at: * so it appears that the logic to define mlib_s64 and mlib_u64 don't work correctly on 32-bit systems (2x3.2Ghz Xeon, sse2 enabled). There's three steps to the logic in /opt/SUNWmlib/include/mlib_types.h, which are, #ifdef __LP64, #elif (__STDC__ - 0 == 0) || defined(__GNUC__) || defined(__ICC) or #else I traced the code and for some reason it doesn't actually hit the #else clause, or somehow silently ignores the usage of long long, in that clause because the expect mlib_s64 and mlib_u64 types don't get defined, which is the root of the problem. I made a slight modification to the #elif to include " || defined(__SUNPRO_C) || defined(__SUNPRO_CC)" and that solved the compile issue. Obviously, I have to test, and I'm heading in that direction, but not immediately. I assume that a stock install with /usr/include/mlib_types.h (as I've observed) suffers from the same problem. Anyone have some guidance on whether this is the right fix, or I need to try something different? Thanks, Ben -- This message posted from opensolaris.org
