I've successfully compiled Samba 3.0.6 on a variety of boxes with the following ./configure options: ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --libdir=/etc/samba --with-fhs --with-privatedir=/etc/samba/private --with-lockdir=/var/cache/samba --with-swatdir=/usr/share/swat --with-automount --with-smbmount --with-pam --with-mmap --with-quotas --with-libsmbclient --with-utmp --with-piddir=/var/run/samba --with-acl-support --with-vfs --with-msdfs --with-winbind --with-ldap --enable-cups --with-quotas --with-logfilebase=/var/log =============== So far, this worked well, and gave me working executables on a variety of RH8 and RH9 machines with self-built 2.4.27 kernels. However, with 3.0.7 and 3.1.0, I always get this error. From my research, it seems that this bug is known. Is there a workaround or a patch? To me it seems some build config that doesn't work as advertised. On an RH8 machine without --with-smbwrapper option, I get this: Compiling modules/CP850.c with -fPIC Building plugin bin/CP850.so modules/CP850.po: In function `init_module': modules/CP850.po(.text+0x184): undefined reference to `smb_register_charset' Compiling modules/CP437.c with -fPIC Building plugin bin/CP437.so modules/CP437.po: In function `init_module': modules/CP437.po(.text+0x184): undefined reference to `smb_register_charset' ================================================ glibc version is 2.3.2-4.80.8 on the machine where the compile failed.
Created attachment 711 [details] This patch from michel.gravey!7ici.biz.invalid fixed it
*** This bug has been marked as a duplicate of 1776 ***