Re: Build errors
Hi
They are included in enum_server_command, these are the differents between versions:
mysql-5.0.45 include/mysql_com.h
< COM_STMT_PREPARE, COM_STMT_EXECUTE, COM_STMT_SEND_LONG_DATA, COM_STMT_CLOSE,
< COM_STMT_RESET, COM_SET_OPTION, COM_STMT_FETCH,
mysql-4.1.22 mysql/mysql_com.h
> COM_PREPARE, COM_EXECUTE, COM_LONG_DATA, COM_CLOSE_STMT,
> COM_RESET_STMT, COM_SET_OPTION,
I see COM_STMT_PREPARE, ... definded in include/mysql_h.ic on mysql-5.0.45 source but I don't find where they are defined in mysql 4.1.22
This don't enter in the if sentence
#if defined(COM_EXECUTE)
#endif
So I changed it for this:
#if !defined(COM_STMT_EXECUTE) && \
!defined(COM_STMT_PREPARE) && \
!defined(COM_STMT_CLOSE) && \
!defined(COM_STMT_SEND_LONG_DATA) && \
!defined(COM_STMT_RESET)
#define COM_STMT_EXECUTE COM_EXECUTE
#define COM_STMT_PREPARE COM_PREPARE
#define COM_STMT_CLOSE COM_CLOSE_STMT
#define COM_STMT_SEND_LONG_DATA COM_LONG_DATA
#define COM_STMT_RESET COM_RESET_STMT
#endif
But fails on another file
network-mysqld-proxy.c: In function ‘proxy_lua_init_global_fenv’:
network-mysqld-proxy.c:303: error: ‘COM_STMT_PREPARE’ undeclared (first use in this function)
network-mysqld-proxy.c:303: error: (Each undeclared identifier is reported only once
network-mysqld-proxy.c:303: error: for each function it appears in.)
network-mysqld-proxy.c:304: error: ‘COM_STMT_EXECUTE’ undeclared (first use in this function)
network-mysqld-proxy.c:305: error: ‘COM_STMT_SEND_LONG_DATA’ undeclared (first use in this function)
network-mysqld-proxy.c:306: error: ‘COM_STMT_CLOSE’ undeclared (first use in this function)
network-mysqld-proxy.c:307: error: ‘COM_STMT_RESET’ undeclared (first use in this function)
network-mysqld-proxy.c:309: error: ‘COM_STMT_FETCH’ undeclared (first use in this function)
network-mysqld-proxy.c:315: error: ‘MYSQL_TYPE_NEWDECIMAL’ undeclared (first use in this function)
network-mysqld-proxy.c:339: error: ‘MYSQL_TYPE_BIT’ undeclared (first use in this function)
network-mysqld-proxy.c: In function ‘proxy_read_query_result’:
network-mysqld-proxy.c:2668: error: ‘COM_STMT_RESET’ undeclared (first use in this function)
network-mysqld-proxy.c:2716: error: ‘COM_STMT_FETCH’ undeclared (first use in this function)
network-mysqld-proxy.c:2720: error: ‘SERVER_STATUS_LAST_ROW_SENT’ undeclared (first use in this function)
network-mysqld-proxy.c:2723: error: ‘SERVER_STATUS_CURSOR_EXISTS’ undeclared (first use in this function)
network-mysqld-proxy.c:2737: error: ‘COM_STMT_PREPARE’ undeclared (first use in this function)
network-mysqld-proxy.c:2793: error: ‘COM_STMT_EXECUTE’ undeclared (first use in this function)
make[2]: *** [mysql_proxy-network-mysqld-proxy.o] Error 1
Subject
Views
Written By
Posted
5841
June 23, 2007 12:50PM
3203
June 24, 2007 02:22AM
3117
June 25, 2007 12:18AM
3062
June 25, 2007 10:37AM
3219
June 25, 2007 10:46AM
5231
July 08, 2007 09:35PM
3371
July 09, 2007 03:06AM
3340
July 09, 2007 08:17AM
3112
July 09, 2007 08:19AM
2924
July 09, 2007 08:23AM
3174
July 26, 2007 07:40AM
3046
July 26, 2007 09:46AM
Re: Build errors
4070
July 26, 2007 10:48AM
2926
July 26, 2007 10:58AM
2925
July 26, 2007 02:13PM
4101
July 31, 2007 03:49PM
5078
July 31, 2007 04:01PM
3224
July 31, 2007 04:12PM
2999
July 31, 2007 04:13PM
3039
August 01, 2007 05:52AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.