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

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Samba - samba-technical mailing list
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:[hidden email]]
> 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 <[hidden email]>:
> > 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=[hidden email]
> > 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
> >> collect2: error: ld returned 1 exit status
> >> Waf: Leaving directory `/build/samba-4.7.0+dfsg/bin'
> >> Build failed:  -> task failed (err #1):
> >>     {task: cc_link
> >> acache_53.o,add_et_list_53.o,addr_families_53.o,appdefault_53.
> > o,asn1_glue_53.o,auth_context_53.o,build_ap_req_53.o,build_auth_>
> > 53.o,cache_53.o,changepw_53.o,codec_53.o,config_file_53.o,cons
> > tants_53.o,convert_creds_53.o,copy_host_realm_53.o,crc_53.o,creds_>
> > 53.o,crypto_53.o,crypto-aes_53.o,crypto-algs_53.o,crypto-arcfo
> >> ur_53.o,crypto-des3_53.o,crypto-des_53.o,crypto-des-common_53.
> > o,crypto-evp_53.o,crypto-null_53.o,crypto-pk_53.o,crypto-rand_>
> > 53.o,data_53.o,eai_to_heim_errno_53.o,error_string_53.o,expand
> > _hostname_53.o,fcache_53.o,free_53.o,free_host_realm_>
> > 53.o,generate_seq_number_53.o,generate_subkey_53.o,get_addrs_5
> > 3.o,get_cred_53.o,get_default_principal_53.o,get_default_realm_>
> > 53.o,get_for_creds_53.o,get_host_realm_53.o,get_in_tkt_53.o,ge
> > t_port_53.o,init_creds_53.o,init_creds_pw_53.o,kcm_53.o,keyblock_>
> > 53.o,keytab_53.o,keytab_any_53.o,keytab_file_53.o,keytab_memor
> >> y_53.o,keytab_keyfile_53.o,krbhst_53.o,log_53.o,mcache_53.o,mi
> > sc_53.o,mk_error_53.o,mk_priv_53.o,mk_rep_53.o,mk_req_>
> 53.o,mk_req_e
> >>
> >> xt_53.o,mit_glue_53.o,n-fold_53.o,padata_53.o,pkinit_53.o,prin
> > cipal_53.o,prog_setup_53.o,pac_53.o,pcache_53.o,prompter_posix_>
> > 53.o,rd_cred_53.o,rd_error_53.o,rd_priv_53.o,rd_rep_53.o,rd_re
> >> q_53.o,replay_53.o,salt_53.o,salt-aes_53.o,salt-arcfour_53.o,s
> > alt-des3_53.o,salt-des_53.o,send_to_kdc_53.o,set_default_realm_>
> > 53.o,store_53.o,store-int_53.o,store_emem_53.o,store_fd_53.o,s
> > tore_mem_53.o,ticket_53.o,time_53.o,transited_53.o,version_>
> > 53.o,warn_53.o,krb5_err_53.o,aname_to_localname_53.o,kuserok_5
> > 3.o,heim_err_53.o,k524_err_53.o,krb_err_53.o,krb5-glue_>
> > 53.o,expand_path_48.o,plugin_48.o,context_48.o
> >> -> libkrb5-samba4.so}
> >>
> >>
> >> Any idea?
> >>
> >> Regards
> >>
> >>
> >> --
> >> Mathieu Parent
> >>
> >> _______________________________________________
> >> Pkg-samba-maint mailing list
> >> [hidden email]
> >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sa
> > mba-maint
> >>
> >>
> >
>
>
>
> --
> Mathieu
>
>


Reply | Threaded
Open this post in threaded view
|

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

Samba - samba-technical mailing list
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:[hidden email]] Namens
> L.P.H. van Belle via samba-technical
> Verzonden: donderdag 5 oktober 2017 16:39
> Aan: Mathieu Parent; [hidden email]
> 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:[hidden email]]
> > 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 <[hidden email]>:
> > > 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=[hidden email]
> > > 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
> > >> collect2: error: ld returned 1 exit status
> > >> Waf: Leaving directory `/build/samba-4.7.0+dfsg/bin'
> > >> Build failed:  -> task failed (err #1):
> > >>     {task: cc_link
> > >> acache_53.o,add_et_list_53.o,addr_families_53.o,appdefault_53.
> > > o,asn1_glue_53.o,auth_context_53.o,build_ap_req_53.o,build_auth_>
> > > 53.o,cache_53.o,changepw_53.o,codec_53.o,config_file_53.o,cons
> > >
> tants_53.o,convert_creds_53.o,copy_host_realm_53.o,crc_53.o,creds_>
> > > 53.o,crypto_53.o,crypto-aes_53.o,crypto-algs_53.o,crypto-arcfo
> > >> ur_53.o,crypto-des3_53.o,crypto-des_53.o,crypto-des-common_53.
> > > o,crypto-evp_53.o,crypto-null_53.o,crypto-pk_53.o,crypto-rand_>
> > > 53.o,data_53.o,eai_to_heim_errno_53.o,error_string_53.o,expand
> > > _hostname_53.o,fcache_53.o,free_53.o,free_host_realm_>
> > > 53.o,generate_seq_number_53.o,generate_subkey_53.o,get_addrs_5
> > > 3.o,get_cred_53.o,get_default_principal_53.o,get_default_realm_>
> > > 53.o,get_for_creds_53.o,get_host_realm_53.o,get_in_tkt_53.o,ge
> > > t_port_53.o,init_creds_53.o,init_creds_pw_53.o,kcm_53.o,keyblock_>
> > > 53.o,keytab_53.o,keytab_any_53.o,keytab_file_53.o,keytab_memor
> > >> y_53.o,keytab_keyfile_53.o,krbhst_53.o,log_53.o,mcache_53.o,mi
> > > sc_53.o,mk_error_53.o,mk_priv_53.o,mk_rep_53.o,mk_req_>
> > 53.o,mk_req_e
> > >>
> > >> xt_53.o,mit_glue_53.o,n-fold_53.o,padata_53.o,pkinit_53.o,prin
> > > cipal_53.o,prog_setup_53.o,pac_53.o,pcache_53.o,prompter_posix_>
> > > 53.o,rd_cred_53.o,rd_error_53.o,rd_priv_53.o,rd_rep_53.o,rd_re
> > >> q_53.o,replay_53.o,salt_53.o,salt-aes_53.o,salt-arcfour_53.o,s
> > > alt-des3_53.o,salt-des_53.o,send_to_kdc_53.o,set_default_realm_>
> > > 53.o,store_53.o,store-int_53.o,store_emem_53.o,store_fd_53.o,s
> > > tore_mem_53.o,ticket_53.o,time_53.o,transited_53.o,version_>
> > > 53.o,warn_53.o,krb5_err_53.o,aname_to_localname_53.o,kuserok_5
> > > 3.o,heim_err_53.o,k524_err_53.o,krb_err_53.o,krb5-glue_>
> > > 53.o,expand_path_48.o,plugin_48.o,context_48.o
> > >> -> libkrb5-samba4.so}
> > >>
> > >>
> > >> Any idea?
> > >>
> > >> Regards
> > >>
> > >>
> > >> --
> > >> Mathieu Parent
> > >>
> > >> _______________________________________________
> > >> Pkg-samba-maint mailing list
> > >> [hidden email]
> > >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sa
> > > mba-maint
> > >>
> > >>
> > >
> >
> >
> >
> > --
> > Mathieu
> >
> >
>
>
>


Reply | Threaded
Open this post in threaded view
|

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

Samba - samba-technical mailing list
On Thu, 5 Oct 2017 16:50:28 +0200
"L.P.H. van Belle via samba-technical"
<[hidden email]> 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:[hidden email]] Namens
> > L.P.H. van Belle via samba-technical
> > Verzonden: donderdag 5 oktober 2017 16:39
> > Aan: Mathieu Parent; [hidden email]
> > 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:[hidden email]]
> > > 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 <[hidden email]>:
> > > > 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=[hidden email]
> > > > 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


Reply | Threaded
Open this post in threaded view
|

Re: FTBFS Unable to build samba 4.7

Samba - samba-technical mailing list
In reply to this post by Samba - samba-technical mailing list
There was a bit of work around strerror_r, see
https://git.samba.org/?p=samba.git;a=history;f=lib/replace;hb=refs/heads/v4-7-test

But the fix is probably on the linking phase...


Le jeudi 5 octobre 2017, L.P.H. van Belle <[hidden email]> a écrit :

> 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:[hidden email]] Namens
>> L.P.H. van Belle via samba-technical
>> Verzonden: donderdag 5 oktober 2017 16:39
>> Aan: Mathieu Parent; [hidden email]
>> 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:[hidden email]]
>> > 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 <[hidden email]>:
>> > > 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=[hidden email]
>> > > 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
>> > >> collect2: error: ld returned 1 exit status
>> > >> Waf: Leaving directory `/build/samba-4.7.0+dfsg/bin'
>> > >> Build failed:  -> task failed (err #1):
>> > >>     {task: cc_link
>> > >> acache_53.o,add_et_list_53.o,addr_families_53.o,appdefault_53.
>> > > o,asn1_glue_53.o,auth_context_53.o,build_ap_req_53.o,build_auth_>
>> > > 53.o,cache_53.o,changepw_53.o,codec_53.o,config_file_53.o,cons
>> > >
>> tants_53.o,convert_creds_53.o,copy_host_realm_53.o,crc_53.o,creds_>
>> > > 53.o,crypto_53.o,crypto-aes_53.o,crypto-algs_53.o,crypto-arcfo
>> > >> ur_53.o,crypto-des3_53.o,crypto-des_53.o,crypto-des-common_53.
>> > > o,crypto-evp_53.o,crypto-null_53.o,crypto-pk_53.o,crypto-rand_>
>> > > 53.o,data_53.o,eai_to_heim_errno_53.o,error_string_53.o,expand
>> > > _hostname_53.o,fcache_53.o,free_53.o,free_host_realm_>
>> > > 53.o,generate_seq_number_53.o,generate_subkey_53.o,get_addrs_5
>> > > 3.o,get_cred_53.o,get_default_principal_53.o,get_default_realm_>
>> > > 53.o,get_for_creds_53.o,get_host_realm_53.o,get_in_tkt_53.o,ge
>> > > t_port_53.o,init_creds_53.o,init_creds_pw_53.o,kcm_53.o,keyblock_>
>> > > 53.o,keytab_53.o,keytab_any_53.o,keytab_file_53.o,keytab_memor
>> > >> y_53.o,keytab_keyfile_53.o,krbhst_53.o,log_53.o,mcache_53.o,mi
>> > > sc_53.o,mk_error_53.o,mk_priv_53.o,mk_rep_53.o,mk_req_>
>> > 53.o,mk_req_e
>> > >>
>> > >> xt_53.o,mit_glue_53.o,n-fold_53.o,padata_53.o,pkinit_53.o,prin
>> > > cipal_53.o,prog_setup_53.o,pac_53.o,pcache_53.o,prompter_posix_>
>> > > 53.o,rd_cred_53.o,rd_error_53.o,rd_priv_53.o,rd_rep_53.o,rd_re
>> > >> q_53.o,replay_53.o,salt_53.o,salt-aes_53.o,salt-arcfour_53.o,s
>> > > alt-des3_53.o,salt-des_53.o,send_to_kdc_53.o,set_default_realm_>
>> > > 53.o,store_53.o,store-int_53.o,store_emem_53.o,store_fd_53.o,s
>> > > tore_mem_53.o,ticket_53.o,time_53.o,transited_53.o,version_>
>> > > 53.o,warn_53.o,krb5_err_53.o,aname_to_localname_53.o,kuserok_5
>> > > 3.o,heim_err_53.o,k524_err_53.o,krb_err_53.o,krb5-glue_>
>> > > 53.o,expand_path_48.o,plugin_48.o,context_48.o
>> > >> -> libkrb5-samba4.so}
>> > >>
>> > >>
>> > >> Any idea?
>> > >>
>> > >> Regards
>> > >>
>> > >>
>> > >> --
>> > >> Mathieu Parent
>> > >>
>> > >> _______________________________________________
>> > >> Pkg-samba-maint mailing list
>> > >> [hidden email]
>> > >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sa
>> > > mba-maint
>> > >>
>> > >>
>> > >
>> >
>> >
>> >
>> > --
>> > Mathieu
>> >
>> >
>>
>>
>>
>
>

--
Mathieu
Reply | Threaded
Open this post in threaded view
|

RE: FTBFS Unable to build samba 4.7

Samba - samba-technical mailing list
Hai Mathieu,Andrew and others.

Lets start with, i got passed the error, but it only shows where there error is.

Below is how i got there.

I've applied (debian sourced) samba patch 13062 and tried a few other, no go.
I pulled the samba a clean 4.7-test from git.samba.org and tried to build that
from source with the build depends still in place from the debian source.
Result is ok, Version 4.7.1-GIT-6a678665aec builded fine.

Trying now added the debian folder to this one, and removed all patches,
just to see if it builded, but again that fails.
So imo not a samba bug, something debian build/packaging related to samba but i cant find where.

I did find : [PATCH] Make libreplace a no-op on Linux
https://lists.samba.org/archive/samba-technical/2012-November/088933.html 
Not exact the same but it involves the same files
And my knowledge is not that technical to figure this out.
I did try a few builds with the git 4.7.1 version added every build try one of these :
libgcrypt20-dev libssh2-1-dev libssh-dev
This failed also.

Now thinking about the things on the link found.
Tried  --without-getpass-replacement but its an unknown option.

So I made a small change in the build options.
--builtin-libraries=replace,ccan,samba-cluster-support
Changed to
--builtin-libraries=ccan,samba-cluster-support

What the exact change does, that i dont know, but it does not error out now.
Mathieu already found that there was some work done on this.
see https://git.samba.org/?p=samba.git;a=history;f=lib/replace;hb=refs/heads/v4-7-test 


So im bit lost here what todo next.
A source is ok, but a debianbuild not.

Anyone?


Greetz,

Louis






> -----Oorspronkelijk bericht-----
> Van: samba-technical
> [mailto:[hidden email]] Namens
> Mathieu Parent via samba-technical
> Verzonden: donderdag 5 oktober 2017 21:12
> Aan: L.P.H. van Belle
> CC: Debian Samba Maintainers; [hidden email]
> Onderwerp: Re: FTBFS Unable to build samba 4.7
>
> There was a bit of work around strerror_r, see
> https://git.samba.org/?p=samba.git;a=history;f=lib/replace;hb=
> refs/heads/v4-7-test
>
> But the fix is probably on the linking phase...
>
>
> Le jeudi 5 octobre 2017, L.P.H. van Belle <[hidden email]> a écrit :
> > 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:[hidden email]] Namens L.P.H. van
> >> Belle via samba-technical
> >> Verzonden: donderdag 5 oktober 2017 16:39
> >> Aan: Mathieu Parent; [hidden email]
> >> 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:[hidden email]]
> >> > 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 <[hidden email]>:
> >> > > 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=[hidden email]
> >> > > 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
> >> > >> collect2: error: ld returned 1 exit status
> >> > >> Waf: Leaving directory `/build/samba-4.7.0+dfsg/bin'
> >> > >> Build failed:  -> task failed (err #1):
> >> > >>     {task: cc_link
> >> > >> acache_53.o,add_et_list_53.o,addr_families_53.o,appdefault_53.
> >> > >
> o,asn1_glue_53.o,auth_context_53.o,build_ap_req_53.o,build_auth_>
> >> > > 53.o,cache_53.o,changepw_53.o,codec_53.o,config_file_53.o,cons
> >> > >
> >> tants_53.o,convert_creds_53.o,copy_host_realm_53.o,crc_53.o,creds_>
> >> > > 53.o,crypto_53.o,crypto-aes_53.o,crypto-algs_53.o,crypto-arcfo
> >> > >> ur_53.o,crypto-des3_53.o,crypto-des_53.o,crypto-des-common_53.
> >> > > o,crypto-evp_53.o,crypto-null_53.o,crypto-pk_53.o,crypto-rand_>
> >> > > 53.o,data_53.o,eai_to_heim_errno_53.o,error_string_53.o,expand
> >> > > _hostname_53.o,fcache_53.o,free_53.o,free_host_realm_>
> >> > > 53.o,generate_seq_number_53.o,generate_subkey_53.o,get_addrs_5
> >> > >
> 3.o,get_cred_53.o,get_default_principal_53.o,get_default_realm_>
> >> > > 53.o,get_for_creds_53.o,get_host_realm_53.o,get_in_tkt_53.o,ge
> >> > >
> t_port_53.o,init_creds_53.o,init_creds_pw_53.o,kcm_53.o,keyblock_
> >> > > >
> 53.o,keytab_53.o,keytab_any_53.o,keytab_file_53.o,keytab_memor
> >> > >> y_53.o,keytab_keyfile_53.o,krbhst_53.o,log_53.o,mcache_53.o,mi
> >> > > sc_53.o,mk_error_53.o,mk_priv_53.o,mk_rep_53.o,mk_req_>
> >> > 53.o,mk_req_e
> >> > >>
> >> > >> xt_53.o,mit_glue_53.o,n-fold_53.o,padata_53.o,pkinit_53.o,prin
> >> > >
> cipal_53.o,prog_setup_53.o,pac_53.o,pcache_53.o,prompter_posix_>
> >> > > 53.o,rd_cred_53.o,rd_error_53.o,rd_priv_53.o,rd_rep_53.o,rd_re
> >> > >> q_53.o,replay_53.o,salt_53.o,salt-aes_53.o,salt-arcfour_53.o,s
> >> > >
> alt-des3_53.o,salt-des_53.o,send_to_kdc_53.o,set_default_realm_>
> >> > > 53.o,store_53.o,store-int_53.o,store_emem_53.o,store_fd_53.o,s
> >> > > tore_mem_53.o,ticket_53.o,time_53.o,transited_53.o,version_>
> >> > > 53.o,warn_53.o,krb5_err_53.o,aname_to_localname_53.o,kuserok_5
> >> > > 3.o,heim_err_53.o,k524_err_53.o,krb_err_53.o,krb5-glue_>
> >> > > 53.o,expand_path_48.o,plugin_48.o,context_48.o
> >> > >> -> libkrb5-samba4.so}
> >> > >>
> >> > >>
> >> > >> Any idea?
> >> > >>
> >> > >> Regards
> >> > >>
> >> > >>
> >> > >> --
> >> > >> Mathieu Parent
> >> > >>
> >> > >> _______________________________________________
> >> > >> Pkg-samba-maint mailing list
> >> > >> [hidden email]
> >> > >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sa
> >> > > mba-maint
> >> > >>
> >> > >>
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > Mathieu
> >> >
> >> >
> >>
> >>
> >>
> >
> >
>
> --
> Mathieu
>
>


Reply | Threaded
Open this post in threaded view
|

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

Samba - samba-technical mailing list
Hai Mathieu and Andrew,

I've managed to get passed the error in the package build, still testing some things.
But i need to know what is "replace" and how does it involve to samba and package building.

I changed the following.

--bundled-libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile \
--builtin-libraries=replace,ccan,samba-cluster-support \

To
--bundled-libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile,replace \
--builtin-libraries=ccan,samba-cluster-support \


Now, this was the first build with this change, which, naturaly, did not finish creating the packages since im not finish with that.
But at least now im passwd the previous errors, next todo is the part below.
# it ends here now
dh_install --sourcedir=/home/pbuilder/archive/stretch/samba-experimental/build/samba-4.7.0+dfsg/debian/tmp --list-missing --fail-missing
... And multple files here that are not included yet.

But i want to know what moving `replace` from the the buildin-libaries to system bundled exact does.
execpt that we are not using the "samba replace" libaries but "debian-system replace" libaries.

I'll go repeat this again but now with the vanilla 4.70 from debian in a clean environment.
Sofar,

Greetz,

Louis



> -----Oorspronkelijk bericht-----
> Van: Pkg-samba-maint
> [mailto:pkg-samba-maint-bounces+belle=[hidden email]
> ebian.org] Namens L.P.H. van Belle
> Verzonden: vrijdag 6 oktober 2017 14:17
> Aan: Mathieu Parent; Andrew Bartlett
> CC: Debian Samba Maintainers; [hidden email]
> Onderwerp: Re: [Pkg-samba-maint] FTBFS Unable to build samba 4.7
>
> Hai Mathieu,Andrew and others.
>
> Lets start with, i got passed the error, but it only shows
> where there error is.
>
> Below is how i got there.
>
> I've applied (debian sourced) samba patch 13062 and tried a
> few other, no go.
> I pulled the samba a clean 4.7-test from git.samba.org and
> tried to build that from source with the build depends still
> in place from the debian source.
> Result is ok, Version 4.7.1-GIT-6a678665aec builded fine.
>
> Trying now added the debian folder to this one, and removed
> all patches, just to see if it builded, but again that fails.
> So imo not a samba bug, something debian build/packaging
> related to samba but i cant find where.
>
> I did find : [PATCH] Make libreplace a no-op on Linux
> https://lists.samba.org/archive/samba-technical/2012-November/
> 088933.html
> Not exact the same but it involves the same files And my
> knowledge is not that technical to figure this out.
> I did try a few builds with the git 4.7.1 version added every
> build try one of these :
> libgcrypt20-dev libssh2-1-dev libssh-dev This failed also.
>
> Now thinking about the things on the link found.
> Tried  --without-getpass-replacement but its an unknown option.
>
> So I made a small change in the build options.
> --builtin-libraries=replace,ccan,samba-cluster-support
> Changed to
> --builtin-libraries=ccan,samba-cluster-support
>
> What the exact change does, that i dont know, but it does not
> error out now.
> Mathieu already found that there was some work done on this.
> see
> https://git.samba.org/?p=samba.git;a=history;f=lib/replace;hb=
> refs/heads/v4-7-test
>
>
> So im bit lost here what todo next.
> A source is ok, but a debianbuild not.
>
> Anyone?
>
>
> Greetz,
>
> Louis
>
>
>
>
>
>
> > -----Oorspronkelijk bericht-----
> > Van: samba-technical
> > [mailto:[hidden email]] Namens
> Mathieu Parent
> > via samba-technical
> > Verzonden: donderdag 5 oktober 2017 21:12
> > Aan: L.P.H. van Belle
> > CC: Debian Samba Maintainers; [hidden email]
> > Onderwerp: Re: FTBFS Unable to build samba 4.7
> >
> > There was a bit of work around strerror_r, see
> > https://git.samba.org/?p=samba.git;a=history;f=lib/replace;hb=
> > refs/heads/v4-7-test
> >
> > But the fix is probably on the linking phase...
> >
> >
> > Le jeudi 5 octobre 2017, L.P.H. van Belle <[hidden email]>
> a écrit :
> > > 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:[hidden email]] Namens
> L.P.H. van
> > >> Belle via samba-technical
> > >> Verzonden: donderdag 5 oktober 2017 16:39
> > >> Aan: Mathieu Parent; [hidden email]
> > >> 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:[hidden email]]
> > >> > 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 <[hidden email]>:
> > >> > > 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=[hidden email]
> > >> > > 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
> > >> > >> collect2: error: ld returned 1 exit status
> > >> > >> Waf: Leaving directory `/build/samba-4.7.0+dfsg/bin'
> > >> > >> Build failed:  -> task failed (err #1):
> > >> > >>     {task: cc_link
> > >> > >>
> acache_53.o,add_et_list_53.o,addr_families_53.o,appdefault_53.
> > >> > >
> > o,asn1_glue_53.o,auth_context_53.o,build_ap_req_53.o,build_auth_>
> > >> > >
> 53.o,cache_53.o,changepw_53.o,codec_53.o,config_file_53.o,cons
> > >> > >
> > >>
> tants_53.o,convert_creds_53.o,copy_host_realm_53.o,crc_53.o,creds_>
> > >> > >
> 53.o,crypto_53.o,crypto-aes_53.o,crypto-algs_53.o,crypto-arcfo
> > >> > >>
> ur_53.o,crypto-des3_53.o,crypto-des_53.o,crypto-des-common_53.
> > >> > >
> o,crypto-evp_53.o,crypto-null_53.o,crypto-pk_53.o,crypto-rand_>
> > >> > >
> 53.o,data_53.o,eai_to_heim_errno_53.o,error_string_53.o,expand
> > >> > > _hostname_53.o,fcache_53.o,free_53.o,free_host_realm_>
> > >> > >
> 53.o,generate_seq_number_53.o,generate_subkey_53.o,get_addrs_5
> > >> > >
> > 3.o,get_cred_53.o,get_default_principal_53.o,get_default_realm_>
> > >> > >
> 53.o,get_for_creds_53.o,get_host_realm_53.o,get_in_tkt_53.o,ge
> > >> > >
> > t_port_53.o,init_creds_53.o,init_creds_pw_53.o,kcm_53.o,keyblock_
> > >> > > >
> > 53.o,keytab_53.o,keytab_any_53.o,keytab_file_53.o,keytab_memor
> > >> > >>
> y_53.o,keytab_keyfile_53.o,krbhst_53.o,log_53.o,mcache_53.o,mi
> > >> > > sc_53.o,mk_error_53.o,mk_priv_53.o,mk_rep_53.o,mk_req_>
> > >> > 53.o,mk_req_e
> > >> > >>
> > >> > >>
> xt_53.o,mit_glue_53.o,n-fold_53.o,padata_53.o,pkinit_53.o,prin
> > >> > >
> > cipal_53.o,prog_setup_53.o,pac_53.o,pcache_53.o,prompter_posix_>
> > >> > >
> 53.o,rd_cred_53.o,rd_error_53.o,rd_priv_53.o,rd_rep_53.o,rd_re
> > >> > >>
> q_53.o,replay_53.o,salt_53.o,salt-aes_53.o,salt-arcfour_53.o,s
> > >> > >
> > alt-des3_53.o,salt-des_53.o,send_to_kdc_53.o,set_default_realm_>
> > >> > >
> 53.o,store_53.o,store-int_53.o,store_emem_53.o,store_fd_53.o,s
> > >> > > tore_mem_53.o,ticket_53.o,time_53.o,transited_53.o,version_>
> > >> > >
> 53.o,warn_53.o,krb5_err_53.o,aname_to_localname_53.o,kuserok_5
> > >> > > 3.o,heim_err_53.o,k524_err_53.o,krb_err_53.o,krb5-glue_>
> > >> > > 53.o,expand_path_48.o,plugin_48.o,context_48.o
> > >> > >> -> libkrb5-samba4.so}
> > >> > >>
> > >> > >>
> > >> > >> Any idea?
> > >> > >>
> > >> > >> Regards
> > >> > >>
> > >> > >>
> > >> > >> --
> > >> > >> Mathieu Parent
> > >> > >>
> > >> > >> _______________________________________________
> > >> > >> Pkg-samba-maint mailing list
> > >> > >> [hidden email]
> > >> > >>
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sa
> > >> > > mba-maint
> > >> > >>
> > >> > >>
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Mathieu
> > >> >
> > >> >
> > >>
> > >>
> > >>
> > >
> > >
> >
> > --
> > Mathieu
> >
> >
>
>
> _______________________________________________
> Pkg-samba-maint mailing list
> [hidden email]
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sa
> mba-maint
>
>


Reply | Threaded
Open this post in threaded view
|

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

Samba - samba-technical mailing list
On Mon, 2017-10-09 at 14:15 +0200, L.P.H. van Belle wrote:

> Hai Mathieu and Andrew,
>
> I've managed to get passed the error in the package build, still testing some things.
> But i need to know what is "replace" and how does it involve to samba and package building.
>
> I changed the following.
>
> --bundled-libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile \
> --builtin-libraries=replace,ccan,samba-cluster-support \
>
> To
> --bundled-libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile,replace \
> --builtin-libraries=ccan,samba-cluster-support \

libreplace is a compatibility library, designed to allow other
platforms to build Samba just as well as we do on Linux.

It looks like the waf code around strerror_r, which is a bit of a
nightmare frankly, is not causing the right stuff to end up in the
config.h.  We need HAVE_STRERROR_R and STRERROR_R_XSI_NOT_GNU in order
for this to still be a no-op.

The change, compared with the patch in the link mentioned elsewhere in
the thread, is that we want the XSI strerror_r, not the GNU version.

Andrew Bartlett

--
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba


Reply | Threaded
Open this post in threaded view
|

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

Samba - samba-technical mailing list
On Sat, 2017-10-14 at 21:45 +1300, Andrew Bartlett wrote:

> On Mon, 2017-10-09 at 14:15 +0200, L.P.H. van Belle wrote:
> > Hai Mathieu and Andrew,
> >
> > I've managed to get passed the error in the package build, still testing some things.
> > But i need to know what is "replace" and how does it involve to samba and package building.
> >
> > I changed the following.
> >
> > --bundled-libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile \
> > --builtin-libraries=replace,ccan,samba-cluster-support \
> >
> > To
> > --bundled-libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile,replace \
> > --builtin-libraries=ccan,samba-cluster-support \
>
> libreplace is a compatibility library, designed to allow other
> platforms to build Samba just as well as we do on Linux.
>
> It looks like the waf code around strerror_r, which is a bit of a
> nightmare frankly, is not causing the right stuff to end up in the
> config.h.  We need HAVE_STRERROR_R and STRERROR_R_XSI_NOT_GNU in order
> for this to still be a no-op.
>
> The change, compared with the patch in the link mentioned elsewhere in
> the thread, is that we want the XSI strerror_r, not the GNU version.

I looked into this, and for now libreplace will not be a no-op on
Linux.  There is no way to tall glibc that we want vasprintf but the
XSI prototype for strerror_r.

Sorry,

Andrew Bartlett
--
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba