[Samba] Cross Compiling Samba 4.0.6 for ARM increases size of binaries
pranav desai
pndesai2 at gmail.com
Fri May 31 12:05:11 MDT 2013
Hi,
I have cross-compiled just the basic samba 4.0.6 using bitbake recipe
for ARM, which succeeded.
However the resulting binaries are large in size. I used the exact
same configuration options in both the cases.
There is at least a 10 fold increase in the smbd compared to native x86.
--- Native x86 ----
-rwxr-xr-x 1 pranavd users 92979 May 31 10:57 /usr/sbin/smbd
-rwxr-xr-x 1 pranavd users 351196 May 31 10:57 /usr/sbin/nmbd
--- Cross Compiled ----
-rwxr-xr-x 2 pranavd users 9624696 May 30 18:11
/work/armv7a-vfp-neon-oe-linux-gnueabi/samba-4.0.6-r8/packages-split/samba/usr/sbin/smbd
-rwxr-xr-x 2 pranavd users 6020020 May 30 18:11
/work/armv7a-vfp-neon-oe-linux-gnueabi/samba-4.0.6-r8/packages-split/samba/usr/sbin/nmbd
Can someone please suggest me how to reduce the size of the binaries?
I have included the configuration options used.
Regards,
Pranav
Here are the configuration options I used in my bb recipe.
--build=x86_64-linux
--host=arm-oe-linux-gnueabi
--target=arm-oe-linux-gnueabi
--prefix=/usr
--exec_prefix=/usr
--bindir=/usr/bin
--sbindir=/usr/sbin
--libexecdir=/usr/libexec
--datadir=/usr/share
--sysconfdir=/etc
--sharedstatedir=/com
--localstatedir=/var
--libdir=/usr/lib
--includedir=/usr/include
--oldincludedir=/usr/include
--infodir=/usr/share/info
--mandir=/usr/share/man
--disable-silent-rules
--disable-dependency-tracking
--with-libtool-sysroot=/local/mnt/workspace/9x25/AU_753_samba_cfg/oe-core/build/tmp-eglibc/sysroots/mdm9625
--disable-cups
--with-readline=/local/mnt/workspace/9x25/AU_753_samba_cfg/oe-core/build/tmp-eglibc/sysroots/mdm9625/usr/lib/..
--with-libiconv=/local/mnt/workspace/9x25/AU_753_samba_cfg/oe-core/build/tmp-eglibc/sysroots/mdm9625/usr/lib/..
--without-automount
--with-configdir=/etc/samba
--with-privatedir=/etc/samba/private
--with-lockdir=/var/lock
--with-piddir=/var/run
--with-logfilebase=/var/log
--with-libdir=/usr/lib
--with-mandir=/usr/share/man
--with-swatdir=/usr/share/swat
--with-aio-support
--without-libtalloc
--without-acl-support
--disable-avahi
--without-winbind
--without-swat
--without-ads
--without-ldap
--disable-iprint
--without-pam
--without-utmp
--without-acl-support
--without-syslog
--without-dnsupdate
--without-profiling-data
--without-cluster-support
--without-ad-dc
--disable-ntdb
--enable-fhs
samba_cv_struct_timespec=yes
libreplace_cv_HAVE_MMAP=yes
--enable-nss-wrapper
--without-ads
--without-ldap
--without-krb5
ac_cv_path_PYTHON=/not/exist
ac_cv_path_PYTHON_CONFIG=/not/exist
SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes
samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
linux_getgrouplist_ok=no
samba_cv_HAVE_BROKEN_GETGROUPS=no
samba_cv_HAVE_FTRUNCATE_EXTEND=yes
samba_cv_have_setresuid=yes
samba_cv_have_setresgid=yes
samba_cv_linux_getgrouplist_ok=yes
samba_cv_struct_timespec=yes
samba_cv_big_endian=no
samba_cv_little_endian=yes
libreplace_cv_HAVE_GETADDRINFO=no
samba_cv_HAVE_WRFILE_KEYTAB=no
smb_krb5_cv_enctype_to_string_takes_krb5_context_arg=no
smb_krb5_cv_enctype_to_string_takes_size_t_arg=no
ac_cv_file__proc_sys_kernel_core_pattern=yes
samba_cv_SIZEOF_BLKCNT_T_8=yes
More information about the samba
mailing list