Bug 11220 - Build error on Debian 6.0 due to undefined reference to `rep_strlcpy'
Summary: Build error on Debian 6.0 due to undefined reference to `rep_strlcpy'
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.2.1
Hardware: x64 Linux
: P5 major (vote)
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
Depends on:
Reported: 2015-04-16 09:58 UTC by dongsheng.song
Modified: 2022-02-11 07:54 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description dongsheng.song 2015-04-16 09:58:47 UTC
Here is the error messages (Samba 4.1.17 and 4.2.1 has the same error):

# make V=1
WAF_MAKE=1 python ./buildtools/bin/waf build
./buildtools/wafsamba/samba_utils.py:397: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Waf: Entering directory `/root/samba-4.1.17/bin'
        Selected embedded Heimdal build
[3347/3838] Linking default/lib/talloc/pytalloc.so
05:41:08 runner /usr/bin/gcc default/lib/talloc/pytalloc_9.o -o /root/samba-4.1.17/bin/default/lib/talloc/pytalloc.so -fstack-protector -Wl,--export-dynamic -lpthread -Wl,--as-needed -shared -Ldefault/lib/talloc -L/usr/local/lib -L/usr/lib -Wl,-Bdynamic -lpytalloc-util -ltalloc -lm -ldl -lutil -lpython2.6 -lrt -lcrypt -lnsl -lattr
[3349/3838] Linking default/source4/heimdal_build/libcom_err-samba4.so
05:41:08 runner /usr/bin/gcc default/source4/heimdal/lib/com_err/com_err_128.o default/source4/heimdal/lib/com_err/error_128.o -o /root/samba-4.1.17/bin/default/source4/heimdal_build/libcom_err-samba4.so -fstack-protector -Wl,-no-undefined -Wl,--export-dynamic -lpthread -Wl,--as-needed -shared -Wl,--version-script=/root/samba-4.1.17/source4/heimdal/lib/com_err/version-script.map -Wl,-h,libcom_err-samba4.so.0 -Ldefault/source4/heimdal_build -L/usr/local/lib -Wl,-Bdynamic -lroken-samba4 -lcrypt -lattr -lnsl -ldl -lrt -lutil -lresolv
default/source4/heimdal/lib/com_err/com_err_128.o: In function `error_message':
com_err.c:(.text+0x95): undefined reference to `rep_strlcpy'
default/source4/heimdal/lib/com_err/error_128.o: In function `com_right_r':
error.c:(.text+0x18a): undefined reference to `rep_strlcpy'
collect2: ld returned 1 exit status
Waf: Leaving directory `/root/samba-4.1.17/bin'
Build failed:  -> task failed (err #1):
        {task: cc_link com_err_128.o,error_128.o -> libcom_err-samba4.so}
make: *** [all] Error 1

Here is my configration:
./configure --prefix=/usr \
                --enable-fhs \
                --sysconfdir=/etc \
                --localstatedir=/var \
                --with-privatedir=/var/lib/samba/private \
                --with-piddir=/var/run/samba \
                --with-pammodulesdir=/lib/x86_64-linux-gnu/security \
                --with-pam \
                --with-syslog \
                --with-utmp \
                --with-pam_smbpass \
                --with-winbind \
                --with-shared-modules=idmap_rid,idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_tdb2,vfs_dfs_samba4,auth_samba4 \
                --with-automount \
                --with-ldap \
                --with-ads \
                --with-dnsupdate \
                --libdir=/usr/lib/x86_64-linux-gnu \
                --with-modulesdir=/usr/lib/x86_64-linux-gnu/samba \
                --datadir=/usr/share \
                --with-lockdir=/var/run/samba \
                --with-statedir=/var/lib/samba \
                --with-cachedir=/var/cache/samba \
                --disable-avahi \
                --disable-rpath \
                --disable-rpath-install \
Comment 1 Björn Jacke 2022-02-11 07:54:17 UTC
current samba release build fine on all current debian releases