Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Nov 2020 17:30:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 251106] security/botan2: does not build in presence of itself
Message-ID:  <bug-251106-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251106

            Bug ID: 251106
           Summary: security/botan2: does not build in presence of itself
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: amdmi3@FreeBSD.org
                CC: tremere@cainites.net
                CC: tremere@cainites.net
             Flags: maintainer-feedback?(tremere@cainites.net)
 Attachment #219640 text/plain
         mime type:

Created attachment 219640
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D219640&action=
=3Dedit
Full build log

botan2 has problem with library path order which places system library path
before local ones, which leads to picking up library from botan2 installed =
in
the system, which breaks the build or may produce broken package.

There doesn't seem to be problems with includes:

c++ -fstack-protector -pthread -std=3Dc++11 -D_REENTRANT  -O2 -pipe
-march=3Dskylake -fstack-protector-strong -fno-strict-aliasing=20=20
-DBOTAN_IS_BEING_BUILT -Wall -Wextra -Wpedantic -Wshadow -Wstrict-aliasing
-Wstrict-overflow=3D5 -Wcast-align -Wmissing-declarations -Wpointer-arith
-Wcast-qual -msse2 -Ibuild/include -Ibuild/include/external
-I/usr/local/include -c src/tests/test_simd.cpp -o build/obj/test/test_simd=
.o

(/usr/local/include comes AFTER local includes)

However there definitely is a problem with library paths:

c++ -L/usr/local/lib -fstack-protector -pthread build/obj/cli/argon2.o
build/obj/cli/asn1.o build/obj/cli/bcrypt.o build/obj/cli/cc_enc.o
build/obj/cli/cli.o build/obj/cli/cli_rng.o build/obj/cli/codec.o
build/obj/cli/compress.o build/obj/cli/encryption.o build/obj/cli/entropy.o
build/obj/cli/hash.o build/obj/cli/hmac.o build/obj/cli/main.o
build/obj/cli/math.o build/obj/cli/pbkdf.o build/obj/cli/pk_crypt.o
build/obj/cli/psk.o build/obj/cli/pubkey.o build/obj/cli/roughtime.o
build/obj/cli/sandbox.o build/obj/cli/speed.o build/obj/cli/timing_tests.o
build/obj/cli/tls_client.o build/obj/cli/tls_http_server.o
build/obj/cli/tls_proxy.o build/obj/cli/tls_server.o build/obj/cli/tls_util=
s.o
build/obj/cli/tss.o build/obj/cli/utils.o build/obj/cli/x509.o -pthread=20
-fstack-protector-strong  -L. -lbotan-2 -lboost_system -lbz2 -lcrypto -llzma
-lz -o botan
ld: error: undefined symbol: Botan::Stateful_RNG::add_entropy(unsigned char
const*, unsigned long)

(/usr/local/lib comes BEFORE local library paths)

This breaks the update of botan2 from 2.15 to 2.17.1.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251106-7788>