List:MySQL and PHP« Previous MessageNext Message »
From:Bram Stoker Date:August 4 2007 8:33am
Subject:mysqlnd gcc 3.4.6 compile problem
View as plain text  

I encountered compilation problems on FreeBSD using gcc 3.4.6

in mysqlnd_statistics.h there is a macro 
MYSQLND_INC_CONN_STATISTIC_W_VALUE3
mysqlnd_wireprotocol.c:302: error: stray '\' in program

There is a really small glitch.. an addded \ in the second line.

I've atached a "patch" :)

-Mike



*** mysqlnd_statistics.h.orig	Sat Aug  4 10:04:07 2007
--- mysqlnd_statistics.h	Sat Aug  4 10:05:24 2007
***************
*** 100,106 ****
   } 
  
  #define MYSQLND_INC_CONN_STATISTIC_W_VALUE3(conn_stats, statistic1, value1, statistic2, value2, statistic3, value3) \
!  { \							\
   	if (mysqlnd_global_stats) { \
  		my_uint64 v1 = (value1); \
  		my_uint64 v2 = (value2); \
--- 100,106 ----
   } 
  
  #define MYSQLND_INC_CONN_STATISTIC_W_VALUE3(conn_stats, statistic1, value1, statistic2, value2, statistic3, value3) \
!  { \							
   	if (mysqlnd_global_stats) { \
  		my_uint64 v1 = (value1); \
  		my_uint64 v2 = (value2); \
Thread
mysqlnd gcc 3.4.6 compile problemBram Stoker4 Aug