#At bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-6.0-falcon/
2683 Olav Sandstaa 2008-05-30
A fix for Bug#36703: Unknown symbol EncodedDataStream::decode when linking mysqld
with Sun Studio
The problem was due to Sun Studio compiler produced a different symbol names in the
object files for the decode()
method for the implementation of the method and when it was called.
This was triggered due to that the declartion of the method used "unsigned char"
while the definition of the method used a UCHAR (which is typedef unsigned char).
Fixed this problem by using UCHAR in both declaration and definition.
modified:
storage/falcon/EncodedDataStream.h
=== modified file 'storage/falcon/EncodedDataStream.h'
--- a/storage/falcon/EncodedDataStream.h 2008-04-21 16:27:11 +0000
+++ b/storage/falcon/EncodedDataStream.h 2008-05-30 10:09:31 +0000
@@ -31,6 +31,7 @@
#endif
#include "BigInt.h"
+#include "Engine.h"
#define BYTES_POS(n) ((n == 0) ? 0 : \
(n < (1<<7)) ? 1 : \
@@ -335,7 +336,7 @@
void encode (int type, Value *value);
static int init(void);
- static const unsigned char* decode (const unsigned char *ptr, Value *value, bool
copyFlag);
+ static const UCHAR* decode (const UCHAR *ptr, Value *value, bool copyFlag);
inline static const unsigned char* skip (const unsigned char *ptr)
{