[2003/09/24 19:25:59, 1] passdb/pdb_mysql.c:mysqlsam_init(922) Connecting to database server, host: localhost, user: samba, password: , database: samba,port: 3306 /usr/local/samba-3.0.0RC4/sbin/smbd: relocation error: /usr/local/samba- 3.0.0RC4/lib/pdb/mysql.so: undefined symbol: mysql_init /usr/local/samba-3.0.0RC4/sbin/smbd: relocation error: /usr/local/samba- 3.0.0RC4/lib/pdb/mysql.so: undefined symbol: mysql_init
Assigning to Jelmer
How did you compile pdb_mysql.so? Does ldd /usr/lib/samba/pdb/mysql.so show any mysql library?
ldd reports the following: myusername@QorTek:/usr/local/samba/lib/pdb# ldd mysql.so libc.so.6 => /lib/libc.so.6 (0x40011000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Have you run ./configure --with-expsam=mysql ?
Here is my sanba_conf script file: # !/bin/bash # ./configure --prefix=/usr/local/samba-3.0.0RC4 \ --localstatedir=/var/samba \ --with-lockdir=/var/lock/samba \ --with-piddir=/var/run/samba \ --with-swatdir=/pub/web/swat-3.0.0RC4 \ --with-mysql-prefix=/usr/local/mysql \ --with-mysql-exec-prefix=/usr/local/mysql/bin \ --with-smbmount=yes \ --with-quotas=yes \ --with-expsam=mysql \ --without-ldap
Can you post your config.log ?
Created attachment 191 [details] This is the config.log that configure wrote Note: that ./configure thinks that mysql_config is located in /usr/local/mysql/bin/bin/mysql_config and does not fail. This file does not exist, however, /usr/local/mysql/bin/mysql_config does
try --with-mysql-exec-prefix=/usr/local/mysql instead of --with-mysql-exec-prefix=/usr/local/mysql/bin
This was a user error, not a bug.
originally reported against one of the 3.0.0rc[1-4] releases. Cleaning up non-production versions.
database cleanup