Raspberry Pi 2 running Linux DBRPi01 4.14.93-v7+ #1191 SMP Wed Jan 16 11:53:33 GMT 2019 armv7l GNU/Linux As in summary during compilation there are hundreds of errors like below: /usr/bin/ld: /media/db_tc_1/Varia/Sources/samba-4.10.0rc1/bin/default/lib/param/libserver-role-samba4.so: invalid string offset 731 >= 716 for section `.strtab' /usr/bin/ld: /media/db_tc_1/Varia/Sources/samba-4.10.0rc1/bin/default/source3/libutil-cmdline-samba4.so: invalid string offset 3862 >= 3380 for section `.strtab' /usr/bin/ld: /media/db_tc_1/Varia/Sources/samba-4.10.0rc1/bin/default/source3/libutil-cmdline-samba4.so: invalid string offset 4028 >= 3380 for section `.strtab' /usr/bin/ld: /media/db_tc_1/Varia/Sources/samba-4.10.0rc1/bin/default/source3/libutil-cmdline-samba4.so: invalid string offset 3848 >= 3380 for section `.strtab' /usr/bin/ld: /media/db_tc_1/Varia/Sources/samba-4.10.0rc1/bin/default/source3/libutil-cmdline-samba4.so: invalid string offset 3863 >= 3380 for section `.strtab' /usr/bin/ld: /media/db_tc_1/Varia/Sources/samba-4.10.0rc1/bin/default/source3/libutil-cmdline-samba4.so: invalid string offset 3874 >= 3380 for section `.strtab' /usr/bin/ld: /media/db_tc_1/Varia/Sources/samba-4.10.0rc1/bin/default/libcli/registry/libutil-reg-samba4.so: invalid string offset 866 >= 822 for section `.strtab' /usr/bin/ld: /media/db_tc_1/Varia/Sources/samba-4.10.0rc1/bin/default/source3/libmessages-util-samba4.so: invalid string offset 662 >= 607 for section `.strtab'
The same is true for version 4.10.0 built on Raspberry Pi 3B+ .
(In reply to Norbert Hanke from comment #1) Still the same for me as well. I have tried to reach samba mailing list but no answer. If you find the way to fix it let me know.
4.10.1 the same
if you could try this, use higher version of the buildtools. Google shows a lot of simular messages, which point to packages listed in the next line here: apt install -t stretch-backports devscripts cmake build-essential binutils # optional g++-aarch64-linux-gnu gcc-aarch64-linux-gnu I dont have an arm setup to test this, so please try. but upgrading/useing the backported packages (cmake build-essential ) helps with the builds on stretch (amd64/i386) and optional run make without -j Last option, you could try to use my sources and build these on arm.
(In reply to Louis from comment #4) I have tried - still the same.(In reply to Louis from comment #4) thank you for suggestions. I have tried but without success so far but I think this is right direction. I can't use g++-aarch64-linux-gnu gcc-aarch64-linux-gnu - as raspbian is still 32bits
I have tried amd64/i386 platform build on debian Stretch. Clean install without any backports. The latest Samba 4.10.1 builds without any issues. So there is no problem with mainline buildtools. It is only something on arm.
The problem is not present when building Samba on the rpi3 running Debian Buster preview (64Bit), available from https://people.debian.org/~gwolf/raspberrypi3/20190206/20190206-raspberry-pi-3-buster-PREVIEW.img.xz The problem is still present when trying the same on 2019-06-20-raspbian-buster-lite (32Bit) --> it's definitely related to the 32Bit rpi armhf/armv7l build chain
Problem still existed with Samba 4.11.6 Problem no more exists with Samba 4.12.0
Any chance of a git bisect between these releases to work out what 'fixed' it? It would be helpful to know what we unintentionally changed, or alternately to confirm that actually, the toolchain changed.
(In reply to Andrew Bartlett from comment #9) Building latest Samba 4.11.7 armhf worked fine on my systems for the last builds. I've added myself on the CC list, because the very last build failed here with the (in this bug handled) error. I'll add more details until I have some results.
(In reply to Björn Baumbach from comment #10) I've just tried the build again with the same parameters - without any changes or modifications on the build system with Samba 4.11.7. The build was successful. I can't reproduce the error anymore.
Here the build of 4.11.7 still fails. First message is [1450/3994] Linking bin/default/auth/libcommon-auth-samba4.so /usr/bin/ld: /home/pi/samba-4.11.7/bin/default/source4/lib/messaging/libMESSAGING-SEND-samba4.so: invalid string offset 1071 >= 1071 for section `.strtab' Last message is [3950/3994] Linking bin/default/file_server/libservice_module_s3fs.so /usr/bin/ld: /home/pi/samba-4.11.7/bin/default/source4/smbd/libservice-samba4.so: invalid string offset 4171 >= 4142 for section `.strtab' /usr/bin/ld: /home/pi/samba-4.11.7/bin/default/source4/auth/libauth-unix-token-samba4.so: invalid string offset 2514 >= 1097 for section `.strtab' /usr/bin/ld: /home/pi/samba-4.11.7/bin/default/source4/libcli/wbclient/libLIBWBCLIENT-OLD-samba4.so: invalid string offset 2817 >= 1717 for section `.strtab' /usr/bin/ld: /home/pi/samba-4.11.7/bin/default/source4/lib/messaging/libMESSAGING-SEND-samba4.so: invalid string offset 1071 >= 1071 for section `.strtab' and many many in between. In contrast, 4.12.0 builds fine, and so does 4.12.0rc1 . All above built on the same system > uname -a Linux <sysname> 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux
I have tried on Raspberry Pi 2B and 3B+ running Raspbian fully updated Stretch and Buster. ./configure --prefix=/opt/samba --with-systemd --systemd-install-services --with-systemddir=/lib/systemd/system --sysconfdir=/etc/samba && make --jobs=`nproc --all` With Samba 4.12.0 both builds are successful without "invalid string offset" issue observed earlier. I am happy to close this bug unless there are some objections.