Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753671Ab0H0WcG (ORCPT ); Fri, 27 Aug 2010 18:32:06 -0400 Received: from mail-qy0-f181.google.com ([209.85.216.181]:58234 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753558Ab0H0WcD (ORCPT ); Fri, 27 Aug 2010 18:32:03 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=k+9mpk26DSy/n7UmO/maMUa3ijM/+q3o+yRI6PimlQ/vyWdsAUKreBnJ6qdY6ubTr+ 2numAEd1CxgjyBsiDSPli5iEUap6TmY5gH8GTHSdakpK7jBDIxJFxmojzh0NjQ1BeiOR cSs2t6L75P3mDx8pxbgUlpn9Dvd8Y0ldkYZpc= MIME-Version: 1.0 Date: Fri, 27 Aug 2010 18:32:03 -0400 Message-ID: Subject: LDD examples From: Someone Something To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1003 Lines: 19 I downloaded the LDD examples (http://examples.oreilly.com/9780596005900/), and I unzipped the file and just tried building it with make just to see if it built properly and here are the errors I get: setlevel.c:30: error: expected declaration specifiers or '...' before 'type' setlevel.c:30: error: expected declaration specifiers or '...' before 'bufp' setlevel.c:30: error: expected declaration specifiers or '...' before 'len' setlevel.c:30: warning: data definition has no type or storage class setlevel.c:30: warning: type defaults to 'int' in declaration of '_syscall3' setlevel.c: In function 'main': setlevel.c:41: warning: implicit declaration of function 'syslog' have any of use experienced these errors? Is this book out of date? Alternatives? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/