List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:June 6 2005 9:19pm
Subject:Re: Problem building 4.1.12 on HP-UX 10.20
View as plain text  
In the last episode (Jun 06), Albert Chin said:
> I'm trying to build mysql-4.1.12 on HP-UX 10.20 with gcc-3.4.3. HP-UX
> 10.20 has CMA threads.
> 
> I have the following build failure:
>   gmake[4]: Entering directory `/opt/build/mysql-4.1.12/innobase/srv'
>   gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I./../../include
[...]
>   -DUNIV_HPUX -DUNIV_HPUX10 -c srv0srv.c
>   srv0srv.c: In function `srv_suspend_thread':
>   srv0srv.c:675: error: aggregate value used where an integer was expected
>   srv0srv.c: In function `srv_release_threads':
>   srv0srv.c:739: error: aggregate value used where an integer was expected
>   gmake[4]: *** [srv0srv.o] Error 1
>   gmake[4]: Leaving directory `/opt/build/mysql-4.1.12/innobase/srv'
> 
> The errant code:
>         if (srv_print_thread_releases) {
>                 fprintf(stderr,
>                         "Suspending thread %lu to slot %lu meter %lu\n",
>                         (ulong) os_thread_get_curr_id(), (ulong) slot_no,
>                         (ulong) srv_meter[SRV_RECOVERY]);
>         }

Shouldn't "os_thread_get_curr_id()" be
"os_thread_pf(os_thread_get_curr_id())" ?  Try that, or just remove the
fprintfs; they are debugging code that assumes that a pthread_t is a
printable type (there is no such guarantee).

-- 
	Dan Nelson
	dnelson@stripped
Thread
Problem building 4.1.12 on HP-UX 10.20Albert Chin6 Jun
  • Re: Problem building 4.1.12 on HP-UX 10.20Dan Nelson6 Jun
    • Re: Problem building 4.1.12 on HP-UX 10.20Albert Chin7 Jun