Stephan,
----- Original Message -----
From: ""Stephan Hendl"" <[EMAIL PROTECTED]>
Newsgroups: mailing.database.mysql
Sent: Friday, October 11, 2002 12:16 PM
Subject: mysql-3.23.52 on hpux 11 with innodb
> Hallo,
>
> does anybody build a runtime version of mysql-3.23.52 with innodb on an
hp/ux 11.0, 64 bit runtime os?
>
> Using hp's ansi c and aCC the innodb-sourcen gives an error like:
>
>
cc -DHAVE_CONFIG_H -I. -I../.././innobase/os -I.. -I../../include -I../inclu
de -D_REENTRANT -O -DDBUG_OFF -O -DDBUG_OFF -D_REENTRANT -DHAVE_BROKEN_PR
EAD -DDONT_USE_FINITE -DHAVE_BROKEN_GETPASS -DNO_FCNTL_NONBLOCK -DDO_NOT_REM
OVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -DDEBUG_OFF -DUNIV
_MUST_NOT_INLINE -DUNIV_HPUX -c os0thread.c
> cpp: "../include/univ.i", line 59: warning 2001: Redefinition of macro
UNIV_MUST_NOT_INLINE.
> cc: "os0thread.c", line 59: error 1529: Cannot select field of
non-structure.
> cc: "os0thread.c", line 59: error 1527: Incompatible types in cast: Must
cast from scalar to scalar or to void type.
looks like HP-UX-11 has pthread_t defined to be a pointer or integer type
like most other operating systems. In HP-UX-10.20 it was a struct with 3
fields!
Rodolphe Jouannet fixed it with a patch like the following in 3.23:
............
Subject: Compiling MySQL 3.23.52 and 4.0.x on HPUX 11
From: JOUANNET, Rodolphe
Date: Fri, 11 Oct 2002 14:36:54 +0200
............
ChangeSet
1.1226 02/10/11 15:44:45 [EMAIL PROTECTED] +1 -0
os0thread.c:
Fix compilation error on HP-UX-11: pthread_t is a scalar there, not a
struct
like in HP-UX-10.20
innobase/os/os0thread.c
1.17 02/10/11 15:44:30 [EMAIL PROTECTED] +2 -2
Fix compilation error on HP-UX-11: pthread_t is a scalar there, not a
struct
like in HP-UX-10.20
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: heikki
# Host: hundin.mysql.fi
# Root: /home/heikki/mysql
--- 1.16/innobase/os/os0thread.c Sun Aug 25 10:20:08 2002
+++ 1.17/innobase/os/os0thread.c Fri Oct 11 15:44:30 2002
@@ -52,8 +52,8 @@
/*=========*/
os_thread_id_t a)
{
-#ifdef UNIV_HPUX
- /* In HP-UX a pthread_t is a struct of 3 fields: field1, field2,
+#ifdef UNIV_HPUX10
+ /* In HP-UX-10.20 a pthread_t is a struct of 3 fields: field1,
field2,
field3. We do not know if field1 determines the thread uniquely. */
return((ulint)(a.field1));
> Thanks for helping me!
>
> Stephan
Thank you for notifying us of the problem!
Heikki
Innobase Oy
sql query
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php