[Samba] help compiling samba

Jed Evnull jedevnull at gmail.com
Sat Aug 30 20:00:07 MDT 2014


Permissions are 0755.

root at android:/data # ls -l smbd
-rwxr-xr-x root     root      9756922 2014-08-30 21:53 smbd

root at android:/data # ./smbd
sh: ./smbd: No such file or directory


On Sat, Aug 30, 2014 at 7:05 PM, Nico Kadel-Garcia <nkadel at gmail.com> wrote:

> Permissions on the deposited file? What dies 'ls smbd' say, or the android
> equivalent?
>
> Nico Kadel-Garcia
> Email: nkadel at gmail.com
> Sent from iPhone
>
> > On Aug 30, 2014, at 12:53, Jed Evnull <jedevnull at gmail.com> wrote:
> >
> > I'm compiling samba-3.6.22 for android with the sourcery arm-2010q1
> > compiler. The compile itself goes fine, but when I copy smbd to my device
> > it's not recognized as a binary. I get the error
> >
> > sh: ./smbd: No such file or directory
> >
> > file under linux tells me:
> >
> >
> > smbd: ELF 32-bit LSB  shared object, ARM, EABI5 version 1 (SYSV),
> > dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
> >
> > export CFLAGS=" -O2"
> > export CC="/home/jeff/arm-2010q1/bin/arm-none-linux-gnueabi-gcc -O2"
> > export PATH=/home/jeff/arm-2010q1/bin:$PATH
> > export STRIP="/home/jeff/arm-2010q1/bin/arm-none-linux-gnueabi-strip"
> > export LD="/home/jeff/arm-2010q1/bin/arm-none-linux-gnueabi-ld"
> > #export LDFLAGS="-static"
> > export samba_cv_HAVE_IFACE_IFCONF=yes
> >
> > ./configure --enable-static --without-krb5 --without-ldap --without-ads
> > --disable-cups --enable-swat=no --with-winbind=no
> > --target=arm-linux-gnueabi --host=arm-linux-gnueabi --prefix=
> > --with-configdir=/etc samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
> > libreplace_cv_HAVE_GETADDRINFO=no
> > ac_cv_file__proc_sys_kernel_core_pattern=yes
> >
> > What am I overlooking?
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list