From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1377 Path: news.gmane.org!not-for-mail From: idunham@lavabit.com Newsgroups: gmane.linux.lib.musl.general Subject: Re: libusb, cups compatability... Date: Wed, 25 Jul 2012 16:17:44 -0700 (PDT) Message-ID: <13479.132.241.65.164.1343258264.squirrel@lavabit.com> References: <30520.132.241.65.164.1343198198.squirrel@lavabit.com> <20120725151354.GQ544@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1343258277 4985 80.91.229.3 (25 Jul 2012 23:17:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 23:17:57 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1378-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jul 26 01:17:57 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SuAq5-00064b-5M for gllmg-musl@plane.gmane.org; Thu, 26 Jul 2012 01:17:57 +0200 Original-Received: (qmail 5172 invoked by uid 550); 25 Jul 2012 23:17:56 -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 5164 invoked from network); 25 Jul 2012 23:17:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=fhkCvrHeGCKZ8r5uVNEPP4iRgM09lST+r11JR3IF3N9Af9O6dvID9l5sVRuV2IscKbxVpHEIF6VvZsqN+BBGnvI+wZf92FAvObMQ+GGDxhono9DNbMrZK6VAqt+rPnW8fRbCeU1AgQM1TQa3WUxYZ+o1UVl+01Ww+heGXvvYUIA=; h=Message-ID:In-Reply-To:References:Date:Subject:From:To:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20120725151354.GQ544@brightrain.aerifal.cx> User-Agent: SquirrelMail/1.4.13 Xref: news.gmane.org gmane.linux.lib.musl.general:1377 Archived-At: > On Tue, Jul 24, 2012 at 11:36:38PM -0700, idunham@lavabit.com wrote: >> I've been needing to set up printing, so I went ahead and compiled >> libusb >> 1.0.9 and cups 1.5.3. > > Nice. > >> libusb needs the TIMESPEC_TO_TIMEVAL macro; for the time being, I added >> the definition to libusb (diff attached for Gregor's sake). >> It probably should go in sys/time.h with gnu | bsd visibility instead. >> Other than that, libusb compiles. > > Is there a corresponding opposite-direction macro that should be > added? Yes, TIMEVAL_TO_TIMESPEC. I didn't submit a header patch because I was too impatient to implement the latter, and figured both should be added at once. >> CUPS builds for the most part; in ppdc, genstrings segfaults (haven't >> built gdb, can't say what the issue is). make || make would finish, >> though... > > This suggests a broken makefile, though most makefiles are broken in > the same regard... Because the program crashed while writing a target, > that target, probably corrupted, exists with a valid timestamp and > causes make to think it doesn't need to be generated the next time > around. Really, any command in make should move the successfully-built > file into place _atomically_ (e.g. first writing to a temp file then > moving it) so this can't happen. It writes sample.c (IIRC) which is apparently supposed to contain localization strings (yes, it builds a C++ file to generate a C file that has the localization hard-coded inside)...however, the file is empty in this case. > Anyway, to get back on-topic, I suspect the generated file was > incomplete/corrupt and this might be causing problems later down the > line. Empty. This is the main directory that causes trouble during make test; there may be other issues causing segfaults at both points, however.