Robert,
I have used TC 4.0.1 to compile com.c a program I am developing. Today I installed TC 4.1 on
my Ampro ReadyBoard. I wanted to compile and test my com.c program.
I first wanted to do an 'updatedb" so locate & find would find the header files I wanted to locate.
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/signal.h>
#include <sys/types.h>
#include <string.h>
#include <stropts.h>
I tried "sudo updatedb". I got an error that the subdirectory var was missing. So, I created
/usr/local/var and now updatedb worked. Shouldn't var have existed in the TC 4.1 system?
Next a test compile of com.c was tried with "gcc -g com.c -o com". That immediately
generated an error because termios.h couldn't be located. I went to my old laptop running
4.0.1 and there are several symbolic links to termios.h. Here are the listings.
tc@box:~$ sudo updatedb
tc@box:~$ locate termios.h
/usr/include/asm-generic/termios.h
/usr/include/asm/termios.h
/usr/include/bits/termios.h
/usr/include/linux/termios.h
/usr/include/sys/termios.h
/usr/include/termios.h
tc@box:~$
Now, most are symbolic links to the real terminos.h.
tc@box:~/documents$ locate stdio.h
/usr/include/bits/stdio.h
/usr/include/stdio.h
/usr/local/include/c++/4.6.1/tr1/stdio.h
/usr/local/lib/gcc/i686-pc-linux-gnu/4.6.1/include/ssp/stdio.h
/usr/local/lib/perl5/5.14.1/i686-linux/CORE/nostdio.h
/usr/local/share/syslinux/com32/include/stdio.h
tc@box:~/documents$ locate stdio.h
/usr/include/bits/stdio.h
/usr/include/stdio.h
/usr/local/include/c++/4.6.1/tr1/stdio.h
/usr/local/lib/gcc/i686-pc-linux-gnu/4.6.1/include/ssp/stdio.h
/usr/local/lib/perl5/5.14.1/i686-linux/CORE/nostdio.h
/usr/local/share/syslinux/com32/include/stdio.h
tc@box:~/documents$
As an example stdio.h has a symbolic link to stdio.h in version 4.0.1 as shown below:
lrwxrwxrwx 1 root root 48 Jan 4 00:36 stdint.h -> /tmp/tcloop /eglibc_base-dev/usr/include/stdint.h
lrwxrwxrwx 1 root root 47 Jan 4 00:36 stdio.h -> /tmp/tcloop/ eglibc_base-dev/usr/include/stdio.h
lrwxrwxrwx 1 root root 51 Jan 4 00:36 stdio_ext.h -> /tmp/tcl oop/eglibc_base-dev/usr/include/stdio_ext.h
lrwxrwxrwx 1 root root 48 Jan 4 00:36 stdlib.h -> /tmp/tcloop /eglibc_base-dev/usr/include/stdlib.h
lrwxrwxrwx 1 root root 48 Jan 4 00:36 string.h -> /tmp/tcloop /eglibc_base-dev/usr/include/string.h
lrwxrwxrwx 1 root root 49 Jan 4 00:36 strings.h -> /tmp/tcloo p/eglibc_base-dev/usr/include/strings.h
lrwxrwxrwx 1 root root 49 Jan 4 00:36 stropts.h -> /tmp/tcloo p/eglibc_base-dev/usr/include/stropts.h
But, when I go to TC 4.1 and look for the same symbolic links they are all missing, and this is the
reason I can't get gcc to compile the small com.c program.
Could I have missed installing something that would have generated the symbolic links? I've
tried to duplicate the same install method I used on 4.0.1 again on 4.1, but I can't be 100% sure
I've not missed something important.
What am I missing, or have I uncovered a BUG?
THANKS.
Larry