Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jul 2016 14:56:51 -0500
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: Updating Samba to 4.3.11_1
Message-ID:  <adf2031a-d8e9-065f-ef48-3992dd8b0e47@denninger.net>
In-Reply-To: <SN2PR20MB0845952A5419CBC076E7EE28800B0@SN2PR20MB0845.namprd20.prod.outlook.com>
References:  <SN2PR20MB084559C7DBB064A8076CBDC2800A0@SN2PR20MB0845.namprd20.prod.outlook.com> <E1C53AFC-D302-475F-9988-67F63F2B05E5@FreeBSD.org> <3cadfb5d-2165-bbf6-4916-7840a38ed4e5@denninger.net> <SN2PR20MB0845952A5419CBC076E7EE28800B0@SN2PR20MB0845.namprd20.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms060707040600020005030807
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 7/23/2016 10:13, Gerard Seibert wrote:
> On Sat, 23 Jul 2016 09:29:59 -0500, Karl Denninger stated:
>
>> Caution: This advice is WRONG.  If you have a RUNNING Samba 4.3 do NOT=

>> deinstall it before attempting to build the CVE-patched version.
>>
>> I followed the above advice on failure to build the latest Samba 4.3
>> and now have NO samba server software on the machine; I get to recover=

> >from last snapshot now (or attempt to load it via pkg), as the build
>> STILL fails in the same place following deinstall with errors in
>> undefined references to BIO_ calls.
>>
>> Since Samba is a *very* widely used piece of software *and* the upgrad=
e
>> is broken the maintainer either needs to get this fixed pronto or the
>> port needs to be marked broken so that people don't get hosed in this
>> fashion on 11-BETA{1|2}.
>>
>> Good thing it's the weekend and I can afford the lack of SMB server on=

>> this network at the present time without being lynched.
> Sorry, but my experience was very different from yours. I deleted the
> old version of Samba43, deactivated it in rc.conf, rebooted the machine=

> and installed the new version. I reactivated it in rc.conf and manually=

> started it. Everything worked fine. Are you absolutely sure you deleted=

> it? Try "make clean" before rebuilding the port and see if that helps.
Yes, I'm sure; I did a pkg delete before starting and a make clean.

Results (this is consistent and repeatable):

Waf: Entering directory `/usr/ports/net/samba43/work/samba-4.3.11/bin'
        Selected embedded Heimdal build
[3604/3871] Linking default/source3/client/smbclient
runner cc default/source3/client/client_162.o
default/source3/client/clitar_162.o
default/source3/client/dnsbrowse_162.o
default/libcli/smbreadline/smbreadline_1.o -o
/usr/ports/net/samba43/work/samba-4.3.11/bin/default/source3/client/smbcl=
ient
-fstack-protector -pie -Wl,-z,relro,-z,now -lpthread -Wl,-no-undefined
-Wl,--export-dynamic -Wl,--as-needed
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.11/bin/shared
-Wl,-rpath,/usr/ports/net/samba43/work/samba-4.3.11/bin/shared/private
-Ldefault/libds/common -Ldefault/auth -Ldefault/source4/lib/socket
-Ldefault/libcli/nbt -Ldefault/lib/ldb-samba -Ldefault/nsswitch
-Ldefault/source4/auth/kerberos -Ldefault/source4/dsdb
-Ldefault/source4/libcli/ldap -Ldefault/source4/lib/events
-Ldefault/libcli/registry -Ldefault/lib/tdb_wrap
-Ldefault/source4/librpc -Ldefault/lib/param -Ldefault/auth/credentials
-Ldefault/nsswitch/libwbclient -Ldefault/auth/gensec
-Ldefault/lib/krb5_wrap -Ldefault/libcli/auth -Ldefault/libcli/cldap
-Ldefault/libcli/ldap -Ldefault/lib/addns
-Ldefault/source4/heimdal_build -Ldefault/lib -Ldefault/librpc
-Ldefault/libcli/smb -Ldefault/lib/dbwrap -Ldefault/lib/socket
-Ldefault/libcli/util -Ldefault/libcli/security -Ldefault/source3
-Ldefault/lib/replace -Ldefault/lib/util -L/usr/local/lib -Wl,-Bdynamic
-ltalloc-report-samba4 -ltevent-util -lreplace-samba4
-lmessages-dgm-samba4 -lsamba-security-samba4 -lerrors-samba4
-lsamba3-util-samba4 -lsys-rw-samba4 -lutil-tdb-samba4
-linterfaces-samba4 -lpopt-samba3-samba4 -lsamba-util
-lsocket-blocking-samba4 -lmessages-util-samba4 -llibsmb-samba4
-lmsrpc3-samba4 -lserver-id-db-samba4 -ldbwrap-samba4 -liov-buf-samba4
-lsmbconf -lcli-smb-common-samba4 -lsamba-cluster-support-samba4
-ldcerpc-samba-samba4 -lndr-standard -lmsghdr-samba4
-lsamba-sockets-samba4 -lndr -lsamba-debug-samba4 -lutil-cmdline-samba4
-ltime-basic-samba4 -lutil-setid-samba4 -lgenrand-samba4 -lkrb5-samba4
-laddns-samba4 -lgssapi-samba4 -lcli-ldap-common-samba4
-lcli-cldap-samba4 -lcliauth-samba4 -lkrb5samba-samba4 -lgse-samba4
-lgensec -lwbclient -lsamba-credentials -lndr-samba-samba4
-lsamba-hostconfig -lndr-nbt -ldcerpc-binding -lndr-samba4
-ltdb-wrap-samba4 -lsmbregistry-samba4 -lCHARSET3-samba4
-lutil-reg-samba4 -lsmb-transport-samba4 -lroken-samba4 -levents-samba4
-lsecrets3-samba4 -lheimbase-samba4 -lcom_err-samba4 -lasn1-samba4
-lhx509-samba4 -lhcrypto-samba4 -lwind-samba4 -lasn1util-samba4
-lcli-ldap-samba4 -lsamba-modules-samba4 -lsamdb -lauthkrb5-samba4
-lwinbind-client-samba4 -lsamdb-common-samba4 -lldbsamba-samba4
-lndr-krb5pac -lserver-role-samba4 -lsmbd-shim-samba4 -lcli-nbt-samba4
-lnetif-samba4 -lauth-sam-reply-samba4 -lflag-mapping-samba4 -lutil -lz
-lgnutls -lldb -ltalloc -lldap -llber -liconv -lmd -lrt -lexecinfo
-lncurses -ltdb -lpopt -larchive -lcrypt -ltevent -lreadline
//usr/local/lib/libssl.so.8: undefined reference to
`BIO_dgram_sctp_msg_waiting'
//usr/local/lib/libssl.so.8: undefined reference to `BIO_dgram_is_sctp'
//usr/local/lib/libssl.so.8: undefined reference to
`BIO_dgram_sctp_wait_for_dry'
cc: error: linker command failed with exit code 1 (use -v to see invocati=
on)
Waf: Leaving directory `/usr/ports/net/samba43/work/samba-4.3.11/bin'
Build failed:  -> task failed (err #1):


Now let's remove the openssl port and....

=2E....


Waf: Leaving directory `/usr/ports/net/samba43/work/samba-4.3.11/bin'
'build' finished successfully (39.249s)

Yep.

That's (badly) broken, because there are plenty of people (myself
included) that *need* the newer openssl version on our systems and with
or without it in /etc/make.conf declared as default *the newer version
libraries still get picked up and blow up the Samba build.*

The same compile-time blowup, incidentally, also occurs with Samba44.


Updated on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211185

--=20
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

--------------ms060707040600020005030807
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC
Bl8wggZbMIIEQ6ADAgECAgEpMA0GCSqGSIb3DQEBCwUAMIGQMQswCQYDVQQGEwJVUzEQMA4G
A1UECBMHRmxvcmlkYTESMBAGA1UEBxMJTmljZXZpbGxlMRkwFwYDVQQKExBDdWRhIFN5c3Rl
bXMgTExDMRwwGgYDVQQDExNDdWRhIFN5c3RlbXMgTExDIENBMSIwIAYJKoZIhvcNAQkBFhND
dWRhIFN5c3RlbXMgTExDIENBMB4XDTE1MDQyMTAyMjE1OVoXDTIwMDQxOTAyMjE1OVowWjEL
MAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExGTAXBgNVBAoTEEN1ZGEgU3lzdGVtcyBM
TEMxHjAcBgNVBAMTFUthcmwgRGVubmluZ2VyIChPQ1NQKTCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBALmEWPhAdphrWd4K5VTvE5pxL3blRQPyGF3ApjUjgtavqU1Y8pbI3Byg
XDj2/Uz9Si8XVj/kNbKEjkRh5SsNvx3Fc0oQ1uVjyCq7zC/kctF7yLzQbvWnU4grAPZ3IuAp
3/fFxIVaXpxEdKmyZAVDhk9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XRjPXmjjHPKOpHugF0g+qI2Z2s6ix7wCzGzVAF7aQrbEX81WdCPqO3SPTaQD0DXhF
HB/lAjs9QKQ8ybeDSE8aKu5VpgHPFTINnrPvV9i8pWb3+n9nXG1bGhwYJ9DLf+YHzgkF7mGX
wcyZXwjwNlaxphr9gsNiA0RPxaQAAAAAAAA=
--------------ms060707040600020005030807--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?adf2031a-d8e9-065f-ef48-3992dd8b0e47>