#At file:///export/home/tmp/ss156133/z/50409-50/ based on revid:ramil@stripped
2841 Staale Smedseng 2010-01-27
Bug#50409 Solaris 8 compatibility broken by assumption about
printstack() being present
When Bug#47391 was fixed, no assumption was made that support
for Solaris 8 was needed. Solaris 8 lacks printstack(), and
the build breaks because of this.
This patch adds a test for the presence of printstack() to
configure.in for 5.0, and uses HAVE_PRINTSTACK to make
decisions rather than the __sun define.
modified:
configure.in
sql/stacktrace.c
sql/stacktrace.h
=== modified file 'configure.in'
--- a/configure.in 2010-01-12 11:41:18 +0000
+++ b/configure.in 2010-01-27 10:38:50 +0000
@@ -2128,7 +2128,7 @@ AC_CHECK_FUNCS(alarm bcmp bfill bmove bz
shmget shmat shmdt shmctl sigaction sigemptyset sigaddset \
sighold sigset sigthreadmask \
snprintf socket stpcpy strcasecmp strerror strsignal strnlen strpbrk strstr strtol \
- strtoll strtoul strtoull tell tempnam thr_setconcurrency vidattr)
+ strtoll strtoul strtoull tell tempnam thr_setconcurrency vidattr printstack)
#
#
=== modified file 'sql/stacktrace.c'
--- a/sql/stacktrace.c 2009-12-06 17:11:37 +0000
+++ b/sql/stacktrace.c 2010-01-27 10:38:50 +0000
@@ -227,7 +227,7 @@ stack trace is much more helpful in diag
resolve it\n");
}
-#elif defined(__sun)
+#elif defined(HAVE_PRINTSTACK)
/* Use Solaris' symbolic stack trace routine. */
#include <ucontext.h>
=== modified file 'sql/stacktrace.h'
--- a/sql/stacktrace.h 2009-12-06 17:11:37 +0000
+++ b/sql/stacktrace.h 2010-01-27 10:38:50 +0000
@@ -35,7 +35,7 @@ void check_thread_lib(void);
#define HAVE_STACKTRACE
extern void set_exception_pointers(EXCEPTION_POINTERS *ep);
#define init_stacktrace() {}
-#elif defined(__sun)
+#elif defined(HAVE_PRINTSTACK)
#define HAVE_STACKTRACE
#define init_stacktrace() {}
#endif
Attachment: [text/bzr-bundle] bzr/staale.smedseng@sun.com-20100127103850-kk07g9x28hpzi89t.bundle
| Thread |
|---|
| • bzr commit into mysql-5.0-bugteam branch (staale.smedseng:2841) Bug#50409 | Staale Smedseng | 27 Jan |