LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-13-2003, 06:44 PM   #1
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Rep: Reputation: 15
Making tcl failure


...
gcc -pipe -c -O2 -pipe -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DTCL_DBGX=
-Wall -Wconversion -Wno-implicit-int -fPIC -I./../generic -I. -fno-inline -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1
-DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -Dstrtod=fixstrtod -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DPEEK_XCLOSEIM=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" ./../compat/strstr.c
../compat/strstr.c: In function `strstr':
../compat/strstr.c:67: `NULL' undeclared (first use in this function)
../compat/strstr.c:67: (Each undeclared identifier is reported only once
../compat/strstr.c:67: for each function it appears in.)
make: *** [strstr.o] Error 1


Not sure why NULL is considered undeclared???
 
Old 05-13-2003, 07:00 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
More info is needed, such as your host system.

Migh I suggets using the official LFS support medium like the lfs-support mailinglist, especially if you're working with CVS. Make sure you read the mailinglist archives, a lot of problems that come with CVS have been documented. You can save yourself a lot of time by reading the mailinglists and using the search engine.

Links to all these can be found on the http://www.linuxfromscratch.org website.
 
Old 05-14-2003, 07:17 AM   #3
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
Also, try the tcl/tk hint.
 
Old 06-19-2006, 01:37 AM   #4
jakejzg
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Heh

I know this is probably bass-ackward - and it hurts me to admit it, but I just opened the strstr.c file and simple deleted NULL, so that it read:

return ;


Seemed to work fine so far. Remember, you can't get mad at me for trying this, as I'm still making this LFS deal for the first time.
 
Old 06-29-2006, 07:28 PM   #5
Lenard Spencer
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, Linux from Scratch
Posts: 329

Rep: Reputation: 199Reputation: 199
Best thing to do is read the book at least half a dozen times, and use post-its to mark the stuff you REALLY don't want to forget, before jumping in. I had to rebuild my temp tools today because I missed the part in the book that said the host system needs to be running the 2.6.2 kernel or newer or all kinds of bad things might happen (with me it was segfaults right and left )
 
  


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
Telnet : Temporary failure in name resolution : Host name lookup failure koodoo Linux - Newbie 10 02-11-2008 08:59 PM
Tcl/Tk 8.4.7 dakota rob Solaris / OpenSolaris 3 10-27-2004 03:51 PM
PostScript failure result in printing failure cawwt Linux - General 2 10-01-2004 02:06 PM
Tcl/tk ccarrieta28 Linux - Software 0 09-10-2003 03:49 PM
About TCL? JIV Programming 2 05-02-2003 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:57 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