[Pkg-samba-maint] FTBFS Unable to build samba 4.7

Rowland Penny rpenny at samba.org
Thu Oct 5 15:19:37 UTC 2017


On Thu, 5 Oct 2017 16:50:28 +0200
"L.P.H. van Belle via samba-technical"
<samba-technical at lists.samba.org> wrote:

> P.s. 
> 
> One more thing thats rules out kerberos. 
> 
> The changes between kerberos 1.15.1 and 1.15.2 are also tested. 
> 
> I did try the steps below with both kerberos version. 
> RC5 and RC6 with kerberos 1.15.2 also fails. RC4 works. 
> 
> apt-cache policy krb5-user
> krb5-user:
>   Installed: 1.15.2-0.1
>   Candidate: 1.15.2-0.1
>   Version table:
>  *** 1.15.2-0.1 500
>         500 file:/home/pbuilder/archive/stretch/samba-experimental
> amd64/ Packages 100 /var/lib/dpkg/status
>      1.15.1-2 500
>         500 http://ftp.debian.org/debian unstable/main amd64 Packages
>      1.15.1-2~bpo9+1 500
>         500 http://apt.van-belle.nl/debian stretch-experimental/main
> amd64 Packages 1.15-1 500
>         500 http://ftp.nl.debian.org/debian stretch/main amd64
> Packages
> 
> Greetz, 
> 
> Louis
> 
> 
> > -----Oorspronkelijk bericht-----
> > Van: samba-technical 
> > [mailto:samba-technical-bounces at lists.samba.org] Namens 
> > L.P.H. van Belle via samba-technical
> > Verzonden: donderdag 5 oktober 2017 16:39
> > Aan: Mathieu Parent; samba-technical at lists.samba.org
> > CC: Debian Samba Maintainers
> > Onderwerp: RE: [Pkg-samba-maint] FTBFS Unable to build samba 4.7
> > 
> > Hai, 
> > 
> > Small update, test done.
> > The quick port, a bug is introduced in RC5. 
> > 
> > The long part, read on. 
> > 
> > - Only original debian packages. 
> > After multiple checks i keep ending in the same error. 
> > 
> > - mixed my own with debian packages because the MIT version i 
> > builded works.
> > So i took my experimental Samba RC4 from my own apt repo (see 
> > http://apt.van-belle.nl ) I removed the MIT part and run a 
> > rebuild, and thats builds fine and installs fine, see result 
> > bit below. 
> > So, i have a samba rc4 heimdal builded. (ps. Quick builds, 
> > not production ready imo. ) Give me a notice if you want 
> > something of this test build, or setup yourself. 
> > 
> > Now, i run cleanup. ( ./debian/rules clean ) Copy the debian 
> > folder into RC6. 
> > Build.. Rc6 Fail
> > The same for RC5,
> > Build.. Rc5 Fail
> > And again repeat this for RC4 again, and builds fine, so im 
> > 100% sure this is introduced in RC5. 
> > The error is the same everytime as shown by Mathieu.
> > 
> > My result. 
> > apt-cache policy samba
> > samba:
> >   Installed: 2:4.7.0rc4+dfsg-1nmu1~deb9
> >   Candidate: 2:4.7.0rc4+dfsg-1nmu1~deb9
> >   Version table:
> >  *** 2:4.7.0rc4+dfsg-1nmu1~deb9 500
> >         500 
> > file:/home/pbuilder/archive/stretch/samba-experimental amd64/
> > Packages 100 /var/lib/dpkg/status
> >      2:4.7.0rc4+dfsg-1nmu1~deb9 500
> > NOTE    500 http://apt.van-belle.nl/debian 
> > stretch-experimental/main amd64 Packages	 ( THIS LINE IS 
> > NOT FOR PRODUCTION SYSTEMS ) 
> >      2:4.6.8+nmu-1~deb9 500
> >         500 http://apt.van-belle.nl/debian stretch/main amd64
> > Packages 2:4.6.7+dfsg-2 500
> >         500 http://ftp.debian.org/debian unstable/main amd64
> > Packages 2:4.6.5+dfsg-5~bpo9+1 500
> >         500 http://apt.van-belle.nl/debian 
> > stretch-backports/main amd64 Packages
> >      2:4.5.8+dfsg-2+deb9u2 500
> >         500 http://security.debian.org stretch/updates/main 
> > amd64 Packages
> >      2:4.5.8+dfsg-2 500
> >         500 http://ftp.nl.debian.org/debian stretch/main 
> > amd64 Packages
> > 
> > samba -V
> > Version 4.7.0rc4-Debian
> > 
> > samba -b
> > Samba version: 4.7.0rc4-Debian
> > Build environment:
> > Paths:
> >    BINDIR: /usr/bin
> >    SBINDIR: /usr/sbin
> >    CONFIGFILE: /etc/samba/smb.conf
> >    NCALRPCDIR: /var/run/samba/ncalrpc
> >    LOGFILEBASE: /var/log/samba
> >    LMHOSTSFILE: /etc/samba/lmhosts
> >    DATADIR: /usr/share
> >    MODULESDIR: /usr/lib/x86_64-linux-gnu/samba
> >    LOCKDIR: /var/run/samba
> >    STATEDIR: /var/lib/samba
> >    CACHEDIR: /var/cache/samba
> >    PIDDIR: /var/run/samba
> >    PRIVATE_DIR: /var/lib/samba/private
> >    CODEPAGEDIR: /usr/share/samba/codepages
> >    SETUPDIR: /usr/share/samba/setup
> >    WINBINDD_SOCKET_DIR: /var/run/samba/winbindd
> >    NTP_SIGND_SOCKET_DIR: /var/lib/samba/ntp_signd
> > 
> > If you want more info, let me know, i have a bit of time tomorrow. 
> > 
> > 
> > Greetz, 
> > 
> > Louis
> >  
> > 
> > > -----Oorspronkelijk bericht-----
> > > Van: Mathieu Parent [mailto:math.parent at gmail.com]
> > > Verzonden: donderdag 5 oktober 2017 12:27
> > > Aan: L.P.H. van Belle
> > > CC: Debian Samba Maintainers
> > > Onderwerp: Re: [Pkg-samba-maint] FTBFS Unable to build samba 4.7
> > > 
> > > 2017-10-05 12:21 GMT+02:00 L.P.H. van Belle <belle at bazuin.nl>:
> > > > Hai Matheu,
> > > >
> > > > What is the used krb5 versions for this build?
> > > 
> > > It's using the embedded heimdal.
> > > 
> > > > I can so a test of this one also, this afternoon.
> > > > Are the predepends all in experminal.
> > > 
> > > Yes.
> > > 
> > > > I did try to setup the alioth git, but i was unable to
> > > login, i've seen i must send an e-mail first.
> > > > But i got some extra work here, so i'll do that when i have
> > > some extra spair time.
> > > > Sorry for the long notice about that.
> > > 
> > > No problem.
> > > 
> > > Regards
> > > 
> > > Mathieu Parent
> > > >
> > > > Greetz,
> > > >
> > > > Louis
> > > >
> > > >
> > > >
> > > >> -----Oorspronkelijk bericht-----
> > > >> Van: Pkg-samba-maint
> > > >> [mailto:pkg-samba-maint-bounces+belle=bazuin.nl at lists.alioth.d
> > > > ebian.org] Namens Mathieu Parent
> > > >> Verzonden: donderdag 5 oktober 2017 12:01
> > > >> Aan: Debian Samba Maintainers
> > > >> Onderwerp: [Pkg-samba-maint] FTBFS Unable to build samba 4.7
> > > >>
> > > >> Hi,
> > > >>
> > > >> I'm unable to build the samba 4.7 package:
> > > >>
> > > >> 09:35:23 runner /usr/bin/gcc default/lib/dbwrap/dbwrap_1.o 
> > > >> default/lib/dbwrap/dbwrap_util_1.o
> > > >> default/lib/dbwrap/dbwrap_rbt_1.o
> > > >> default/lib/dbwrap/dbwrap_tdb_1.o
> > > >> default/lib/dbwrap/dbwrap_local_open_1.o -o 
> > > >> /build/samba-4.7.0+dfsg/bin/default/lib/dbwrap/libdbwrap.so
> > > >> -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
> > > -Wl,-z,relro,-z,now -lpthread
> > > >> -Wl,-no-undefined -Wl,--export-dynamic -fstack-protector
> > > >> -shared
> > > >> -Wl,--version-script=/build/samba-4.7.0+dfsg/bin/default/lib/d
> > > > bwrap/dbwrap.vscript
> > > >> -Wl,-h,libdbwrap.so.0 -Ldefault/lib/param
> > > >> -Ldefault/libcli/util -Ldefault/lib/tdb_wrap
> > > >> -Ldefault/lib/util -L/usr/local/lib -Wl,-Bdynamic -lsamba-util
> > > >> -ltdb-wrap -ltevent-util -lutil-tdb -lsamba-errors
> > > >> -lsamba-hostconfig -ltime-basic -lsocket-blocking -lutil-setid
> > > >> -lsamba-debug -lgenrand -lserver-role
> > > -lsys-rw -liov-buf
> > > >> -lbsd -lrt -ldl -lnsl -lattr -lcrypt -lsystemd -ltdb -ltevent 
> > > >> -ltalloc
> > > >> default/source4/heimdal/lib/krb5/auth_context_53.o: In function
> > > >> `krb5_auth_con_genaddrs':
> > > >> ./bin/../source4/heimdal/lib/krb5/auth_context.c:194:
> > > >> undefined reference to `rep_strerror_r'
> > > >> ./bin/../source4/heimdal/lib/krb5/auth_context.c:176:
> > > >> undefined reference to `rep_strerror_r'
> > > >> default/source4/heimdal/lib/krb5/fcache_53.o: In function
> > > >> `_krb5_xlock':
> > > >> ./bin/../source4/heimdal/lib/krb5/fcache.c:105: undefined
> > > reference
> > > >> to `rep_strerror_r'
> > > >> default/source4/heimdal/lib/krb5/fcache_53.o: In function
> > > `fcc_open':
> > > >> ./bin/../source4/heimdal/lib/krb5/fcache.c:401: undefined
> > > reference
> > > >> to `rep_strerror_r'
> > > >> default/source4/heimdal/lib/krb5/fcache_53.o: In function
> > > >> `_krb5_xunlock':
> > > >> ./bin/../source4/heimdal/lib/krb5/fcache.c:139: undefined
> > > reference
> > > >> to `rep_strerror_r'
> > > >> default/source4/heimdal/lib/krb5/fcache_53.o:./bin/../source4/
> > > > heimdal/lib/krb5/fcache.c:528:
> > > >> more undefined references to `rep_strerror_r' follow

Hi Louis, where did you get the Samba 4.7.0 source code from ?
The errors above refer to undefined reference to `rep_strerror_r'
If I run a grep on the 4.7.0 tarball from the Samba webpage, I get this:

grep -rnw '/home/rowland/programming/samba/versions/samba-4.7.0/' -e "rep_strerror_r"
/home/rowland/programming/samba/versions/samba-4.7.0/lib/replace/replace.h:632:#define strerror_r rep_strerror_r
/home/rowland/programming/samba/versions/samba-4.7.0/lib/replace/replace.h:633:int rep_strerror_r(int errnum, char *buf, size_t buflen);
/home/rowland/programming/samba/versions/samba-4.7.0/lib/replace/replace.c:813:int rep_strerror_r(int errnum, char *buf, size_t buflen)
/home/rowland/programming/samba/versions/samba-4.7.0/lib/replace/replace.c:825:int rep_strerror_r(int errnum, char *buf, size_t buflen)

Have you actually checked your source code ?

Not saying this is the problem, but it is something to check ;-)

Rowland




More information about the samba-technical mailing list