[Samba] Problems compiling samba-3.0.7 on Redhat-7.2

Johannes-Ulrich Menzebach menze at vitesse.com
Tue Sep 21 11:10:50 GMT 2004


When compiling samba-3.0.7 on Redhat-7.2, stock kernel 2.4.26,
I get undefined references:
-------
Compiling libads/ads_status.c with -fPIC
Linking nsswitch/libnss_wins.so
lib/system.po: In function `sys_dlopen':
lib/system.po(.text+0xc17): undefined reference to `dlopen'
lib/system.po: In function `sys_dlsym':
lib/system.po(.text+0xc3b): undefined reference to `dlsym'
lib/system.po: In function `sys_dlclose':
lib/system.po(.text+0xc5c): undefined reference to `dlclose'
lib/system.po: In function `sys_dlerror':
lib/system.po(.text+0xc7a): undefined reference to `dlerror'
lib/username.po: In function `user_in_netgroup_list':
lib/username.po(.text+0xa47): undefined reference to `yp_get_default_domain'
lib/access.po: In function `string_match':
lib/access.po(.text+0x1d1): undefined reference to `yp_get_default_domain'
lib/util.po: In function `automount_lookup':
lib/util.po(.text+0x1eb9): undefined reference to `yp_get_default_domain'
lib/util.po(.text+0x1f01): undefined reference to `yperr_string'
lib/util.po(.text+0x1fb6): undefined reference to `yp_match'
lib/util.po(.text+0x20e7): undefined reference to `yperr_string'
Compiling nsswitch/pam_winbind.c with -fPIC
Linking nsswitch/pam_winbind.so
----------
and later:
----------
Linking libsmbclient non-shared library bin/libsmbclient.a
Linking libsmbclient shared library bin/libsmbclient.so
Compiling modules/vfs_recycle.c with -fPIC
Building plugin bin/recycle.so
modules/vfs_recycle.po: In function `recycle_connect':
modules/vfs_recycle.po(.text+0x17): undefined reference to `DEBUGLEVEL_CLASS'
modules/vfs_recycle.po(.text+0x31): undefined reference to `DEBUGLEVEL_CLASS_ISSET'
modules/vfs_recycle.po(.text+0x56): undefined reference to `dbghdr'
modules/vfs_recycle.po(.text+0x6c): undefined reference to `dbgtext'
modules/vfs_recycle.po: In function `recycle_disconnect':
modules/vfs_recycle.po(.text+0xa7): undefined reference to `DEBUGLEVEL_CLASS'
modules/vfs_recycle.po(.text+0xc1): undefined reference to `DEBUGLEVEL_CLASS_ISSET'
modules/vfs_recycle.po(.text+0xe6): undefined reference to `dbghdr'
modules/vfs_recycle.po(.text+0x102): undefined reference to `lp_servicename'
modules/vfs_recycle.po(.text+0x111): undefined reference to `dbgtext'
----------
and a lot more of these.

My configure options:
./configure --prefix=/opt/samba --sysconfdir=/etc/samba --with-configdir=/etc/samba \
--with-privatedir=/etc/samba --with-lockdir=/var/cache/samba --with-piddir=/var/run/samba \
--with-automount --with-pam --with-msdfs --with-libsmbclient --with-smbmount --with-vfs \
--with-logfilebase=/var/log/samba --with-ldap --with-ads

The general build environment should be ok on that box (compiled the kernel and other stuff).

Any ideas and pointers are highly welcome.

Thanks,

	Uli




-- 
+----------------------------------------------------------------------+
|     Dr. Johannes-Ulrich Menzebach              menze at vitesse.com     |
|                   Vitesse Semiconductor GmbH & Co KG                 |
|     D-47057 Duisburg Pappenstr. 36     Tel. +49/203/306-1765         |
|     D-44149 Dortmund Borussiastr. 112  Tel. +49/231/6560-186         |
| Key fingerprint = A36C 9660 6A1C 91E6 051E  DF1A 573A 770B DD66 9D9F |
+----------------------------------------------------------------------+



More information about the samba mailing list