Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Changes between Version 2 and Version 3 of Projects/Apache_Runtime


Ignore:
Timestamp:
06/22/12 22:17:51 (12 years ago)
Author:
C Rempel
Comment:

/* Makefile.apr */

Legend:

Unmodified
Added
Removed
Modified
  • Projects/Apache_Runtime

    v2 v3  
    1717
    1818
    19 These are the configurations needed to get Apache Runtime Library 1.4.6 to run on the May 2012 RTEMS development branch.  The -Defines were taken from [http://freebsd.active-venture.com/FreeBSD-srctree/newsrc/sys/mman.h.html FreeBSD: Source to sys/mman.h]
     19These are the configurations needed to get Apache Runtime Library 1.4.6 to run on the May 2012 RTEMS development branch. 
    2020
    2121 #
     
    2929 #
    3030
     31As the Apache Runtime uses non-recursive make, this makes all the o-optimize subdirectories to mirror the subdirectories in the source that will be built
    3132 all:
    3233        rm -rf o-optimize test/o-optimize
     
    5051        mkdir o-optimize/user o-optimize/user/unix
    5152        mkdir test/o-optimize/ test/o-optimize/internal test/o-optimize/data
     53
     54Next, for me, there were several configurations to get the Apache Runtime build system to recognize all the functions available to the RTEMS system.  Ac_cv stands for Auto Conf Cached Variables -- one preset BEFORE the configuration.  The headers use ac_cv_header_..._h.  The functions use ac_cv_func_... The defines use ac_cv_define... The cached configurations can be found in the Auto Conf Manual and the Apache Runtime configure script.  The most interesting was pre-setting ac_cv_file__dev_zero, so the configuration would continue through a cross-compile.  The second most interesting was defining the size of struct iovec to get the configuration to recognize that iovec was a type defined in RTEMS, (according to the Auto Conf manual, getting the size is how the configuation script determines that a struct is a type).
     55
    5256        ac_decision_USE_SHMEM_MMAP_ANON=no \
    5357        ac_cv_header_sys_mman_h=yes \
     
    6266        ac_cv_gethostbyname_r_arg=char \
    6367        ac_cv_working_getnameinfo=no \
     68The -Defines were taken from [http://freebsd.active-venture.com/FreeBSD-srctree/newsrc/sys/mman.h.html FreeBSD: Source to sys/mman.h].  The fact that the CFLAGS were -Defined MAY indicate this could be the source of issues for debugging (when I get to the testing phase).
    6469        CFLAGS='-DPROT_READ=0x01 -DPROT_WRITE=0x02 -DMAP_SHARED=0x0001 -DMAP_ANON=0x1000' \
    6570        ./configure \