• Sergey Vojtovich's avatar
    Applying InnoDB snapshot · 743aa878
    Sergey Vojtovich authored
    Detailed revision comments:
    
    r6861 | vdimov | 2010-03-23 19:31:02 +0200 (Tue, 23 Mar 2010) | 36 lines
    branches/zip:
    
    Merge joerg@mysql.com-20100322150231-vdq0afbqtmbs6phy from BZR,
    
    Including univ.i before mysql/plugin.h is needed to avoid this
    compiler error:
    
    o  This is how gcc puts it:
    o  > > ccache /usr/local/gcc-4.3.2/bin/gcc -static-libgcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -I../../zlib    -g -O3 -march=i686   -DUNIV_LINUX -MT libinnobase_a-trx0i_s.o -MD -MP -MF .deps/libinnobase_a-trx0i_s.Tpo -c -o libinnobase_a-trx0i_s.o `test -f 'trx/trx0i_s.c' || echo './'`trx/trx0i_s.c
    o  > > In file included from ./include/univ.i:114,
    o  > >                  from trx/trx0i_s.c:36:
    o  > > ../../include/my_pthread.h:628: error: expected ')' before '*' token
    o  > > In file included from ../../include/my_pthread.h:732,
    o  > >                  from ./include/univ.i:114,
    o  > >                  from trx/trx0i_s.c:36:
    o  > > ../../include/mysql/psi/mysql_thread.h:100: error: expected specifier-qualifier-list before 'pthread_rwlock_t'
    o  > > ../../include/mysql/psi/mysql_thread.h:116: error: expected specifier-qualifier-list before 'pthread_rwlock_t'
    o  > > ../../include/mysql/psi/mysql_thread.h: In function 'inline_mysql_rwlock_init':
    o  > > ../../include/mysql/psi/mysql_thread.h:711: error: 'mysql_rwlock_t' has no member named 'm_psi'
    o  > > ../../include/mysql/psi/mysql_thread.h:716: error: 'mysql_rwlock_t' has no member named 'm_rwlock'
    o  > > .... ((continued))
    o  
    o  Intel's icc gives slightly clearer messages:
    o  > > icc -static-intel -static-libgcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I./include -I../../sql -I. -I../../zlib    -O3 -g -unroll2 -ip -mp -restrict -no-ftz -no-prefetch   -DUNIV_LINUX -MT libinnobase_a-trx0i_s.o -MD -MP -MF .deps/libinnobase_a-trx0i_s.Tpo -c -o libinnobase_a-trx0i_s.o `test -f 'trx/trx0i_s.c' || echo './'`trx/trx0i_s.c
    o  > > ../../include/my_pthread.h(628): error: identifier "pthread_rwlock_t" is undefined
    o  > >   extern int rw_pr_init(rw_pr_lock_t *);
    o  > >                         ^
    o  > > 
    o  > > ../../include/mysql/psi/mysql_thread.h(100): error: identifier "pthread_rwlock_t" is undefined
    o  > >     rw_lock_t m_rwlock;
    o  > >     ^
    o  > > 
    o  > > ../../include/mysql/psi/mysql_thread.h(116): error: identifier "pthread_rwlock_t" is undefined
    o  > >     rw_pr_lock_t m_prlock;
    o  > >     ^
    743aa878
trx0i_s.c 38.3 KB