1/1

|
apapache web server build for openrisc
by hwmin75 on May 11, 2012 |
hwmin75
Posts: 20 Joined: Mar 8, 2010 Last seen: Jul 21, 2018 |
||
|
Hello everyone.
I'm trying to build apache web server for openrisc. However, I faile to build apache. Maybe the probelm is that openrisc gcc have no libdl. ======================== Process to build apache for openrisc is the following ------------------------------- for apache(httpd-2.2.9.tar.gz) ------------------------------- First. ======= should build apache in PC. $ ./configure --with-included-apr --enable-so && make $ mkdir ../tmp $ cp -a srclib/pcre/dftables ../tmp/ $ cp -a server/gen_test_char ../tmp/ cross complile. ============== 1. ./configure ac_cv_file_dbd_apr_dbd_mysql_c=no ac_cv_sizeof_size_t=4 ac_cv_sizeof_ssize_t=4 ac_cv_sizeof_int=4 apr_cv_tcp_nodelay_with_cork=no apr_cv_process_shared_works=no ac_cv_func_setpgrp_void=no ac_cv_file__dev_zero=no ap_void_ptr_lt_long=no openrisc@BHwang$ ^C=or32-linux-gcc CPP=or32-linux-cpp STRIP=or32-linux-strip OBJCOPY=or32-linux-ob jcopy RANLIB=or32-linux-ranlib LD=or32-linux-ld LIBS=-lpthread ./configure --prefix=/opt/u2/tmp -- target=or32-linux --build=i686 --host=or32-linux --enable-so Howere, There are a fail. Checking for DSO... checking for dlopen... no checking for dlopen in -ldl... no checking for load_image in -lroot... no configure: error: Could not detect suitable DSO implementation configure failed for srclib/apr And. I drop --enable-so and add --disable-dso. ac_cv_file_dbd_apr_dbd_mysql_c=no ac_cv_sizeof_size_t=4 ac_cv_sizeof_ssize_t=4 ac_cv_sizeof_int=4 apr_cv_tcp_nodelay_with_cork=no apr_cv_process_shared_works=no ac_cv_func_setpgrp_void=no ac_cv_file__dev_zero=no ap_void_ptr_lt_long=no openrisc@BHwang$ ^C=or32-linux-gcc CPP=or32-linux-cpp STRIP=or32-linux-strip OBJCOPY=or32-linux-ob jcopy RANLIB=or32-linux-ranlib LD=or32-linux-ld LIBS=-lpthread ./configure --prefix=/opt/u2/tmp -- target=or32-linux --build=i686 --host=or32-linux --enable-dso This configure is passed. 2. Sseveral files neet to be modifyed. > vi srclib/apr/include/apr.h line 488 is replaced into the below line #define APR_PATH_MAX 255 /*#error no decision has been made on APR_PATH_MAX for your platform*/ > vi srclib/apr/include/apr_want.h line 93 should be commentd. /* struct iovec { } */ 3. make. /bin/sh /opt/u2/httpd-2.2.9/srclib/apr/libtool --silent --mode=compile or32-linux-gcc -g -O2 -DHAVE_CONFIG_H -D_REENTRANT -D_GNU_SOURCE -I/opt/u2/httpd-2.2.9/srclib/apr-util/include -I/opt/u2/httpd-2.2.9/srclib/apr-util/include/private -I/opt/u2/httpd-2.2.9/srclib/apr/include -I/opt/u2/httpd-2.2.9/srclib/apr-util/xml/expat/lib -o ldap/apr_ldap_stub.lo -c ldap/apr_ldap_stub.c && touch ldap/apr_ldap_stub.lo In file included from ldap/apr_ldap_stub.c:21:0: /opt/u2/httpd-2.2.9/srclib/apr-util/include/private/apu_internal.h:40:48: error: expected �)� before �*� token make[3]: *** [ldap/apr_ldap_stub.lo] Error 1 make[3]: Leaving directory `/opt/u2/httpd-2.2.9/srclib/apr-util' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/u2/httpd-2.2.9/srclib/apr-util' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/u2/httpd-2.2.9/srclib' make: *** [all-recursive] Error 1 Here is a errors, Maybe will be shared lib's types. I'm looking forware to get a good solution. Thank you. |
|||
|
RE: apapache web server build for openrisc
by jeremybennett on May 11, 2012 |
jeremybennett
Posts: 815 Joined: May 29, 2008 Last seen: Jun 13, 2019 |
||
|
Hi hwmin75 You are correct that we have only a static GCC tool chain for OpenRISC at present. But this need not stop you running a web server. I suggest you don't build Apache yourself (which is really for big servers), just use the httpd in BusyBox. You'll just need to configure BusyBox to enable it before building using the standard OpenRISC Linux build process. HTH Jeremy
-- |
|||
1/1

