From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9019 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Musl bug, or, am I losing my mind? Date: Wed, 30 Dec 2015 22:28:33 +0100 Message-ID: <20151230212832.GA23362@port70.net> References: <1337210970.4152546.1451505881575.JavaMail.yahoo.ref@mail.yahoo.com> <1337210970.4152546.1451505881575.JavaMail.yahoo@mail.yahoo.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1451510927 27408 80.91.229.3 (30 Dec 2015 21:28:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2015 21:28:47 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9032-gllmg-musl=m.gmane.org@lists.openwall.com Wed Dec 30 22:28:47 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aEOIY-0002sw-Ve for gllmg-musl@m.gmane.org; Wed, 30 Dec 2015 22:28:47 +0100 Original-Received: (qmail 26321 invoked by uid 550); 30 Dec 2015 21:28:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 26299 invoked from network); 30 Dec 2015 21:28:44 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <1337210970.4152546.1451505881575.JavaMail.yahoo@mail.yahoo.com> User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:9019 Archived-At: * Guided Muscle [2015-12-30 20:04:41 +0000]: > Make options: > CC=musl-gcc > CFLAGS=-O2 -s -static -fPIC -D_FILE_OFFSET_BITS=64 -D_FILE_OFFSET_BITS=64 is noop on musl -fPIC is not useful if you static link (if you want position independent executable then use -fPIE) > cat o.txt | cdb -c c.cdb > FAILED: cdb: (stdin): bad format > > However > PASS: cdb -c c.cdb < o.txt my guess is that cdb does not handle short reads properly but you can see what's going on with strace