Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
|
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2005, 05:02 AM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in <Beginning Linux Programming> Chap21

* I have Vmware5.0 installed with redhat linux 9.
* I have modified the "makefile" according to the name "/usr/src/linux-2.4.20-8" for INCLUDE statement.

The Problem:

I am trying to compile the source code for chapter 21 and am getting many errors. Hello.c is the only one that is compiling (probably because of the simplicity). For example when I 'make' schar I get the following out put:

gcc -D__KERNEL__ -I/usr/src/linux/include -DMODULE -Wall -O2 -c -o schar.o schar.c
[root@localhost schar]# make
gcc -D__KERNEL__ -I/usr/src/linux/include -DMODULE -Wall -O2 -c -o
schar.o schar.c
schar.c:41: warning: initialization from incompatible pointer type
schar.c:42: warning: initialization from incompatible pointer type
schar.c:44: warning: initialization from incompatible pointer type
schar.c:45: warning: initialization from incompatible pointer type
schar.c:46: warning: initialization from incompatible pointer type
schar.c:47: warning: initialization from incompatible pointer type
schar.c:49: warning: initialization from incompatible pointer type
schar.c: In function `schar_mmap':
schar.c:167: structure has no member named `vm_offset'
schar.c: In function `init_module':
schar.c:449: warning: implicit declaration of function `MAP_NR'
schar.c:449: invalid type argument of `->'
schar.c:461: structure has no member named `fill_inode'
schar.c: In function `cleanup_module':
schar.c:482: invalid type argument of `->'
make: *** [schar.o] Error 1
 
Old June 2nd, 2005, 11:28 PM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry






Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning Linux Programming 4th edition pchandra Linux 2 April 15th, 2008 08:11 PM
.ppt file for Beginning Linux programming 3rd tseng2005 BOOK Beginning Linux Programming, 3rd Edition 1 November 21st, 2005 02:15 PM
Problem in <Beginning Linux Program > balajirrao Linux 0 October 3rd, 2005 06:06 AM
a problem in book<<beginning asp.net using vb>> luoware ASP.NET 1.0 and 1.1 Basics 3 December 8th, 2003 09:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.