From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.oregonstate.edu (smtp1.oregonstate.edu [128.193.15.35]) by speech.braille.uwo.ca (Postfix) with ESMTP id CC69710A2E for ; Wed, 7 Jan 2009 15:35:04 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by smtp1.oregonstate.edu (Postfix) with ESMTP id 1CAC83C2C6 for ; Wed, 7 Jan 2009 12:35:04 -0800 (PST) X-Virus-Scanned: amavisd-new at oregonstate.edu Received: from smtp1.oregonstate.edu ([127.0.0.1]) by localhost (smtp.oregonstate.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7YDtu5xbb6G6 for ; Wed, 7 Jan 2009 12:35:03 -0800 (PST) Received: from ZKMOBILE (128-193-247-38.resnet.oregonstate.edu [128.193.247.38]) by smtp1.oregonstate.edu (Postfix) with ESMTP id DB8713C1A7 for ; Wed, 7 Jan 2009 12:35:03 -0800 (PST) Message-ID: <4C2011660C934537A89334C13DF62B5E@ZKMOBILE> From: "Zachary Kline" To: "Speakup is a screen review system for Linux." References: <1231360237.978411228@192.168.1.70> Subject: Re: Trouble Compiling modules/kernel Date: Wed, 7 Jan 2009 12:35:01 -0800 Organization: Oregon State University MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.11 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 20:35:05 -0000 Hi, You need to switch from CVS to Git. There are many detailed sets of instructions in the list archives on how to do this. What distribution are you compiling for, and which kernel versions are you dealing with? Best, Zack. ----- Original Message ----- From: "Joe Kamphaus" To: Sent: Wednesday, January 07, 2009 12:30 PM Subject: Trouble Compiling modules/kernel > What am I doing wrong? > > I am trying to compile a kernel and keep getting this error: > > CC [M] drivers/char/speakup/speakup.o > drivers/char/speakup/speakup.c:2677:39: error: macro "DECLARE_WORK" > requires 3 arguments, but only 2 given > drivers/char/speakup/speakup.c:2677: warning: type defaults to ‘int’ in > declaration of ‘DECLARE_WORK’ > drivers/char/speakup/speakup.c: In function ‘speakup_help’: > drivers/char/speakup/speakup.c:2686: error: ‘ld_help’ undeclared (first > use in this function) > drivers/char/speakup/speakup.c:2686: error: (Each undeclared identifier is > reported only once > drivers/char/speakup/speakup.c:2686: error: for each function it appears > in.) > make[3]: *** [drivers/char/speakup/speakup.o] Error 1 > make[2]: *** [drivers/char/speakup] Error 2 > make[1]: *** [drivers/char] Error 2 > make: *** [drivers] Error 2 > > I have tried to compile as module or included in kernel. I have tried > several kernel versions. I am using cvs with the following script to patch > the source. > > #!/bin/bash > > ROOTDIR=/usr/src/linux > if [ "$1" != "" ]; then > ROOTDIR="$1" > else > if [ -d kernel -a -d Documentation ]; then > ROOTDIR=`pwd` > fi > fi > > VERSION=v`head -2 $ROOTDIR/Makefile | \ > awk '{ printf "%s",$3 }'` > > DIR=$ROOTDIR/drivers/char/speakup > > echo "Patching version $VERSION" > > if [ ! -d ${DIR}/CVS ] && [ "$CVSROOT" == "" ]; then > echo 'CVSROOT not set. Enter it below. Hit enter for anonymous.' > read -p 'CVSROOT> ' CVSROOT > [ "$CVSROOT" == "" ] && > CVSROOT=':pserver:anonymous@linux-speakup.org:/usr/src/CVS' > export CVSROOT > cvs login || exit > fi > > if [ "$1" != "-p" ]; then > # get new version > mkdir -p ${DIR%/speakup} > cd ${DIR%/speakup} > if [ -d speakup ] && [ -d ${DIR}/CVS ]; then > cd speakup > cvs update -d -P || exit > else > rm -fr ${DIR} > cvs co -P speakup || exit > cd speakup > fi > fi > > # make .orig files > echo -n 'Creating .orig files [' > for i in `cat ${DIR}/patchlist-${VERSION}`; do > patch=`echo $i | cut -f 1 -d ,` > filebase=`echo $i | cut -f 2 -d ,` > > mkdir -p `dirname $ROOTDIR/$filebase` > if [ "$patch" == "1" ]; then > if [ ! -e $ROOTDIR/$filebase.orig ]; then > echo -n . > cp $ROOTDIR/$filebase $ROOTDIR/$filebase.orig > fi > fi > done > echo '] done.' > > # apply patches > echo -n 'Patching files [' > for i in ${DIR}/diff-${VERSION}/*.patch; do > # skip dirs > [ -d $i ] && continue > echo -n p > writeloc=${i##$DIR\/diff-${VERSION}\/} > writeloc=${writeloc%.patch} > writeloc=${writeloc//^/\/} > patch --silent -f -p0 -o $ROOTDIR/$writeloc $ROOTDIR/$writeloc.orig $i > done > echo '] done.' > > # copy files > echo -n 'Copying files [' > for i in ${DIR}/diff-${VERSION}/*.copy; do > # skip dirs > [ -d $i ] && continue > echo -n c > writeloc=${i##$DIR\/diff-${VERSION}\/} > writeloc=${writeloc%.copy} > writeloc=${writeloc//^/\/} > cp $i $ROOTDIR/$writeloc > done > echo '] done.' > > http://www.joekamphaus.net > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup >