From nobody Mon Jan 29 09:27:02 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TNjcf085qz58KS5 for ; Mon, 29 Jan 2024 09:27:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TNjcd6nyCz4ltM for ; Mon, 29 Jan 2024 09:27:13 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706520434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=LZG0fAU3mG10AUrotaIYYL2rZ0H1VNn+DrQyleQWt1Y=; b=ZDRiDWopPrX6yADENH45xYFVquDXT9JbaTqfeJJFIjAqLvxkapizi/VvpGnbo0Q3cp1jop f1U1mEVqpvQ7B2Nkkt8ZYgPkBNLWLa5xc4q0dYa60p/shnJA1zHzh5FRWr/gLz7PFwYCaN 1HBMd9fqbOiYu67S5ikfkcyoLcKsNy06CAx17IKTslVm2X3TA+A1/Dn0r4ETAwrF4jdtOS DfaCuR8yyAtnt8ylZezIAKL0gspIqwIhbs5QwPJQUaaB6mT/jlo1nMt48icUfFvNGiqOh1 o0qMj32bz2gjyegkSclN6eAX4VZmErVb0CZK+2wn0F2f4RoY/iFFLFGA+Kr7Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706520434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=LZG0fAU3mG10AUrotaIYYL2rZ0H1VNn+DrQyleQWt1Y=; b=S5LnuZiJ2HT3Xt9Z5bwn/Op0wB+pWfqNWGL84Q7KNWpzonVi10c1lS5IbUR29qGeU2BTod wpU+HE0S37ev5FB+ZFSlGwsG9JykVo7UB5bOe5T6Il7O7zA0ek4D/cfpmTxAvSDe0vq826 RIArouY68J/v5VQLb2yDfOqNpyREThGNToQx5S/z5jK0TVnyTbfpJdqqN50DC2Apja1Y0q 6/rWjv5FxqclO/EpKoX6hBVMi6e1fXiMXpdDgbQVg3qS1fbdd3F/aKFmnQ39mOZjf8EpGO YBFfSvTtV/4ZRYSPNkWi7sADQcZ2NA4k4S3fcjplSpHMikbbG8nyI+sAqckGkw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706520434; a=rsa-sha256; cv=none; b=jHYkcT2pKk1l2L0khxJrfZbM5j4P3qbtFonR36/Ef3dajIi5aseDd54GmDb7zsoXOgJgz9 v4BnnnHQrC2D1JFVqZIvbinGpKT6r1F/zOJlvulzhSz3AIaskog1kRnL8D2e6k2Ei+gARy 4q4ktreKEp7hiBN0/U6fXU/gI+R6hRTL5czu27nbXhjYN/kXcQDG89kh9noKqrNtXAfb35 aVZf8zy/gqoSuHT9jyLeDmB7/fmj+VeyFp5EEYMZQOvbLX4vYfJ84vO22KtetuhHtHuIV5 09CDKFZk+iGU/3/qDGb0wEsmzqZjcOXj5wRgmyt4/+TB5YJSxrjIywW4ek5Tkg== Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TNjcd5lY3z16yC for ; Mon, 29 Jan 2024 09:27:13 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-42a8a398cb2so25233671cf.1 for ; Mon, 29 Jan 2024 01:27:13 -0800 (PST) X-Gm-Message-State: AOJu0YwWSHoi2XW5LjkFdRh3oON4bE8TPXxnXbqQtHX8hlt8DG16uFUc hRI0hnCgIp5DLSR6FthM7xfKcvxIQdYlZ2KHObEK00mfbcAsby5f5OOip9nipx+RoskVbczv5IO C7yBjFK8WHRCm/WblYOCUlJSdSl8= X-Google-Smtp-Source: AGHT+IHH9GftVdOOuCufJ7Kjf4e0n2wwiZtKb1i9SOlkHIMiBug88puPisraMO9HFysraXF1pKE+ellDkO4BGtAjFyk= X-Received: by 2002:ac8:5cc9:0:b0:42a:476c:b67a with SMTP id s9-20020ac85cc9000000b0042a476cb67amr7159449qta.69.1706520433439; Mon, 29 Jan 2024 01:27:13 -0800 (PST) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 From: Nuno Teixeira Date: Mon, 29 Jan 2024 09:27:02 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: LDFLAGS= -pthread situation To: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="0000000000003cbaf20610124086" --0000000000003cbaf20610124086 Content-Type: text/plain; charset="UTF-8" Hello all! I was updating games/exult-devel and I found that build failed with: ld: error: undefined symbol: pthread_create >>> referenced by LowLevelMidiDriver.cpp >>> LowLevelMidiDriver.o:(std::__1::thread::thread Related to a upstream change about threading support from C++11... Using LDFLAGS= -pthread fixed build and it is present in lot of ports. My question is if upstream could do anything to avoid this LDFLAGS addition. This is being discussed at https://github.com/exult/exult/issues/436 Any sugestions are welcome! Thanks, -- Nuno Teixeira FreeBSD Committer (ports) --0000000000003cbaf20610124086 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all!

I was updating ga= mes/exult-devel and I found that build failed with:
ld: error: undefined =
symbol: pthread_create
>>> referenced by LowLevelMidiDriver.cpp
>>>               LowLevelMidiDriver.o:(std::__1::thread::thread&l=
t;int (&)(LowLevelMidiDriver*) <snip>

=
Related to a upstream change about threading support from C++11.= ..

Using LDFLAGS=3D -pthread fixed build and it is presen= t in lot of ports.

My question is if upstream coul= d do anything to avoid this LDFLAGS addition.
This is being discu= ssed at https://githu= b.com/exult/exult/issues/436

Any sugestions ar= e welcome!

Thanks,

--
Nuno Teixeira
FreeBSD Committer (ports)
--0000000000003cbaf20610124086--