Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I'm running ffp 0.5 (build from 2008-08-31) and have installed some extra packages so I can compile createtorrent-1.1.4.tar.gz. But every time I do, I get the error:
configure:2639: error: C compiler cannot create executables
See `config.log' for more details.
Packages I have installed (from fonz' site):
autoconf-2.61-2.tgz
automake-1.10.1-2.tgz
make-3.81-3.tgz
gcc-4.1-2.tgz
Here's the config.log I get when I try to build the application. Sorry my linux experience (especiall on the DNS-323) isn't up to par.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = BigBox
uname -m = armv5tejl
uname -r = 2.6.12.6-arm1
uname -s = Linux
uname -v = #29 Wed Apr 30 10:03:59 CST 2008
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /ffp/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /ffp/bin
PATH: /usr/bin
PATH: /bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1762: checking for a BSD-compatible install
configure:1818: result: /ffp/bin/install -c
configure:1829: checking whether build environment is sane
configure:1872: result: yes
configure:1900: checking for a thread-safe mkdir -p
configure:1939: result: ./install-sh -c -d
configure:1952: checking for gawk
configure:1982: result: no
configure:1952: checking for mawk
configure:1982: result: no
configure:1952: checking for nawk
configure:1982: result: no
configure:1952: checking for awk
configure:1968: found /ffp/bin/awk
configure:1979: result: awk
configure:1990: checking whether make sets $(MAKE)
configure:2011: result: yes
configure:2247: checking for gcc
configure:2263: found /ffp/bin/gcc
configure:2274: result: gcc
configure:2512: checking for C compiler version
configure:2519: gcc --version >&5
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.
configure:2522: $? = 0
configure:2529: 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:2532: $? = 0
configure:2539: gcc -V >&5
gcc: '-V' option must have argument
configure:2542: $? = 1
configure:2565: checking for C compiler default output file name
configure:2592: gcc conftest.c >&5
gcc: error trying to exec 'as': execvp: No such file or directory
configure:2595: $? = 1
configure:2633: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "createtorrent"
| #define VERSION "1.1.4"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2639: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_path_install='/ffp/bin/install -c'
ac_cv_prog_AWK='awk'
ac_cv_prog_ac_ct_CC='gcc'
ac_cv_prog_make_make_set='yes'
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /mnt/HD_a2/createtorrent-1.1.4/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /mnt/HD_a2/createtorrent-1.1.4/missing --run tar'
AUTOCONF='${SHELL} /mnt/HD_a2/createtorrent-1.1.4/missing --run autoconf'
AUTOHEADER='${SHELL} /mnt/HD_a2/createtorrent-1.1.4/missing --run autoheader'
AUTOMAKE='${SHELL} /mnt/HD_a2/createtorrent-1.1.4/missing --run automake-1.10'
AWK='awk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /mnt/HD_a2/createtorrent-1.1.4/missing --run makeinfo'
OBJEXT=''
PACKAGE='createtorrent'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/ffp/bin/sh'
STRIP=''
VERSION='1.1.4'
ac_ct_CC='gcc'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /mnt/HD_a2/createtorrent-1.1.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "createtorrent"
#define VERSION "1.1.4"
configure: exit 77
Offline
gcc: error trying to exec 'as': execvp: No such file or directory
compiler is not enough, you also need assembler, linker, etc from the binutils package. for most packages you also need bash and set CONFIG_SHELL to /ffp/bin/bash, ...
Offline
Getting closer. Problem with /lib/cpp now. Trying to locate that package. Also installed coreutils, binutils, and bash. Looks like I need g++ to compile this? Don't think that's part of ffp.
Offline
ttmcmurry wrote:
Getting closer. Problem with /lib/cpp now. Trying to locate that package. Also installed coreutils, binutils, and bash. Looks like I need g++ to compile this? Don't think that's part of ffp.
There's no package for /lib/cpp. No package installs files outside of /ffp. /lib/cpp is a very old name for the c preprocessor. Fix the Makefile or create a link.
Offline
ttmcmurry wrote:
Looks like I need g++ to compile this? Don't think that's part of ffp.
Noob.
root@bob:~# grep g++ /ffp/var/packages/* /ffp/var/packages/gcc-4.1-2:./ffp/bin/g++ /ffp/var/packages/gcc-4.1-2:./ffp/bin/arm-unknown-linux-uclibc-g++ /ffp/var/packages/gcc-4.1-2:./ffp/share/man/man1/g++.1
Offline
lol I admit I'm a total noob to linux on the 323!
Tried setting CPP=/ffp/bin/cpp CPPFLAGS=-I/ffp/bin and no luck (and combinations of one or the other). It errors out /ffp/bin/cpp fails sanity check. Guess I'm too green at the moment.
Last edited by ttmcmurry (2008-09-13 20:09:06)
Offline
ttmcmurry wrote:
lol I admit I'm a total noob to linux on the 323!
Tried setting CPP=/ffp/bin/cpp CPPFLAGS=-I/ffp/bin and no luck (and combinations of one or the other). It errors out /ffp/bin/cpp fails sanity check. Guess I'm too green at the moment.
are you using ch3snas? i had the same problem.. just execute:
ln -s /ffp/bin/cpp /lib/cpp
Offline
No, I'm on a D-Link-323 fw 1.05 + ffp 0.5 (2008/08/31). I did run your linker but the same thing happens:
checking how to run the C preprocessor... /lib/cpp configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details.
So.. I still haven't figured it out, but admittedly haven't put a great deal of time into troubleshooting it.
I'll also add, I'm unable to ./configure any program, it always fails at /lib/cpp. Perhaps I should remove ffp and reinstall it ?
edit..
I did reinstall ffp, made the symbolic link between /ffp/bin/cpp and /lib/cpp - and cpp still fails a sanity check. This isn't like ubuntu or debian where I've successfully ./configured (and MAKEd) many an application; troubleshooting this kind of problem is difficult because unlike Debian it's hard to Google for good information about linux/compiling on a 323/compiling on ARM.
Last edited by ttmcmurry (2008-09-20 01:51:15)
Offline
For newbs... here is the webpage that gave me the answers I was looking for on how to compile on the DNS-323:
http://www.shadowandy.net/2008/08/addin … ns-323.htm
After installing these prerequisites, I was able to finally make sense of these error messages and I started getting information that was useful.
Offline
following the instructions on that site http://www.shadowandy.net/2008/08/addin … ns-323.htm
the optware repository seems to miss a few packages:
* binutils
* kernel-headers
* uclibc
* gcc
is it enough to download it manually from http://www.inreto.de/dns323/fun-plug/0.5/packages/ and copy it to the destination directory? (/ffp)
Offline
mastervol wrote:
is it enough to download it manually from http://www.inreto.de/dns323/fun-plug/0.5/packages/ and copy it to the destination directory? (/ffp)
shadowandy's blog post doesn't talk about optware. ffp packages are installed with 'funpkg -i package.tgz'. Look here for a tutorial: http://nas-tweaks.net/CH3SNAS:Tutorials/ffp-packages
Offline
(sorry for dragging up an old post, I know its bad etiquette, but this is for future reference)...
I was getting the above error when trying to ./configure the mediatomb 0.12 from SVN source. The solution was to make sure the 4 packages listed by mastervol were installed:
/ffp/sbin/funpkg -i binutils-2.18.50.0.1-4.tgz kernel-headers-2.6.9.1-2.tgz uclibc-0.9.29-7.tgz gcc-4.1-2.tgz
I'm pretty good with CentOS and and Yum (and compiling from source), but I'm still getting used to the "slim" linux on the DNS323. I have to admit, I am very impressed with Fonz's work on it. *tips hat*. Thank you
Offline