LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 09-28-2003, 09:04 AM   #1
rahul_jain_9684
Member
 
Registered: Jun 2003
Posts: 30

Rep: Reputation: 15
modutils-2.4.25 error


i am getting error in modutils-2.4.25

it is on the second execution of the make command after first execution

*************************************************
make[1]: Entering directory `/usr/src/modutils-2.4.25/util'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/modutils-2.4.25/util'
make[1]: Entering directory `/usr/src/modutils-2.4.25/obj'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/modutils-2.4.25/obj'
make[1]: Entering directory `/usr/src/modutils-2.4.25/insmod'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/modutils-2.4.25/insmod'
make[1]: Entering directory `/usr/src/modutils-2.4.25/genksyms'
gcc -O2 -Wall -Wno-uninitialized -I. -I. -I./../include -D_GNU_SOURCE -DCONFIG_ROOT_CHECK_OFF=0 -c -o lex.o lex.c
make[1]: Leaving directory `/usr/src/modutils-2.4.25/genksyms'
built-in function `log' declared as non-function
lex.l: In function `yylex':
lex.l:429: error: `yytext_ptr' undeclared (first use in this function)
lex.l:429: error: (Each undeclared identifier is reported only once
lex.l:429: error: for each function it appears in.)
make[1]: *** [lex.o] Error 1
make: *** [all] Error 2

***************************************************

plz help
 
Old 01-28-2005, 09:19 PM   #2
jnguy
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Rep: Reputation: 0
install old versions of bison and flex
On debian, you may do this by:
apt-get install bison-1.35 flex-old

I know this is an old thread, but when I was looking for the answer myself... I figure'd it would be nice for others to have it.
 
Old 01-28-2005, 09:49 PM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea, thanks. We need modutils to keep 2.4.x backwards compatability from what I gather.
 
Old 05-07-2005, 03:53 PM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Actually, it just seems to be the fault of flex. Newer versions of flex seem to have crappy lex emulation support. I'm not overly happy with the 2.6 kernels and decided to make my LFS 6.0 backwards compatable with the 2.4 kernel branch. I hit the same snag.

I'm not sure what version of flex he was using. His post was from quite awhile ago. I had to downgrade flex to 2.5.4a and it builds fine now. Hit the slackware ftp site and grab all the patches for that version so it will build against newer versions of GCC and Glibc.

My specs:

GCC-3.4.1
Glibc-2.3.4
flex-2.5.4a
modutils-2.4.27
module-init-tools-3.1 (now requires docbook-utils)
bison-1.875a

With the older flex, you don't have to make that emulation wrapper script "lex" that the book talks about. Just symlink /usr/bin/flex --> /usr/bin/lex

also symlink /usr/lib/libfl.a --> /usr/lib/libl.a

Last edited by jong357; 05-07-2005 at 06:01 PM.
 
  


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
Where is kernel modutils weissmuller Linux - Software 2 07-06-2004 11:05 AM
Can't find modutils for 2.6.4 trainpic Linux - General 3 04-22-2004 10:06 AM
Recover old modutils melinda_sayang Fedora 9 01-14-2004 02:26 PM
Don't see /etc/modules ans /etc/modutils deepika Linux - General 2 07-02-2003 09:52 AM
Modutils emanners Linux - General 0 09-16-2001 05:27 AM


All times are GMT -5. The time now is 07:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration