[Samba] Make/Build Error on armhf
Dirk Laurenz
samba at laurenz.ws
Thu Apr 4 12:48:27 UTC 2019
2nd try fails....
-----Ursprüngliche Nachricht-----
Von: samba <samba-bounces at lists.samba.org> Im Auftrag von Dirk Laurenz via samba
Gesendet: Donnerstag, 4. April 2019 13:33
An: samba at lists.samba.org; samba-technical at lists.samba.org
Betreff: 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/include', '-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/source4/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/*libMESSAGING-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