Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQ6jK-00GX8o-BQ for pgsql-docs@arkaria.postgresql.org; Wed, 17 Jan 2024 14:17:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rQ6jJ-00DTmn-2A for pgsql-docs@arkaria.postgresql.org; Wed, 17 Jan 2024 14:17:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQ6jI-00DTmd-Qp for pgsql-docs@lists.postgresql.org; Wed, 17 Jan 2024 14:17:20 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQ6jF-001zoZ-Cr for pgsql-docs@lists.postgresql.org; Wed, 17 Jan 2024 14:17:19 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 98B7B2FDFC94 for ; Wed, 17 Jan 2024 15:17:13 +0100 (CET) Received: from s899.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 89A632E298C0; Wed, 17 Jan 2024 15:17:13 +0100 (CET) Received: from s473.loopia.se (unknown [172.22.191.6]) by s899.loopia.se (Postfix) with ESMTP id 880F02C8BA62; Wed, 17 Jan 2024 15:17:13 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.01 X-Spam-Level: X-Spam-Status: No, score=-1.01 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=disabled Received: from s934.loopia.se ([172.22.191.5]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id nW-1NLeTe_ch; Wed, 17 Jan 2024 15:17:13 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s934.loopia.se (Postfix) with ESMTPSA id 0D1BE7CEA5C; Wed, 17 Jan 2024 15:17:13 +0100 (CET) From: Daniel Gustafsson Message-Id: <8756F6C5-2AAD-46D7-B525-520BEFC550DF@yesql.se> Content-Type: multipart/mixed; boundary="Apple-Mail=_FCE0D1F2-C113-4CF1-8A98-67B01269E02A" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: 37.10.5 - outdated compiler for FreeBSD Date: Wed, 17 Jan 2024 15:17:12 +0100 In-Reply-To: Cc: pgsql-docs@lists.postgresql.org To: Digital Dog References: X-Mailer: Apple Mail (2.3696.120.41.1.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_FCE0D1F2-C113-4CF1-8A98-67B01269E02A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 30 Dec 2023, at 12:20, Digital Dog wrote: > Therefore please update compilation instructions for FreeBSD for = future PostgreSQL versions by replacing "gcc" with "cc" and changing = version information from FreeBSD 3.0 to 13.0. Thanks for your report, the attached diff updates the compiler and = comment as per the above. Unless there are objections I'll go ahead with that. -- Daniel Gustafsson --Apple-Mail=_FCE0D1F2-C113-4CF1-8A98-67B01269E02A Content-Disposition: attachment; filename=freebsd_compiler.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="freebsd_compiler.diff" Content-Transfer-Encoding: 7bit diff --git a/doc/src/sgml/dfunc.sgml b/doc/src/sgml/dfunc.sgml index 7bdf7f6070..554f9fac4c 100644 --- a/doc/src/sgml/dfunc.sgml +++ b/doc/src/sgml/dfunc.sgml @@ -66,11 +66,12 @@ . To create shared libraries the compiler flag is . -gcc -fPIC -c foo.c -gcc -shared -o foo.so foo.o +cc -fPIC -c foo.c +cc -shared -o foo.so foo.o - This is applicable as of version 3.0 of - FreeBSD. + This is applicable as of version 13.0 of + FreeBSD, older versions used + the gcc compiler. --Apple-Mail=_FCE0D1F2-C113-4CF1-8A98-67B01269E02A--