Hello,
For some time I was happily running Alt-F on DNS-323, unfortunately few weeks ago this box went to the silicon heaven. So I bought a new DNS-320L and installed Alt-F on that box. So far so good, the general stuff seems to be running fine (web interface, access via Samba, logging into the box via ssh etc.)
Anyway, I was running some custom things on the old box and I want to get them running on the new one as well. But unfortunately I have an issue with C compiler. Let me explain...
I downloaded the ffp package gcc-4.1-2, installed OK. If I just try to execute it, it looks good.
gcc (GCC) 4.1.3 20080414 (prerelease)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
But, when I try to compile some of the software from the sourcecode, it does not work.
configure:4430: found /ffp/bin/gcc
configure:4441: result: gcc
configure:4679: gcc -v >&5
Using built-in specs.
Target: arm-unknown-linux-uclibc
Configured with: /mnt/HD_a2/home/bob/funplug/work/gcc-4.1/gcc-4_1-branch/configure --enable-languages=c,c++ --enable-__cxa_atexit --with-local-prefix=/ffp --disable-multilib --disable-libssp --disable-libgomp --disable-libmudflap --disable-tls --with-float=soft --disable-bootstrap
Thread model: posix
gcc version 4.1.3 20080414 (prerelease)
configure:4710: checking whether the C compiler works
configure:4732: gcc conftest.c >&5
/ffp/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:4736: $? = 1
configure:4774: result: no
other package sets CC in Makefile like:
CC = distcc gcc
CCCDLFLAGS = -fPIC
CCDLFLAGS = -Wl,-E
I'm not an expert, but for me it looks like it wants to cross-compile
This is strange, all this worked fine on my old DNS-323. Can you give me any tips in what should I try? How to get CC working?
Thanks, Honza