find_library: checking for mysql_query() in -lmysqlclient... -------------------- yes "gcc -o conftest -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.9.1 -I. -I/usr/local/mysql/include -O -pipe -I/opt/local/include -O -pipe -I/opt/local/include -fno-common -pipe -fno-common conftest.c -L"/opt/local/lib" -L""/usr/local/mysql/lib -lmysqlclient_r -lz -lm"" -L/opt/local/lib -lruby-static -lmysqlclient -lpthread -ldl -lobjc " conftest.c: In function ‘t’: conftest.c:3: error: ‘mysql_query’ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))mysql_query; return 0; } /* end */ "gcc -o conftest -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.9.1 -I. -I/usr/local/mysql/include -O -pipe -I/opt/local/include -O -pipe -I/opt/local/include -fno-common -pipe -fno-common conftest.c -L"/opt/local/lib" -L""/usr/local/mysql/lib -lmysqlclient_r -lz -lm"" -L/opt/local/lib -lruby-static -lmysqlclient -lpthread -ldl -lobjc " checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { mysql_query(); return 0; } /* end */ --------------------