/usr/bin/perl: can’t resolve symbol ’__divdi3’ 

Add -L/usr/lib/gcc-lib/... -lgcc  to the link command when the mysql.so  library gets built (check the output from make  for mysql.so  when you compile the Perl client). The -L  option should specify the path name of the directory where libgcc.a  is located on your system. 

Another cause of this problem may be that Perl and MySQL are not both compiled with gcc . In this case, you can solve the mismatch by compiling both with gcc . 

