DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

#1 2015-07-31 14:10:41

jsk
New member
Registered: 2015-07-31
Posts: 2

Issue with C compiler on DNS-320L / Alt-F

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.

Code:

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.

Code:

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:

Code:

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

Offline

 

#2 2015-07-31 16:12:46

jsk
New member
Registered: 2015-07-31
Posts: 2

Re: Issue with C compiler on DNS-320L / Alt-F

Ah, OK, solved, I did not have couple more packages installed...

uclibc-0.9.29-7
linux-kernel-2.6.25.1-2

Now it's working fine.

/Honza

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB