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
6160
June 23, 2007 12:50PM
3311
June 24, 2007 02:22AM
3243
June 25, 2007 12:18AM
3183
June 25, 2007 10:37AM
3315
June 25, 2007 10:46AM
5359
July 08, 2007 09:35PM
3500
July 09, 2007 03:06AM
3454
July 09, 2007 08:17AM
3206
July 09, 2007 08:19AM
3044
July 09, 2007 08:23AM
3274
July 26, 2007 07:40AM
3141
July 26, 2007 09:46AM
Re: Build errors
4178
July 26, 2007 10:48AM
3032
July 26, 2007 10:58AM
3028
July 26, 2007 02:13PM
4248
July 31, 2007 03:49PM
5229
July 31, 2007 04:01PM
3331
July 31, 2007 04:12PM
3084
July 31, 2007 04:13PM
3138
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.