From unknown Mon Jun 23 07:49:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21059 <21059@debbugs.gnu.org> To: bug#21059 <21059@debbugs.gnu.org> Subject: Status: coreutils-8.24 - sync(1) fails to link on Solaris 10 - missing fdatasync() - solution provided (-lrt) Reply-To: bug#21059 <21059@debbugs.gnu.org> Date: Mon, 23 Jun 2025 14:49:18 +0000 retitle 21059 coreutils-8.24 - sync(1) fails to link on Solaris 10 - missin= g fdatasync() - solution provided (-lrt) reassign 21059 coreutils submitter 21059 Peter Bray severity 21059 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 15 02:11:53 2015 Received: (at submit) by debbugs.gnu.org; 15 Jul 2015 06:11:53 +0000 Received: from localhost ([127.0.0.1]:49517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFFv6-0004SG-E0 for submit@debbugs.gnu.org; Wed, 15 Jul 2015 02:11:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42816) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFD5g-0000BA-K4 for submit@debbugs.gnu.org; Tue, 14 Jul 2015 23:10:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFD5a-0005RH-6h for submit@debbugs.gnu.org; Tue, 14 Jul 2015 23:10:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFD5a-0005RD-3k for submit@debbugs.gnu.org; Tue, 14 Jul 2015 23:10:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFD5Y-0004z3-V7 for bug-coreutils@gnu.org; Tue, 14 Jul 2015 23:10:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFD5R-0005P4-Fg for bug-coreutils@gnu.org; Tue, 14 Jul 2015 23:10:28 -0400 Received: from nm25-vm1.bullet.mail.bf1.yahoo.com ([98.139.212.155]:47169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFD5R-0005Ov-3c for bug-coreutils@gnu.org; Tue, 14 Jul 2015 23:10:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1436929820; bh=KqNqzevJiv/EDsECGS7QE2yVw1R9OMVb34Qbj8JIc8o=; h=Date:From:To:Subject:From:Subject; b=Kizie91Z+ttJrG9CrXQA8s7dTXOgoILqhVbx7nTS3te5mTHKi2tjziRJDxVZkuslovFSPN0epa+PohP3cftoH7mvLtuvXllO2a7NteZSpoUIGuDgg4FytufaMVYXTkXFbSHRXFEFIJLECvwrrzfS06TSNyE0tUjF/EGeWCPKuHlvNhZ8qRLFxXZMUU3VysmRwj1CG9Rvi7L1zSS/aSEAIr7MZhtWaWFMb1eFYePlGJ+BykbJUiTVdVBZO69V22X1PcyjBRa6ktMa4j5D0AWetDvzkezOomNhqdZGp9QxZqTDIIi+0CT9Vc06hIV0Zbqp87j1Y3NWX3aVI5X7QOkw8w== Received: from [98.139.170.180] by nm25.bullet.mail.bf1.yahoo.com with NNFMP; 15 Jul 2015 03:10:20 -0000 Received: from [68.142.230.72] by tm23.bullet.mail.bf1.yahoo.com with NNFMP; 15 Jul 2015 03:10:20 -0000 Received: from [127.0.0.1] by smtp229.mail.bf1.yahoo.com with NNFMP; 15 Jul 2015 03:10:20 -0000 X-Yahoo-Newman-Id: 70987.39423.bm@smtp229.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _fkGs2gVM1n3g3OOm5G9XVJ1AwiGLg3bSIL9_Nj7It5TJTj yzyo6x93N4Guobe5wlcSX0zMEg19PyqPKrOa0yfYe0d19.JznxOAsULiMyC5 7SJTEMbsyUFihiqEN2lt8uMRQpYgmAjPzmy0NapQcaUSBaTa4PzbuejNXzQ1 I.2_t5Pxdaxqy68A1Rk4PiglGtHlUEWGN.N8Zto1iDHGcJFSGc6h37JpzUeU 6276Iz7SeFDx5PqEXZ1Hf7JGsMqtWqBPSbtr59SPX9Wx7aRScY6p1O_6rHLI ndn5_MDLJmn9aOS1k5CYgEZDsLumy95cw_n8CDmZnQWYDucqowrDynROMLBe G1LUH4W0374SmUwHjWDrsggYC.BPBxrVJgTnsE48rI4TclH3NP7h2SC7EACN rMXMNL8JxfZ9EJgo2gIAF9Fmf71FEjhQbWdk.P6Uiv4HvIgR9MF.4c8VNa6L t6b9xzEWn4WlU7ru6cKYVfyU2M2Ey00sLoGjOf2.sBfc0iYlXAHHIX9pxheZ RAL1p25D_3Ay7S3fVmz8hNRKe3oxD X-Yahoo-SMTP: wy_7AdSswBBaijFlmVnVzTL.0g-- Message-ID: <55A5CF18.80305@yahoo.com.au> Date: Wed, 15 Jul 2015 13:10:16 +1000 From: Peter Bray User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: coreutils-8.24 - sync(1) fails to link on Solaris 10 - missing fdatasync() - solution provided (-lrt) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 15 Jul 2015 02:11:51 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Greetings, In attempting to build coreutils-8.24 on Sun Solaris 10 Update 8 and Oracle Solaris 10 Update 11 (both X86 VMs where the OS is unpatched), I found that the GNU coreutils sync(1) command would not link, failing to find the symbol 'fdatasync'. Investigations show that "configure" correctly detects that fdatasync() is found in -lrt, the $(LIB_FDATASYNC) make variable has the correct value. It is just not used in the building of sync(1). The solution seems simple enough, the addition of $(LIB_FDATASYNC) to the "src_sync_LDADD" line of the Makefile. This change has been tested on both releases of Solaris 10 mentioned above and Oracle Solaris 11.2 were the change is not needed (as LIB_FDATASYNC value is the empty string). That is, fdatasync() is no longer in -lrt on Solaris 11.2 The proper solution would be to update "Makefile.in" (identical change) or more likely "src/local.mk" (identical change), but as these systems do not yet have autotools, I have not developed or tested a final solution. Given the trivial nature of the change, I hope this will not be an impediment to its acceptance. Regards, Peter Bray Sydney, Australia The unified GNU diff(1) output of the change as tested is: --- ./Makefile.orig 2015-07-13 09:33:44.202439000 +0000 +++ ./Makefile 2015-07-13 09:33:50.601564126 +0000 @@ -4534,7 +4534,7 @@ src_stdbuf_LDADD = $(LDADD) $(LIBICONV) src_stty_LDADD = $(LDADD) src_sum_LDADD = $(LDADD) -src_sync_LDADD = $(LDADD) +src_sync_LDADD = $(LDADD) $(LIB_FDATASYNC) src_tac_LDADD = $(LDADD) src_tail_LDADD = $(LDADD) $(LIB_NANOSLEEP) src_tee_LDADD = $(LDADD) From the fdatasync(3RT) manual page, on Solaris 10: NAME fdatasync - synchronize a file's data SYNOPSIS cc [ flag... ] file... -lrt [ library... ] #include int fdatasync(int fildes); From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 15 03:41:56 2015 Received: (at 21059-done) by debbugs.gnu.org; 15 Jul 2015 07:41:56 +0000 Received: from localhost ([127.0.0.1]:49566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFHKG-00086V-1j for submit@debbugs.gnu.org; Wed, 15 Jul 2015 03:41:56 -0400 Received: from mail2.vodafone.ie ([213.233.128.44]:51350) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFHKC-00086G-Bt for 21059-done@debbugs.gnu.org; Wed, 15 Jul 2015 03:41:53 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkYHAGQOplVtTfsV/2dsb2JhbABbgxMfNWmCVrp0hXQBAgKBPUwBAQEBAQGBC4QkAQEEMgFWCw0BCgkWBAsJAwIBAgFFBgEMCAEBF4gXAQi/ApBFASuLTIUNhCsBBIwtiAuEbIhfRYZWiAaEMYNhJoI9gT89MQEBgkkBAQE Received: from unknown (HELO localhost.localdomain) ([109.77.251.21]) by mail2.vodafone.ie with ESMTP; 15 Jul 2015 08:41:45 +0100 Message-ID: <55A60EB8.4050704@draigBrady.com> Date: Wed, 15 Jul 2015 08:41:44 +0100 From: =?windows-1252?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Peter Bray , 21059-done@debbugs.gnu.org Subject: Re: bug#21059: coreutils-8.24 - sync(1) fails to link on Solaris 10 - missing fdatasync() - solution provided (-lrt) References: <55A5CF18.80305@yahoo.com.au> In-Reply-To: <55A5CF18.80305@yahoo.com.au> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21059-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 15/07/15 04:10, Peter Bray wrote: > Greetings, > > In attempting to build coreutils-8.24 on Sun Solaris 10 Update 8 and > Oracle Solaris 10 Update 11 (both X86 VMs where the OS is unpatched), > I found that the GNU coreutils sync(1) command would not link, failing > to find the symbol 'fdatasync'. > > Investigations show that "configure" correctly detects that > fdatasync() is found in -lrt, the $(LIB_FDATASYNC) make variable has > the correct value. It is just not used in the building of sync(1). > > The solution seems simple enough, the addition of $(LIB_FDATASYNC) to > the "src_sync_LDADD" line of the Makefile. This change has been tested > on both releases of Solaris 10 mentioned above and Oracle Solaris 11.2 > were the change is not needed (as LIB_FDATASYNC value is the empty > string). That is, fdatasync() is no longer in -lrt on Solaris 11.2 > > The proper solution would be to update "Makefile.in" (identical > change) or more likely "src/local.mk" (identical change), but as these > systems do not yet have autotools, I have not developed or tested a > final solution. Given the trivial nature of the change, I hope this > will not be an impediment to its acceptance. I've pushed this in your name: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=9d25971 Interestingly I didn't hit the issue on a Solaris 10 Update 10 system. thanks! Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 28 22:41:37 2015 Received: (at control) by debbugs.gnu.org; 29 Jul 2015 02:41:37 +0000 Received: from localhost ([127.0.0.1]:33124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKHJJ-000304-18 for submit@debbugs.gnu.org; Tue, 28 Jul 2015 22:41:37 -0400 Received: from mail2.vodafone.ie ([213.233.128.44]:57297) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKHJH-0002zt-LS; Tue, 28 Jul 2015 22:41:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoRAI48uFVtT94M/2dsb2JhbABbDoI1Uh81aQGBPr0IhXQBAgKBU0wBAQEBAQGBC0EEg18BAQQyAVYLDQsJFAIPCQMCAQIBRQYBDAgBAYguAQi/BJAZAQsgi06FDoQsAQSHFIZXhn2EeZAxkEMmZIJbPz0yAQGBBCWBIAEBAQ Received: from unknown (HELO localhost.localdomain) ([109.79.222.12]) by mail2.vodafone.ie with ESMTP; 29 Jul 2015 03:41:33 +0100 Message-ID: <55B83D5D.5060905@draigBrady.com> Date: Wed, 29 Jul 2015 03:41:33 +0100 From: =?windows-1252?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Nelson H. F. Beebe" , 21153@debbugs.gnu.org Subject: Re: bug#21153: coreutils-8.24 build problem, and a fix, on Solaris 10 SPARC References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) forcemerge 21059 21153 stop On 28/07/15 22:07, Nelson H. F. Beebe wrote: > Attempts to build coreutils-8.24 on Solaris 10 SPARC failed with an > unresolved symbol: > > checking whether fdatasync is declared... yes > checking for library containing fdatasync... -lrt > CCLD src/sync > Undefined first referenced > symbol in file > fdatasync src/sync.o > ld: fatal: Symbol referencing errors. No output written to src/sync > > The -lrt library is not present in the linking in that command. > > I restarted the build with "nake LIBS=-lrt", and that led to a > successful build and subsequent validation. Already fixed with: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=v8.24-4-g9d25971 thanks! Pádraig. From unknown Mon Jun 23 07:49:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 26 Aug 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator