From: Urban Hafner Date: 2001-05-22T03:20:44+09:00 Subject: [ruby-talk:15498] mysql-ruby-2.3.2a with mysql-3.22.32 ? Hello everybody, I a trying to compile mysql-ruby 2.3.2a with ruby 1.7 and mysql 3.22.32 As the README says there is the requirement for mysql 3.23.10 . However, did somebody manage to get it compiled with 3.22.32? I think I didn't do anything wrong with the extconf.rb file. The header files are in /usr/include/mysql so I have set $CFLAGS to "-I/usr/include/mysql". libmysqlclient.a is in /usr/lib so I have set $LDFLAGS to "-L/usr/lib". Is there any chance to get it working? Bye, Urban The errors: urban@debian:~/mysql-ruby-2.3.2a$ make gcc -fPIC -g -O2 -I/usr/include/mysql -I/usr/local/lib/ruby/1.7/i586-linux -I/usr/local/include -c -o mysql.o mysql.c mysql.c:12: warning: `Qtrue' redefined /usr/local/lib/ruby/1.7/i586-linux/ruby.h:141: warning: this is the location of the previous definition mysql.c:13: warning: `Qfalse' redefined /usr/local/lib/ruby/1.7/i586-linux/ruby.h:140: warning: this is the location of the previous definition mysql.c: In function `free_mysql': mysql.c:60: `TRUE' undeclared (first use in this function) mysql.c:60: (Each undeclared identifier is reported only once mysql.c:60: for each function it appears in.) mysql.c: In function `free_mysqlres': mysql.c:67: `FALSE' undeclared (first use in this function) mysql.c: In function `mysql_raise': mysql.c:78: too few arguments to function `rb_raise' mysql.c: In function `mysqlres2obj': mysql.c:87: `FALSE' undeclared (first use in this function) mysql.c: In function `init': mysql.c:125: `FALSE' undeclared (first use in this function) mysql.c:126: `TRUE' undeclared (first use in this function) mysql.c: In function `real_connect': mysql.c:169: `TRUE' undeclared (first use in this function) mysql.c: In function `my_close': mysql.c:282: `FALSE' undeclared (first use in this function) mysql.c: In function `query': mysql.c:517: `FALSE' undeclared (first use in this function) mysql.c: In function `query_with_result': mysql.c:527: `TRUE' undeclared (first use in this function) mysql.c:527: `FALSE' undeclared (first use in this function) mysql.c: In function `check_free': mysql.c:551: `TRUE' undeclared (first use in this function) mysql.c: In function `fetch_hash2': mysql.c:670: `FALSE' undeclared (first use in this function) mysql.c: In function `fetch_hash': mysql.c:689: `FALSE' undeclared (first use in this function) mysql.c: In function `res_free': mysql.c:713: `TRUE' undeclared (first use in this function) mysql.c: In function `each_hash': mysql.c:764: `FALSE' undeclared (first use in this function) mysql.c: In function `Init_mysql': mysql.c:833: `cObject' undeclared (first use in this function) make: *** [mysql.o] Error 1 urban@debian:~/mysql-ruby-2.3.2a$