Hello
I tried to compile it, using the ./configure that is in
http://www.0x50.org/doc/U-Cherokee.html web site:

./configure --disable-pthread --disable-tls --disable-largefile --prefix=/usr
--sysconfdir=/etc --with-wwwroot=/var/www

But when I run the ./configure from uClinux-dist/user/cherokee , it set GCC
as the compiler, instead it must be the m68k-elf-gcc cross compiler...
using this configure the compiling is ok, but when the make tries to do the
'make  romfs' (it insert the binary file in the final uClinux image.bin),
naturally it gives an error, 'cause the compiler was wrong.
Initially it gives this error: No rule to make romfs. Stop. (obvius)

But this is a secondary problem, the primary is che compiler..So I changed
Makefile and I changed these flags:
CC = m68k-elf-gcc
host_triplet = m68k-elf-uclinux
CPP = m68k-elf-gcc -E
CXX = m68k-elf-g++
ac_ct_AR = m68k-elf-ar
ac_ct_CC = m68k-elf-gcc
ac_ct_CXX = m68k-elf-g++
ac_ct_RANLIB = m68k-elf-ranlib
ac_ct_STRIP = m68k-elf-strip
host = m68k-elf-uclinux
host_cpu = m68k

I dont know if I'm right, indeed I think something in wrong..the last lines
are:

In file included from ../cherokee/cherokee.h:34,
                from cherokee_logrotate.c:25:
../cherokee/util.h:76: warning: "struct in_addr" declared inside parameter
list
../cherokee/util.h:76: warning: its scope is only this definition or
declaration, which is probably not what you want
In file included from ../cherokee/cherokee.h:34,
                from cherokee_admin.c:26:
../cherokee/util.h:76: warning: "struct in_addr" declared inside parameter
list
../cherokee/util.h:76: warning: its scope is only this definition or
declaration, which is probably not what you want
m68k-elf-gcc: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [cherokee_replace.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I'm not very good to port an application, so I cant help you very much..
I tried adding other options to the ./configure script, but with
insuccess..something like this:
./configure --build=i386-redhat-linux --host=m68k-elf --disable-pthread 
--disable-tls
--disable-largefile --prefix=/usr --sysconfdir=/etc --with-wwwroot=/var/www

i didnt know what is the host and the build targets..But if i run that
script:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for m68k-elf-strip... m68k-elf-strip
checking how to create a ustar tar archive... gnutar
checking build system type... i386-redhat-linux-gnu
checking host system type... m68k-unknown-elf
checking host platform characteristics... configure: WARNING: *** Please add
m68k-unknown-elf to configure.in checks!
ok
checking for m68k-elf-strip... (cached) m68k-elf-strip
checking how to create a ustar tar archive... (cached) gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for cherokee... no
checking for m68k-elf-gcc... m68k-elf-gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

I've attached the config.log file, if it can help you.
I think there is a bit of work to do in order to make cherokee
running..Unfortunately I didnt have so much time to try to solve the
problem, but I'm here if have question :)
Last thing: I'm using uClinux with kernel 2.4.x and uClib as the library, on
a MCF5282 board, and the CPU is Motorola Coldfire, 66Mhz 32 bit RISC WITHOUT
MMU, it means that the standard 'malloc' function doesnt work..

Let me know if you make progress,

bye
Sandro
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by cherokee configure '0.4.30', which was
generated by GNU Autoconf 2.59.  Invocation command line was

 $ ./configure --build=i386-redhat-linux --host=m68k-elf --disable-pthread 
--disable-tls --disable-largefile --prefix=/usr --sysconfdir=/etc 
--with-wwwroot=/var/www

## --------- ##
## Platform. ##
## --------- ##

hostname = michele-linux.ecs.local
uname -m = i686
uname -r = 2.6.15-1.1831_FC4
uname -s = Linux
uname -v = #1 Tue Feb 7 13:37:42 EST 2006

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /home/bsp-linux/bsp-sharplh7-1.2.9/tools-target/usr/arm-linux/gcc3/bin
PATH: /home/michele/bin
PATH: /home/bsp-linux/bsp-sharplh7-1.2.9/tools-target/usr/arm-linux/gcc3/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1605: checking for a BSD-compatible install
configure:1660: result: /usr/bin/install -c
configure:1671: checking whether build environment is sane
configure:1714: result: yes
configure:1779: checking for gawk
configure:1795: found /bin/gawk
configure:1805: result: gawk
configure:1815: checking whether make sets $(MAKE)
configure:1835: result: yes
configure:1902: checking for m68k-elf-strip
configure:1918: found /usr/local/bin/m68k-elf-strip
configure:1928: result: m68k-elf-strip
configure:1989: checking how to create a ustar tar archive
configure:2002: tar --version
tar (GNU tar) 1.15.1
configure:2005: $? = 0
configure:2045: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" 
>conftest.tar
configure:2048: $? = 0
configure:2052: tar -xf - <conftest.tar
configure:2055: $? = 0
configure:2068: result: gnutar
configure:2082: checking build system type
configure:2100: result: i386-redhat-linux-gnu
configure:2108: checking host system type
configure:2122: result: m68k-unknown-elf
configure:2162: checking host platform characteristics
configure:2201: WARNING: *** Please add m68k-unknown-elf to configure.in checks!
configure:2206: result: ok
configure:2313: checking for m68k-elf-strip
configure:2339: result: m68k-elf-strip
configure:2400: checking how to create a ustar tar archive
configure:2413: tar --version
tar (GNU tar) 1.15.1
configure:2416: $? = 0
configure:2479: result: gnutar
configure:2486: checking whether to enable maintainer-specific portions of 
Makefiles
configure:2495: result: no
configure:2517: checking for cherokee
configure:2550: result: no
configure:2563: checking for m68k-elf-gcc
configure:2579: found /usr/local/bin/m68k-elf-gcc
configure:2589: result: m68k-elf-gcc
configure:2871: checking for C compiler version
configure:2874: m68k-elf-gcc --version </dev/null >&5
2.95.3
configure:2877: $? = 0
configure:2879: m68k-elf-gcc -v </dev/null >&5
Reading specs from /usr/local/lib/gcc-lib/m68k-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from 
http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from 
http://www.snapgear.com/)
configure:2882: $? = 0
configure:2884: m68k-elf-gcc -V </dev/null >&5
m68k-elf-gcc: argument to `-V' is missing
configure:2887: $? = 1
configure:2910: checking for C compiler default output file name
configure:2913: m68k-elf-gcc    conftest.c  -ldl >&5
/usr/local/m68k-elf/bin/ld.real: cannot open crt0.o: No such file or directory
collect2: ld returned 1 exit status
configure:2916: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| | #define PACKAGE_NAME "cherokee"
| #define PACKAGE_TARNAME "cherokee"
| #define PACKAGE_VERSION "0.4.30"
| #define PACKAGE_STRING "cherokee 0.4.30"
| #define PACKAGE_BUGREPORT "http://bugs.0x50.org";
| #define PACKAGE_MAJOR_VERSION "0"
| #define PACKAGE_MINOR_VERSION "4"
| #define PACKAGE_MICRO_VERSION "30"
| #define PACKAGE_PATCH_VERSION ""
| #define OS_TYPE "UNIX"
| #define SO_SUFFIX "so"
| /* end confdefs.h.  */
| | int
| main ()
| {
| | ;
|   return 0;
| }
configure:2955: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i386-redhat-linux-gnu
ac_cv_build_alias=i386-redhat-linux
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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i386-redhat-linux
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=m68k-elf
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=m68k-unknown-elf
ac_cv_host_alias=m68k-elf
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=m68k-elf-gcc
ac_cv_prog_STRIP=m68k-elf-strip
ac_cv_prog_make_make_set=yes
am_cv_prog_tar_ustar=gnutar

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/sandro/uClinux/user/cherokee/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/sandro/uClinux/user/cherokee/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /home/sandro/uClinux/user/cherokee/missing --run autoconf'
AUTOHEADER='${SHELL} /home/sandro/uClinux/user/cherokee/missing --run 
autoheader'
AUTOMAKE='${SHELL} /home/sandro/uClinux/user/cherokee/missing --run 
automake-1.9'
AWK='gawk'
CC='m68k-elf-gcc'
CCDEPMODE=''
CFLAGS=''
COMPILE_EPOLL_FALSE=''
COMPILE_EPOLL_TRUE=''
COMPILE_KQUEUE_FALSE=''
COMPILE_KQUEUE_TRUE=''
COMPILE_POLL_FALSE=''
COMPILE_POLL_TRUE=''
COMPILE_PORT_FALSE=''
COMPILE_PORT_TRUE=''
COMPILE_SELECT_FALSE=''
COMPILE_SELECT_TRUE=''
CPP=''
CPPFLAGS=''
CRYPT_CFLAGS=''
CRYPT_LIBS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ETR_SOCKET_LIBS=''
EXEEXT=''
F77=''
FFLAGS=''
GNOMEVFS_CFLAGS=''
GNOMEVFS_LIBS=''
HAVE_CRYPT_FALSE=''
HAVE_CRYPT_R_FALSE=''
HAVE_CRYPT_R_TRUE=''
HAVE_CRYPT_TRUE=''
HAVE_FCGI_FALSE=''
HAVE_FCGI_TRUE=''
HAVE_GETOPT_LONG_FALSE=''
HAVE_GETOPT_LONG_TRUE=''
HAVE_GNOMEVFS_FALSE=''
HAVE_GNOMEVFS_TRUE=''
HAVE_PAM_FALSE=''
HAVE_PAM_TRUE=''
HAVE_YACC=''
HaveRtldGlobal=''
HaveRtldLocal=''
HaveRtldNext=''
HaveRtldNow=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBGNUTLS_CFLAGS=''
LIBGNUTLS_CONFIG=''
LIBGNUTLS_LIBS=''
LIBOBJS=''
LIBS=' -ldl'
LIBTOOL=''
LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/sandro/uClinux/user/cherokee/missing --run makeinfo'
OBJDUMP=''
OBJEXT=''
PACKAGE='cherokee'
PACKAGE_BUGREPORT='http://bugs.0x50.org'
PACKAGE_MAJOR_VERSION='0'
PACKAGE_MICRO_VERSION='30'
PACKAGE_MINOR_VERSION='4'
PACKAGE_NAME='cherokee'
PACKAGE_PATCH_VERSION=''
PACKAGE_STRING='cherokee 0.4.30'
PACKAGE_TARNAME='cherokee'
PACKAGE_VERSION='0.4.30'
PATH_SEPARATOR=':'
PKGCONFIG=''
PLATFORM_WIN32_FALSE=''
PLATFORM_WIN32_TRUE='#'
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STATIC_ENCODER_GZIP_FALSE=''
STATIC_ENCODER_GZIP_TRUE=''
STATIC_HANDLER_ADMIN_FALSE=''
STATIC_HANDLER_ADMIN_TRUE=''
STATIC_HANDLER_CGI_FALSE=''
STATIC_HANDLER_CGI_TRUE=''
STATIC_HANDLER_COMMON_FALSE=''
STATIC_HANDLER_COMMON_TRUE=''
STATIC_HANDLER_DIRLIST_FALSE=''
STATIC_HANDLER_DIRLIST_TRUE=''
STATIC_HANDLER_ERROR_REDIR_FALSE=''
STATIC_HANDLER_ERROR_REDIR_TRUE=''
STATIC_HANDLER_FASTCGI_FALSE=''
STATIC_HANDLER_FASTCGI_TRUE=''
STATIC_HANDLER_FILE_FALSE=''
STATIC_HANDLER_FILE_TRUE=''
STATIC_HANDLER_NN_FALSE=''
STATIC_HANDLER_NN_TRUE=''
STATIC_HANDLER_PHPCGI_FALSE=''
STATIC_HANDLER_PHPCGI_TRUE=''
STATIC_HANDLER_REDIR_FALSE=''
STATIC_HANDLER_REDIR_TRUE=''
STATIC_HANDLER_SERVER_INFO_FALSE=''
STATIC_HANDLER_SERVER_INFO_TRUE=''
STATIC_LOGGER_COMBINED_FALSE=''
STATIC_LOGGER_COMBINED_TRUE=''
STATIC_LOGGER_NCSA_FALSE=''
STATIC_LOGGER_NCSA_TRUE=''
STATIC_LOGGER_W3C_FALSE=''
STATIC_LOGGER_W3C_TRUE=''
STATIC_MODULE_READ_CONFIG_FALSE=''
STATIC_MODULE_READ_CONFIG_TRUE=''
STATIC_VALIDATOR_HTDIGEST_FALSE=''
STATIC_VALIDATOR_HTDIGEST_TRUE=''
STATIC_VALIDATOR_HTPASSWD_FALSE=''
STATIC_VALIDATOR_HTPASSWD_TRUE=''
STATIC_VALIDATOR_PAM_FALSE=''
STATIC_VALIDATOR_PAM_TRUE=''
STATIC_VALIDATOR_PLAIN_FALSE=''
STATIC_VALIDATOR_PLAIN_TRUE=''
STRIP='m68k-elf-strip'
TLS_CFLAGS=''
TLS_LIBS=''
USE_INTERNAL_PCRE_FALSE=''
USE_INTERNAL_PCRE_TRUE=''
USE_PTHREAD_FALSE=''
USE_PTHREAD_TRUE=''
VERSION='0.4.30'
WWW_ROOT=''
YACC=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_F77=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='tar --format=ustar -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build='i386-redhat-linux-gnu'
build_alias='i386-redhat-linux'
build_cpu='i386'
build_os='linux-gnu'
build_vendor='redhat'
cherokeepath=''
datadir='${prefix}/share'
exec_prefix='NONE'
host='m68k-unknown-elf'
host_alias='m68k-elf'
host_cpu='m68k'
host_os='elf'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/sandro/uClinux/user/cherokee/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define OS_TYPE "UNIX"
#define PACKAGE_BUGREPORT "http://bugs.0x50.org";
#define PACKAGE_MAJOR_VERSION "0"
#define PACKAGE_MICRO_VERSION "30"
#define PACKAGE_MINOR_VERSION "4"
#define PACKAGE_NAME "cherokee"
#define PACKAGE_PATCH_VERSION ""
#define PACKAGE_STRING "cherokee 0.4.30"
#define PACKAGE_TARNAME "cherokee"
#define PACKAGE_VERSION "0.4.30"
#define SO_SUFFIX "so"

configure: exit 77
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to