AW: [Samba] Make/Build Error on armhf

Dirk Laurenz samba at laurenz.ws
Thu Apr 4 19:39:25 UTC 2019


Hi,

yes i can do, but i need a login for bugzilla.
Here's what i have done:

  315  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
E0B11894F66AEC98
  316  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
7638D0442B90D010
  317  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
8B48AD6246925553
  318  echo 'deb http://httpredir.debian.org/debian stretch-backports main
contrib non-free' > /etc/apt/sources.list.d/debian-backport.list
  319  apt-get update
  320  apt-get dist-upgrade
  321  apt-get -t stretch-backports devscripts cmake build-essential
binutils gcc g++
  322  apt-get install -t stretch-backports devscripts cmake build-essential
binutils gcc g++
  329  make clean
  330  history | grep conf
  331  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--enable-fhs --enable-selftest --systemd-install-services
  332  cd ..
  333  ls
  334  rm -r samba-4.10.0
  335  tar -xvzf samba-4.10.0.tar.gz
  336  cd samba-4.10.0/
  337  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--enable-fhs --enable-selftest --systemd-install-services
  338  make


And make fails. I try it with 4.10.0 and 4.10.1 in Order to reproduce the
failure



-----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-technical mailing list