1) compat/strstr.c failed to compile because NULL was not defined. I revised the source code
to include:

I have this idea, not sure if I am on the right path:
on my system there is no need for tcl to compile strstr.c, because it is provided by glibc. I suggest to try this:
run the tcl configure script again and check that strstr is found:
./configure --prefix=/tools > temp
cat temp | grep -n strstr


my output looks like:

checking for strstr... (cached) yes
checking proper strstr implementation... yes

if that is not the case, I assume, you have a glibc problem

regards thorsten






#ifndef NULL
#define NULL 0
#endif

and that addressed that problem. I don't think this has anything to do with my Expect build but I wanted to notify somebody that the strstr.c source looks like has a problem.

2) The second thing was that the loader complained about fixstrtod.o as follows:

fixstrtod.o(.text+0x0): In function `fixstrtod':
: multiple definition of `fixstrtod'
strtod.o(.text+0x0): first defined here
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `fixstrtod' changed from 669 in strtod.o to 77 in fixstrtod.o
collect2: ld returned 1 exit status
make: *** [libtcl8.4.so] Error 1


so I hacked up the configure script so that fixstrtod.o is not included in the linking and all appeared to go well:

#JBM      LIBOBJS="$LIBOBJS fixstrtod.o"

I understand that this sort of thing is totally uncool, but I had to try it.

I suspect that my problems are a sign of a deeper problem that I am unable to find given my limited unix knowledge.

I backed up a few pages in the book and verified that all was well with the linker as follows:

lfs:/mnt/lfs/sources/binutils-build$ echo 'main(){}' > dummy.c
lfs:/mnt/lfs/sources/binutils-build$ cc dummy.c
lfs:/mnt/lfs/sources/binutils-build$ readelf -l a.out | grep ': /tools'
     [Requesting program interpreter: /tools/lib/ld-linux-so.2]
lfs:/mnt/lfs/sources/binutils-build$

This looks kosher. So, now I am uncertain as to how to proceed and hope to get some ideas from you.
Thanks for your help.
-James


--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to