[Samba] Make/Build Error on armhf

L.P.H. van Belle belle at bazuin.nl
Fri Apr 5 07:40:23 UTC 2019


Hi Dirk. 

Ok, now im ready with the debian packages for 4.10, this could make your life more easy. 
I've not tested this but should work, you could try this. 

Install a debian 9 server as minimal as possible, so choose expert install, only install ssh server, nothing else.

Now in this order, start building the armhf samba 4.10 packages
This should be easy todo now since i've match the packages already with debian 9. 

Create these folders. 

01-talloc
02-tevent
03-tdb
04-cmocka
05-ldb
06-nss-wrapper
07-resolv-wrapper
08-uid-wrapper
09-socket-wrapper
10-pam-wrapper
11-samba

# You need some build program's
apt-get install ca-certificates wget mc gnupg2 lsb-release --no-install-recommends -y
RELEASE="$(lsb_release -sc)"

echo "# backports ${RELEASE}
deb http://ftp.nl.debian.org/debian $RELEASE-backports main contrib non-free
" > /etc/apt/sources.list.d/$RELEASE-backports.list

wget -O /tmp/key.gpg http://apt.van-belle.nl/louis-van-belle.gpg-key.asc
apt-key add /tmp/key.gpg
rm /tmp/key.gpg

# Backports for build essential scripts. 
apt-get update -y
apt-get install -t $RELEASE-backports debhelper lintian devscripts build-essential fakeroot dh-systemd libdistro-info-perl -y

echo "# sources
# only amd64 and i386 packages, use the sources for build other versions.
#deb http://apt.van-belle.nl/debian $RELEASE-samba410 main contrib non-free
deb-src http://apt.van-belle.nl/debian $RELEASE-samba410 main contrib non-free

" > /etc/apt/sources.list.d/van-belle.list
apt-get update -y

Now enable the wanted samba release in /etc/apt/sources.list.d/van-belle.list only the DEB-SRC! 
Next. 
cd 01-talloc
apt-get source talloc
cd talloc-2.1.xx.. 

Edit the change log: 
dch -i 

Look whats done on other parts, i suggest, just an entry that shows that it a rebuild for armhf.


Install the needed build depends. Run : 
apt-get build-dep talloc --autoremove 
DO add the --autoremove, because after the build you want to remove as much packages as possible again. 

Then simple rebuild the package with. 
dpkg-buildpackage -b

When done, you see packages one folder back ( in 01-talloc ) 
apt-get remove --purge talloc 

Next would be tevent, but that need talloc as build depend.
For this we create a local repo.

Create this script

You need to change one thing in here. 
This : file:/home/pbuilder/archive/build-samba 
Change this to the folder where you created the 01-xx 02-xx folders. 

And put this script below in this folder. 

## SCRIPT START update-local-repo.sh 
#!/bin/bash

set -e

if [ -z ${1} ]
then
    echo "Error, Missing the folder with the .deb files as \$1"
    exit 1
fi

BUILDARCH=$(dpkg-architecture -q DEB_BUILD_ARCH)
echo "Processing for Arch: ${BUILDARCH}"

if [ ! -e /etc/apt/sources.list.d/file-repo.list ]; then
    echo "deb [trusted=yes] file:/home/pbuilder/archive/build-samba  ${BUILDARCH}/" > /etc/apt/sources.list.d/file-repo.list
fi

if [ ! -d ${BUILDARCH} ]; then
    mkdir ${BUILDARCH}
fi

if [ $(ls ${1}/*| grep "_${BUILDARCH}.deb" | wc -l) -ge 1 ]; then
    echo "Copy ${BUILDARCH}.deb to ${BUILDARCH}/"
    cp $1/*${BUILDARCH}.deb  ${BUILDARCH}/
else
    echo "No files detected in $1"
fi

if [ $(ls ${1}/*| grep "_all.deb" | wc -l) -ge 1 ]; then
    echo "Copy _all.deb to ${BUILDARCH}/"
    cp $1/*_all.deb  ${BUILDARCH}/
else
    echo "no *_all.deb detected in $1"
fi

dpkg-scanpackages ${BUILDARCH} /dev/null > ${BUILDARCH}/Packages
echo -n "Running: apt-get update -qq  ... Please wait..."
apt-get -qq update
## SCRIPT END

After a build is done, cd /home/pbuilder/archive/build-samba/
bash what-ever-you-named_the_above-repo-script.sh 01-talloc 

This create a local file repo and now your newly build talloc is available. 

Now to 02-tevent, and repeat the above until you've done samba. 
cd 02-tevent

 etc. repeat the above. 

In the end when everything is done, you can point a webserver to the folder. 
In case of above example.   file:/home/pbuilder/archive/build-samba/amd64 ( or 386) cointain all deps. 
Symlinking is sufficent also, as long as you allow "FollowSymlink" in apache. 

Then this wil change to : 
echo "deb [trusted=yes] http://server/  ${BUILDARCH}/" > /etc/apt/sources.list.d/file-repo.list

And now you can deploy them to all you servers. 
Questions just ask. 

Greetz, 

Louis


> -----Oorspronkelijk bericht-----
> Van: Dirk Laurenz [mailto:samba at laurenz.ws] 
> Verzonden: vrijdag 5 april 2019 8:49
> Aan: 'L.P.H. van Belle'
> Onderwerp: AW: [Samba] Make/Build Error on armhf
> 
> But checkinstall fails now
> 
> root at bh01:/install/samba-4.10.1# checkinstall
> 
> checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
>            This software is released under the GNU GPL.
> 
> 
> The package documentation directory ./doc-pak does not exist.
> Should I create a default set of package docs?  [y]: y
> 
> Preparing package documentation...OK
> 
> Please write a description for the package.
> End your description with an empty line or EOF.
> >> SAMBA AD DC
> >>
> 
> *****************************************
> **** Debian package creation selected ***
> *****************************************
> 
> This package will be built according to these values:
> 
> 0 -  Maintainer: [ root at bh01 ]
> 1 -  Summary: [ SAMBA AD DC ]
> 2 -  Name:    [ samba ]
> 3 -  Version: [ 4.10.1 ]
> 4 -  Release: [ 1 ]
> 5 -  License: [ GPL ]
> 6 -  Group:   [ checkinstall ]
> 7 -  Architecture: [ armhf ]
> 8 -  Source location: [ samba-4.10.1 ]
> 9 -  Alternate source location: [  ]
> 10 - Requires: [  ]
> 11 - Provides: [ samba ]
> 12 - Conflicts: [  ]
> 13 - Replaces: [  ]
> 
> Enter a number to change any of them or press ENTER to continue: 2
> Enter new name:
> >> samba4
> 
> This package will be built according to these values:
> 
> 0 -  Maintainer: [ root at bh01 ]
> 1 -  Summary: [ SAMBA AD DC ]
> 2 -  Name:    [ samba4 ]
> 3 -  Version: [ 4.10.1 ]
> 4 -  Release: [ 1 ]
> 5 -  License: [ GPL ]
> 6 -  Group:   [ checkinstall ]
> 7 -  Architecture: [ armhf ]
> 8 -  Source location: [ samba-4.10.1 ]
> 9 -  Alternate source location: [  ]
> 10 - Requires: [  ]
> 11 - Provides: [ samba ]
> 12 - Conflicts: [  ]
> 13 - Replaces: [  ]
> 
> Enter a number to change any of them or press ENTER to continue:
> 
> Installing with make install...
> 
> ========================= Installation results 
> ===========================
> PYTHONHASHSEED=1 WAF_MAKE=1  ./buildtools/bin/waf install
> Waf: Entering directory `/install/samba-4.10.1/bin/default'
> * create /var/lib/samba/bind-dns
>         Selected embedded Heimdal build
> Checking project rules ...
> Project rules pass
> [146/148] Linking bin/default/lib/replace/libreplace-samba4.inst.so
> + install /usr/lib/samba/libreplace-samba4.so (from
> bin/default/lib/replace/libreplace-samba4.inst.so)
> Waf: Leaving directory `/install/samba-4.10.1/bin/default'
> Build failed
> Traceback (most recent call last):
>   File 
> "/install/samba-4.10.1/third_party/waf/waflib/Build.py", line 1162,
> in do_install
>     self.copy_fun(src, tgt)
>   File 
> "/install/samba-4.10.1/third_party/waf/waflib/Build.py", line 1066,
> in copy_fun
>     shutil.copy2(src, tgt)
>   File "/usr/lib/python3.5/shutil.py", line 258, in copy2
>     copystat(src, dst, follow_symlinks=follow_symlinks)
>   File "/usr/lib/python3.5/shutil.py", line 201, in copystat
>     follow_symlinks=follow)
> FileNotFoundError: [Errno 2] No such file or directory
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File 
> "/install/samba-4.10.1/third_party/waf/waflib/Task.py", line 320, in
> process
>     ret = self.run()
>   File 
> "/install/samba-4.10.1/third_party/waf/waflib/Build.py", line 1101,
> in run
>     fun(x.abspath(), y.abspath(), x.path_from(launch_node))
>   File 
> "/install/samba-4.10.1/third_party/waf/waflib/Build.py", line 1168,
> in do_install
>     raise Errors.WafError('Could not install the file %r' % tgt, e)
> waflib.Errors.WafError: Could not install the file
> '/usr/lib/samba/libreplace-samba4.so'
> 
> Makefile:10: recipe for target 'install' failed
> make: *** [install] Error 1
> 
> ****  Installation failed. Aborting package creation.
> 
> Cleaning up...OK
> 
> Bye.
> 
> I add all to the
> 
> -----Ursprüngliche Nachricht-----
> Von: L.P.H. van Belle <belle at bazuin.nl> 
> Gesendet: Donnerstag, 4. April 2019 14:02
> An: Dirk Laurenz <samba at laurenz.ws>; samba-technical at lists.samba.org
> Betreff: RE: [Samba] Make/Build Error on armhf
> 
> Hai Dirk, 
> 
> Can you be more precise? 
> 
> You use the backported build packages? ( as in -t 
> stretch-backports ) as
> shown. 
> Or did you only use the 4.10.1 package which you backported? 
> 
> Can you update the bug report, that would be nice. 
> 
> Greetz, 
> 
> Louis
> 
> 
> 
> > -----Oorspronkelijk bericht-----
> > Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Dirk Laurenz 
> > via samba
> > Verzonden: donderdag 4 april 2019 13:33
> > Aan: samba at lists.samba.org; samba-technical at lists.samba.org
> > Onderwerp: Re: [Samba] Make/Build Error on armhf
> > 
> > I tried the backports tip from
> > https://bugzilla.samba.org/show_bug.cgi?id=13754 and samba
> > 4.10.1 this works... compile finishes without an error...
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: samba <samba-bounces at lists.samba.org> Im Auftrag von 
> Dirk Laurenz 
> > via samba
> > Gesendet: Dienstag, 2. April 2019 23:32
> > An: samba at lists.samba.org
> > Cc: 'Norbert Hanke' <norbert.hanke at gmx.ch>
> > Betreff: Re: [Samba] Make/Build Error on armhf
> > 
> > Hello Norbert,
> > 
> > thanks for your reply. Does that mean that the rpi build 
> environment 
> > is not uptodate?
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: samba <samba-bounces at lists.samba.org> Im Auftrag von Norbert 
> > Hanke via samba
> > Gesendet: Dienstag, 2. April 2019 21:28
> > An: samba at lists.samba.org
> > Betreff: Re: [Samba] Make/Build Error on armhf
> > 
> > Hi,
> > 
> > I noticed the same, actually with many more shared libraries. 
> > It already has been filed as bug
> > https://bugzilla.samba.org/show_bug.cgi?id=13754
> > with version 4.10.0rc4 .
> > 
> > Looking at what actually happens in detail no exotic build 
> options are 
> > used so at first sight it looks more like a problem of the 
> build tools 
> > on the RPi than a Samba problem.
> > 
> > The simplest situation I could find was *messaging_send.c.1.o and 
> > *unix_privs.c.73.o linked into 
> *libMESSAGING-SEND-samba4.so***, and as 
> > soon as something is linked against that .so against 
> something else it 
> > always results in
> > 
> > invalid string offset 1222 >= 1174 for section `.strtab******
> > 
> > See below how these three objects are build and when it fails the 
> > first time.
> > 
> > regards,
> > Norbert
> > 
> > [1456/4250] Compiling source4/lib/messaging/messaging_send.c
> > 13:16:15 runner ['/usr/bin/gcc',
> > '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-MMD', 
> '-D_GNU_SOURCE=1', 
> > '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', 
> > '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_REENTRANT', 
> > '-D_POSIX_PTHREAD_SEMANTICS', 
> > '-DCTDB_HELPER_BINDIR="/usr/local/samba/libexec/ctdb"',
> > '-DLOGDIR="/usr/local/samba/var/log"',
> > '-DCTDB_DATADIR="/usr/local/samba/share/ctdb"',
> > '-DCTDB_ETCDIR="/usr/local/samba/etc/ctdb"',
> > '-DCTDB_VARDIR="/usr/local/samba/var/lib/ctdb"',
> > '-DCTDB_RUNDIR="/usr/local/samba/var/run/ctdb"',
> > '-fstack-protector-strong',
> > '-g',
> > '-DSTATIC_MESSAGING_SEND_MODULES=NULL',
> > '-DSTATIC_MESSAGING_SEND_MODULES_PROTO=extern void 
> > __MESSAGING_SEND_dummy_module_proto(void)',
> > '-Isource4/lib/messaging', '-I../../source4/lib/messaging', 
> > '-Iinclude/public', '-I../../include/public', '-Isource4', 
> > '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', 
> > '-I../../source4/lib', '-Isource4/include', 
> '-I../../source4/include', 
> > '-Iinclude', '-I../../include', '-Ilib/replace', 
> > '-I../../lib/replace', '-Ictdb/include', '-I../../ctdb/include', 
> > '-Ictdb', '-I../../ctdb', '-I.', '-I../..', '-Ilib/tevent', 
> > '-I../../lib/tevent', '-Ilib/util/charset', 
> > '-I../../lib/util/charset', '-Isource3', '-I../../source3', 
> > '-Isource3/include', '-I../../source3/include', '-Isource3/lib', 
> > '-I../../source3/lib', '-Isource4/heimdal/lib/com_err', 
> > '-I../../source4/heimdal/lib/com_err',
> > '-Isource4/heimdal/lib/krb5',
> > '-I../../source4/heimdal/lib/krb5',
> > '-Isource4/heimdal/lib/gssapi',
> > '-I../../source4/heimdal/lib/gssapi',
> > '-Isource4/heimdal_build', '-I../../source4/heimdal_build', 
> > '-Ibin/default/source4/heimdal/lib/asn1',
> > '-Isource4/heimdal/lib/asn1', '-Ilib/tdb/include', 
> > '-I../../lib/tdb/incl  ude', '-Ilib/talloc', '-I../../lib/talloc', 
> > '-Ilib/dbwrap', '-I../../lib/dbwrap', '-Ilib/pthreadpool', 
> > '-I../../lib/pthreadpool', '-Ilib/param', '-I../../lib/param', 
> > '-Idynconfig', '-I../../dynconfig', '-Isource4/cluster', 
> > '-I../../source4/cluster', '-Ilibcli/util', '-I../../libcli/util', 
> > '-Ilib/crypto', '-I../../lib/crypto', '-Ilib/tdb', 
> '-I../../lib/tdb', 
> > '../../source4/lib/messaging/messaging_send.c',
> > '-c',
> > '-o/home/pi/samba-4.10.0P1/bin/default/source4/lib/messaging/*
> > messaging_send.c.1.o*']
> > 
> > [1457/4250] Compiling lib/util/unix_privs.c
> > 13:16:16 runner ['/usr/bin/gcc',
> > '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-MMD', 
> '-D_GNU_SOURCE=1', 
> > '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', 
> > '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_REENTRANT', 
> > '-D_POSIX_PTHREAD_SEMANTICS', 
> > '-DCTDB_HELPER_BINDIR="/usr/local/samba/libexec/ctdb"',
> > '-DLOGDIR="/usr/local/samba/var/log"',
> > '-DCTDB_DATADIR="/usr/local/samba/share/ctdb"',
> > '-DCTDB_ETCDIR="/usr/local/samba/etc/ctdb"',
> > '-DCTDB_VARDIR="/usr/local/samba/var/lib/ctdb"',
> > '-DCTDB_RUNDIR="/usr/local/samba/var/run/ctdb"',
> > '-fstack-protector-strong',
> > '-g',
> > '-DSTATIC_UNIX_PRIVS_MODULES=NULL',
> > '-DSTATIC_UNIX_PRIVS_MODULES_PROTO=extern void 
> > __UNIX_PRIVS_dummy_module_proto(void)',
> > '-Iinclude/public', '-I../../include/public', '-Isource4', 
> > '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', 
> > '-I../../source4/lib', '-Isource4/include', 
> '-I../../source4/include', 
> > '-Iinclude', '-I../../include', '-Ilib/replace', 
> > '-I../../lib/replace', '-Ictdb/include', '-I../../ctdb/include', 
> > '-Ictdb', '-I../../ctdb', '-I.', '-I../..', '-Ilib/talloc', 
> > '-I../../lib/talloc', '../../lib/util/unix_privs.c', '-c', 
> > 
> '-o/home/pi/samba-4.10.0P1/bin/default/lib/util/*unix_privs.c.73.o*']
> > 
> > [1462/4250] Linking
> > bin/default/source4/lib/messaging/*libMESSAGING-SEND-samba4.so*
> > 13:16:21 runner ['/usr/bin/gcc',
> > '-Wl,--version-script=/home/pi/samba-4.10.0P1/bin/default/sour
> > ce4/lib/messaging/MESSAGING_SEND.vscript',
> > 
> > '-shared',
> > 'lib/util/*unix_privs.c.73.o*',
> > 'source4/lib/messaging/*messaging_send.c.1.o*',
> > '-o/home/pi/samba-4.10.0P1/bin/default/source4/lib/messaging/*
> > libMESSAGING-SEND-samba4.so*',
> > 
> > '-Wl,-rpath,/home/pi/samba-4.10.0P1/bin/shared',
> > '-Wl,-rpath,/home/pi/samba-4.10.0P1/bin/shared/private',
> > '-Wl,-Bstatic',
> > '-Wl,-Bdynamic',
> > '-L/home/pi/samba-4.10.0P1/bin/default/libcli/util',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/tevent',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/dbwrap',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/param',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/tdb_wrap',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/tdb',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/replace',
> > '-L/home/pi/samba-4.10.0P1/bin/default/source4/cluster',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/talloc',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/util',
> > '-L/home/pi/samba-4.10.0P1/bin/default/source3',
> > '-L/usr/local/lib', '-L/usr/local/lib', '-lmessages-dgm-samba4', 
> > '-lmessages-util-samba4', '-lserver-id-db-samba4', '-ltalloc', 
> > '-lcluster-samba4', '-lreplace-samba4', '-lgenrand-samba4', 
> > '-lmsghdr-samba4', '-lsamba-debug-samba4', '-ltevent-util', 
> > '-lsamba-util', '-ltdb', '-ltdb-wrap-samba4', '-lutil-tdb-samba4', 
> > '-lsamba-hostconfig', '-ldbwrap-samba4', 
> '-lsocket-blocking-samba4', 
> > '-lsys-rw-samba4', '-liov-buf-samba4', '-ltime-basic-samba4', 
> > '-ltevent', '-lsamba-errors', '-lutil-setid-samba4', 
> > '-lserver-role-samba4', '-lpthread', '-lrt', '-lcrypt', '-lbsd', 
> > '-ldl', '-lnsl', '-Wl,-z,relro,-z,now', '-lpthread', 
> > '-Wl,-no-undefined', '-Wl,--export-dynamic', '-Wl,--as-needed']
> > 
> > and when linking against that:
> > 
> > 13:16:31 runner ['/usr/bin/gcc',
> > 
> > '-Wl,--version-script=/home/pi/samba-4.10.0P1/bin/default/auth
> > /common_auth.vscript',
> > 
> > 
> > '-shared',
> > 
> > 'lib/audit_logging/audit_logging.c.1.o',
> > 'lib/util/util_str_escape.c.99.o',
> > 'auth/auth_sam_reply.c.1.o', 'auth/wbc_auth_util.c.1.o', 
> > 'auth/auth_log.c.1.o', 'auth/auth_util.c.1.o', 
> > 
> '-o/home/pi/samba-4.10.0P1/bin/default/auth/libcommon-auth-samba4.so',
> > 
> > '-Wl,-rpath,/home/pi/samba-4.10.0P1/bin/shared',
> > 
> > '-Wl,-rpath,/home/pi/samba-4.10.0P1/bin/shared/private',
> > 
> > '-Wl,-Bstatic',
> > 
> > '-Wl,-Bdynamic',
> > 
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/dbwrap',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/param',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/tdb_wrap',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/tdb',
> > '-L/home/pi/samba-4.10.0P1/bin/default/source4/cluster',
> > '-L/home/pi/samba-4.10.0P1/bin/default/source3',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/replace',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/tevent',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/socket',
> > '-L/home/pi/samba-4.10.0P1/bin/default/source4/lib/events',
> > '-L/home/pi/samba-4.10.0P1/bin/default/libcli/util',
> > '-L/home/pi/samba-4.10.0P1/bin/default/source4/heimdal_build',
> > '-L/home/pi/samba-4.10.0P1/bin/default/librpc',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/talloc',
> > '-L/home/pi/samba-4.10.0P1/bin/default/libcli/security',
> > '-L/home/pi/samba-4.10.0P1/bin/default/source4/lib/messaging',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib/util',
> > '-L/home/pi/samba-4.10.0P1/bin/default/lib',
> > '-L/usr/local/lib', '-L/usr/local/lib',
> > 
> > '-lsamba-sockets-samba4', '-lsamba-debug-samba4', 
> > '-l*MESSAGING-SEND-samba4*', '-lserver-id-db-samba4', 
> > '-lsamba-security-samba4', '-ltalloc', '-lndr-samba-samba4', 
> > '-lsamba-util', '-lroken-samba4', '-lsocket-blocking-samba4', 
> > '-lsamba-errors', '-levents-samba4', '-linterfaces-samba4', 
> > '-ltevent', '-lndr-nbt', '-ltevent-util', '-liov-buf-samba4', 
> > '-ltime-basic-samba4', '-lreplace-samba4', '-lmessages-dgm-samba4', 
> > '-lmessages-util-samba4', '-lcluster-samba4', '-ltdb', 
> > '-ltdb-wrap-samba4', '-lutil-tdb-samba4', '-lndr', 
> > '-lasn1util-samba4', '-lndr-standard', '-lndr-krb5pac', 
> > '-lgenrand-samba4', '-lutil-setid-samba4', '-lmsghdr-samba4', 
> > '-lsamba-hostconfig', '-ldbwrap-samba4', '-lsys-rw-samba4', 
> > '-lserver-role-samba4', '-lz', '-lresolv', '-lutil', 
> '-lnsl', '-lrt', 
> > '-lbsd', '-lcrypt', '-ldl', '-lpthread', '-ljansson',
> > 
> > '-Wl,-z,relro,-z,now',
> > 
> > '-lpthread',
> > 
> > '-Wl,-no-undefined',
> > 
> > '-Wl,--export-dynamic',
> > 
> > '-Wl,--as-needed']
> > 
> > /usr/bin/ld:
> > /home/pi/samba-4.10.0P1/bin/default/source4/lib/messaging/*lib
> > MESSAGING-SEND-samba4.so*:
> > invalid string offset 1222 >= 1174 for section `.strtab'
> > 
> > 
> > On 02.04.2019 21:05, Dirk Laurenz via samba wrote:
> > > Hello $List,
> > >
> > >
> > >
> > > just downloaded and tried to compile samba 4.10.0 an
> > raspbian stretch
> > > which ends in an error:
> > >
> > >
> > >
> > > [1924/4121] Compiling source3/rpc_client/rpc_transport_np.c
> > >
> > > [1925/4121] Linking bin/default/source3/libmsrpc3-samba4.so
> > >
> > > /usr/bin/ld:
> > > 
> > 
> /install/samba-4.10.0/bin/default/source3/libutil-cmdline-samba4.so: 
> > > invalid string offset 3888 >= 3489 for section `.strtab'
> > >
> > > /usr/bin/ld:
> > > 
> > 
> /install/samba-4.10.0/bin/default/source3/libutil-cmdline-samba4.so: 
> > > invalid string offset 4007 >= 3489 for section `.strtab'
> > >
> > > /usr/bin/ld:
> > > 
> > 
> /install/samba-4.10.0/bin/default/source3/libutil-cmdline-samba4.so: 
> > > invalid string offset 3899 >= 3489 for section `.strtab'
> > >
> > > /usr/bin/ld:
> > > 
> > 
> /install/samba-4.10.0/bin/default/source3/libutil-cmdline-samba4.so: 
> > > invalid string offset 3887 >= 3489 for section `.strtab'
> > >
> > > /usr/bin/ld:
> > > 
> > 
> /install/samba-4.10.0/bin/default/source3/libutil-cmdline-samba4.so: 
> > > invalid string offset 3873 >= 3489 for section `.strtab'
> > >
> > > /usr/bin/ld:
> > > 
> > 
> /install/samba-4.10.0/bin/default/source4/lib/messaging/libMESSAGING-S
> > > END-sa
> > > mba4.so: invalid string offset 1218 >= 1174 for section `.strtab'
> > >
> > >
> > >
> > > [1926/4121] Compiling source3/passdb/pdb_ldap_util.c
> > >
> > > [1927/4121] Compiling source3/passdb/pdb_ldap_schema.c
> > >
> > > [1928/4121] Compiling source4/lib/messaging/messaging_handlers.c
> > >
> > > [1929/4121] Linking bin/default/source3/libsmbldaphelper-samba4.so
> > >
> > > /usr/bin/ld:
> > > 
> > 
> /install/samba-4.10.0/bin/default/source4/lib/messaging/libMESSAGING-S
> > > END-sa
> > > mba4.so: invalid string offset 1218 >= 1174 for section `.strtab'
> > >
> > >
> > >
> > > [1930/4121] Compiling source4/lib/messaging/messaging.c
> > >
> > > [1931/4121] Compiling
> > bin/default/source4/librpc/dcerpc-samba4.empty.c
> > >
> > > [1932/4121] Compiling bin/default/librpc/gen_ndr/ndr_winbind_c.c
> > >
> > > [1933/4121] Compiling source4/winbind/idmap.c
> > >
> > > [1934/4121] Linking
> > > bin/default/source4/lib/messaging/libMESSAGING-samba4.so
> > >
> > > /usr/bin/ld:
> > > 
> > 
> /install/samba-4.10.0/bin/default/source4/lib/messaging/libMESSAGING-S
> > > END-sa
> > > mba4.so: invalid string offset 1218 >= 1174 for section `.strtab'
> > >
> > > source4/lib/messaging/messaging.c.4.o: In function
> > `imessaging_init':
> > >
> > > messaging.c:(.text+0x1bf4): undefined reference to 
> > > `imessaging_register_extra_handlers'
> > >
> > > collect2: error: ld returned 1 exit status
> > >
> > >
> > >
> > > Waf: Leaving directory `/install/samba-4.10.0/bin/default'
> > >
> > > Build failed
> > >
> > > -> task in 'MESSAGING' failed with exit status 1 (run with -v to 
> > > -> display
> > > more information)
> > >
> > > Makefile:7: recipe for target 'all' failed
> > >
> > > make: *** [all] Error 1
> > >
> > >
> > >
> > > samba 4.9.4 compiled fine on the same host..
> > >
> > >
> > >
> > > here's my configure statement
> > >
> > >
> > >
> > > ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var 
> > > --enable-fhs --enable-selftest --systemd-install-services
> > >
> > >
> > >
> > > Nothing changed on that host. What am I missing?
> > >
> > >
> > >
> > > Regards,
> > >
> > >
> > >
> > > Dirk
> > >
> > 
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/options/samba
> > 
> > 
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/options/samba
> > 
> > 
> > --
> > 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