LinuxQuestions.org
Help answer threads with 0 replies.
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 01-26-2005, 05:09 AM   #1
krsnachaitanya
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Rep: Reputation: 0
installing rtlinux - problem with ncurses


hi all,

I want to install rtlinux ( real time linux ). for this I am following the instructions available on the net. For this I need download kernel 2.4.4 . On this kernel I need to apply a patch for rtlinux3.1.

After applying the patch, I was able clean all the old .o files and stale dependencies using make mrproper..

This is every thing is fine...

Now in order to configure my linux kernel when I tried using
make menuconfig

I was exiting saying that ncurses not found and asking me to install ncurses before proceeding with any further installation. I download an rpm file for ncurses5.2 and tar.gz file for ncurses5.4. I tried installing 5.4 after 5.2.. Now my system says conflicting with ncurses5.4..

I am stuck up at this point. Please help me out by saying how to install ncurses properly. It would of help, if you can point out how I can uninstall my previous versions of ncurses...

Thanks in advance..
You can add me into your yahoo messenger --- krsnachaitanya
 
Old 01-26-2005, 08:03 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Without knowing anything else about your system it would be hard to track down your ncurses problem... you might want to do a make mrproper again in case someting got linked against an old ncurses lib and now something is linked against the new ncurses lib and they are playing nicely with each other.

However, you could always ignore the ncurses problem and just use make config, or for the X enabled, make xconfig.
 
Old 01-26-2005, 11:05 AM   #3
krsnachaitanya
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Original Poster
Rep: Reputation: 0
thank you very much for your reply,

But............... It is of not much help,
I tried using make config instead of make menuconfig. the problem now is when I executed make dep after make config.
The command executed and the output obtained is as follows....

[root@localhost linux]# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
scripts/mkdep.c:33:19: ctype.h: No such file or directory
scripts/mkdep.c:34:19: fcntl.h: No such file or directory
In file included from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/limits.h:11,
from scripts/mkdep.c:35:
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/limits.h:122:75: limits.h: No such file or directory
scripts/mkdep.c:36:19: stdio.h: No such file or directory
scripts/mkdep.c:37:20: stdlib.h: No such file or directory
scripts/mkdep.c:38:20: string.h: No such file or directory
scripts/mkdep.c:39:20: unistd.h: No such file or directory
scripts/mkdep.c:41:23: sys/fcntl.h: No such file or directory
scripts/mkdep.c:42:22: sys/mman.h: No such file or directory
scripts/mkdep.c:43:22: sys/stat.h: No such file or directory
scripts/mkdep.c:44:23: sys/types.h: No such file or directory
scripts/mkdep.c:68: error: `NULL' undeclared here (not in a function)
scripts/mkdep.c: In function `do_depname':
scripts/mkdep.c:77: warning: implicit declaration of function `printf'
scripts/mkdep.c: In function `grow_config':
scripts/mkdep.c:92: warning: implicit declaration of function `realloc'
scripts/mkdep.c:92: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:93: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c:93: error: (Each undeclared identifier is reported only once
scripts/mkdep.c:93: error: for each function it appears in.)
scripts/mkdep.c:94: warning: implicit declaration of function `perror'
scripts/mkdep.c:94: warning: implicit declaration of function `exit'
scripts/mkdep.c: In function `is_defined_config':
scripts/mkdep.c:110: warning: implicit declaration of function `memcmp'
scripts/mkdep.c: In function `define_config':
scripts/mkdep.c:125: warning: implicit declaration of function `memcpy'
scripts/mkdep.c: At top level:
scripts/mkdep.c:147: error: `NULL' undeclared here (not in a function)
scripts/mkdep.c: In function `grow_precious':
scripts/mkdep.c:162: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:163: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c: In function `define_precious':
scripts/mkdep.c:175: warning: implicit declaration of function `strlen'
scripts/mkdep.c: In function `handle_include':
scripts/mkdep.c:203: warning: implicit declaration of function `access'
scripts/mkdep.c:203: error: `F_OK' undeclared (first use in this function)
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:220: error: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:223: warning: implicit declaration of function `strcmp'
scripts/mkdep.c:224: warning: implicit declaration of function `realpath'
scripts/mkdep.c:224: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:226: warning: implicit declaration of function `fprintf'
scripts/mkdep.c:226: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:234: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:242: warning: implicit declaration of function `malloc'
scripts/mkdep.c:242: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:247: warning: implicit declaration of function `strcpy'
scripts/mkdep.c:220: warning: unused variable `resolved_path'
scripts/mkdep.c: In function `use_config':
scripts/mkdep.c:270: warning: implicit declaration of function `isupper'
scripts/mkdep.c:270: warning: implicit declaration of function `tolower'
scripts/mkdep.c: In function `state_machine':
scripts/mkdep.c:492: warning: implicit declaration of function `isalnum'
scripts/mkdep.c: In function `do_depend':
scripts/mkdep.c:525: warning: implicit declaration of function `getpagesize'
scripts/mkdep.c:527: error: storage size of `st' isn't known
scripts/mkdep.c:530: warning: implicit declaration of function `open'
scripts/mkdep.c:530: error: `O_RDONLY' undeclared (first use in this function)
scripts/mkdep.c:531: warning: implicit declaration of function `fstat'
scripts/mkdep.c:537: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:538: warning: implicit declaration of function `close'
scripts/mkdep.c:544: warning: implicit declaration of function `mmap'
scripts/mkdep.c:544: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c:544: error: `PROT_READ' undeclared (first use in this function)
scripts/mkdep.c:544: error: `MAP_PRIVATE' undeclared (first use in this function)
scripts/mkdep.c:544: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:561: warning: implicit declaration of function `lstat'
scripts/mkdep.c:571: warning: implicit declaration of function `S_ISLNK'
scripts/mkdep.c:573: warning: initialization makes pointer from integer without a cast
scripts/mkdep.c:578: warning: implicit declaration of function `sprintf'
scripts/mkdep.c:584: warning: implicit declaration of function `system'
scripts/mkdep.c:586: warning: implicit declaration of function `free'
scripts/mkdep.c:591: warning: implicit declaration of function `fputs'
scripts/mkdep.c:591: error: `stdout' undeclared (first use in this function)
scripts/mkdep.c:596: warning: implicit declaration of function `putchar'
scripts/mkdep.c:600: warning: implicit declaration of function `munmap'
scripts/mkdep.c:527: warning: unused variable `st'
scripts/mkdep.c: In function `main':
scripts/mkdep.c:614: warning: implicit declaration of function `getenv'
scripts/mkdep.c:614: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:617: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:624: warning: implicit declaration of function `strncmp'
make: *** [scripts/mkdep] Error 1


So this ended in an error.
I dont know how to proceed after this. and now when I execute make bzImage it gave similar kind of output and the execution stopped on occurance of an error.

Thanks in advance...

King Krsna
 
Old 01-26-2005, 11:21 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
How did you go about patching that kernel? What is the file name of the patch? Where did you get the kernel source, and what, if any, messages were outputted when you ran the patch? It sounds to me like you have a very messed up kernel source at this point.
 
Old 01-26-2005, 11:27 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I just grabed a 2.4.20 kernel (much safer then the 2.4.4 kernel since there were vm/fs changes aplenty between the two releases) and a copy of rtlinux-3.2-pre2. Using the kernel_patch-2.4.20-rtl3.2-pre2 I had no problem patching and compiling a kernel. There might be something wrong with that patch that was never fixed because they stopped supporting that kernel version or something like that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing RTLinux in RHEL 4 - WS alkesh.shah Linux - Software 1 09-15-2006 08:46 AM
Installing RTLinux 3.2 on Fedora Core 3..Pls Help me in Doing so.. kumarnine Linux - Software 0 07-07-2005 02:28 AM
Installing RTLinux on Fedora chidrup_n Linux - Software 1 03-12-2005 05:39 PM
installing lmps into fc3 with ncurses 5? anachronon Linux - Software 0 01-08-2005 01:54 AM
RTLinux, comm.jar and RXTX problem josebalopez Linux - General 1 01-23-2003 05:47 AM

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

All times are GMT -5. The time now is 05:06 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration