MySQL Forums
Forum List  »  Router & Proxy

Re: Build errors
Posted by: Francisco Augusto
Date: July 26, 2007 10:48AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
5914
June 23, 2007 12:50PM
3232
June 24, 2007 02:22AM
3162
June 25, 2007 12:18AM
3091
June 25, 2007 10:37AM
3246
June 25, 2007 10:46AM
5264
July 08, 2007 09:35PM
3399
July 09, 2007 03:06AM
3373
July 09, 2007 08:17AM
3137
July 09, 2007 08:19AM
2953
July 09, 2007 08:23AM
3200
July 26, 2007 07:40AM
3069
July 26, 2007 09:46AM
Re: Build errors
4098
July 26, 2007 10:48AM
2952
July 26, 2007 10:58AM
2948
July 26, 2007 02:13PM
4135
July 31, 2007 03:49PM
5128
July 31, 2007 04:01PM
3254
July 31, 2007 04:12PM
3025
July 31, 2007 04:13PM
3067
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.