The compile program fail with code 120.
It tries to:
cp /usr/i386-redhat-linux /usr/i586-pc-linux-tomsrtbt
What is this /usr/i386-redhat-linux supposed to contain?
I dont have it.
I changed it to
cp -af /usr/i486-linux-libc5/ $CPREFIX/$NEWARCH
Now it compiles but anything beyond
"Hello world" wail fail to compile:
/usr/i586-pc-linux-tomsrtbt/include/string.h:33: stddef.h: No such file or
directory
Then I do:
# cd /usr/i586-pc-linux-tomsrtbt/include
# ln -s linux/stddefs.h .
NOW:
/usr/i586-pc-linux-tomsrtbt/include/stdlib.h:333: parse error before '*'
/usr/i586-pc-linux-tomsrtbt/include/stdlib.h:336: parse error before 'char_t'
/usr/i586-pc-linux-tomsrtbt/include/stdlib.h:345: parse error before '*'
/usr/i586-pc-linux-tomsrtbt/include/stdlib.h:347: parse error before '*'
I add /* */ to the lines 333,226,245,347 in stdlib.
now it compiles. Good.
Now i try to compile dynamic libc version of sash-3.3
without the -DHAVE_EXT2 and -DGZIP.
I does not link against any library.
cmds.o: In function 'Stat':
cmds.o(.text+0x1bfe): undefined reference to '_xstat'
cmds.o: In function 'Mknod':
cmds.o(.text+0x1c3c): undefined reference to '_xmknod'
cmd_ls.o: In function 'Lstat':
cmd_ls.o(.text+0xb22): undefined reference to '_lxstat'
cmd_tar.o: In function 'Stat':
cmd_tar.o(.text+0x156e): undefined reference to '_xstat'
cmd_tar.o: In function 'Lstat':
cmd_tar.o(.text+0x159a): undefined reference to '_lxstat'
cmd_tar.o: In function 'Fstat':
.. and so on ...
collect2: ld returned 1 exit status
I use:
gcc -nostdinc -I/usr/i586-pc-linux-tomsrtbt/include \
-I/usr/lib/gcc-lib/i586-pc-linux-tomsrtbt/2.9.5/include \
-bi586-pc-linux-tomsrtbt
I have Redhat 6.0 With Gcc 2.95-4