LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-26-2005, 11:37 PM   #1
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
program not compiling on fresh FC1 installation


hello,
I am trying to compile the programs downloaded from p2p.wrox.com. i have fresh reinstalled Fedora core 1. But getting following errors help which previously not appeared?

Makefile is
INCLUDE = /usr/src/linux-2.4.22-1.2115.nptl
CC = gcc
CFLAGS = -D__KERNEL__ -I$(INCLUDE) -DMODULE -Wall -O2

TARGET = schar
SRC = schar.c

all: $(TARGET).o

clean:
rm -f *.o *~ core

ERRORS are=>
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2115.nptl/include -DMODULE -Wall -O2 -c -o schar.o schar.c
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/asm/semaphore.h:39,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/fs.h:202,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/capability.h:17,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/binfmts.h:4,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/sched.h:10,
from schar.c:17:
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/highmem.h:5,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h:8,
from /usr/src/linux-2.4.22-1.2115.nptl/include/asm/io.h:47,
from schar.c:26:
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:79: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:79: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:79: error: for each function it appears in.)
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:90: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:123: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:133: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/asm/io.h:47,
from schar.c:26:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h: In function `vmalloc':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h:40: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h: In function `vmalloc_dma':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h:49: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h: In function `vmalloc_32':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h:58: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
make: *** [schar.o] Error 1

Last edited by cranium2004; 03-26-2005 at 11:40 PM.
 
Old 03-27-2005, 02:03 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Problem is with
INCLUDE = /usr/src/linux-2.4.22-1.2115.nptl

Set INCLUDE to point the currect source code of linux kernel FC1 does not comes with 2.4.22 kernel
 
Old 03-27-2005, 04:35 AM   #3
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Original Poster
Rep: Reputation: 30
Hello nixcraft,
R u sure? Because i am using that cd given by local magazine since 1 year without problem. But yeaterday i have to reinstall my FC1 and then when i start again programming on it i got those errors. Also default kernel does not going to compile giving same errors in make.
chk this links that says FC1 uses kernel-2.4.22-1.2115.nptl
http://mirrors.kernel.org/fedora/cor...5.nptl.src.rpm
also have look from Fedora site
http://mirrors.kernel.org/fedora/cor....nptl.i686.rpm
so i think i am right then whats the problem?
 
Old 03-28-2005, 01:25 AM   #4
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
No idea then ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC1 Installation Issue mikeymorgan Fedora - Installation 2 03-26-2005 02:41 PM
new pc fresh installation prob spooky008 Linux - Newbie 12 01-28-2005 06:09 PM
fresh mandrake 10.1 installation need help cracksternation Linux - Laptop and Netbook 4 12-14-2004 03:23 PM
FC1 Error installing a program... Help! Kevin1290X KTPX Linux - Newbie 2 09-20-2004 05:21 PM
Howto copy FC1 configuration to fresh FC2? TomF Fedora 2 06-20-2004 11:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration