Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 2010 21:45:06 +0400
From:      Anonymous <swell.k@gmail.com>
To:        Bartosz Stec <admin@kkip.pl>
Cc:        freebsd-current@freebsd.org, Gabor Kovesdan <gabor@FreeBSD.org>
Subject:   [bsdgrep] -w option matches part of words (Was: Apache 2.2 port and missing modules on current.)
Message-ID:  <86r5i61hwd.fsf@gmail.com>
References:  <4C613C56.109@kkip.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Bartosz Stec <admin@kkip.pl> writes:

>    # /usr/local/etc/rc.d/apache22 start
>    Performing sanity check on apache22 configuration:
>    httpd: Syntax error on line 68 of
>    /usr/local/etc/apache22/httpd.conf: Cannot load
>    /usr/local/libexec/apache22/mod_cache.so into server: Cannot open
>    "/usr/local/libexec/apache22/mod_cache.so"
[...]
> Problem seems to be connected with ./configure script:
>
>    # make configure &> build.log
>    # grep -i cache build.log
>    (...)
>    checking whether to enable mod_file_cache... shared
>    checking whether to enable mod_cache... no
>    checking whether to enable mod_disk_cache... shared
>    checking whether to enable mod_mem_cache... no
>    (...)

Seems like APACHE_MODULES is incorrectly populated.

  $ make -V APACHE_MODULES BATCH= GREP=${LOCALBASE-/usr/local}/bin/grep | fgrep cache
  ...cache disk_cache file_cache...
  $ make -V APACHE_MODULES BATCH= | fgrep cache
  ...disk_cache file_cache...

I guess the failing line is below in bsd.apache.mk

  ${ECHO_CMD} ${WITHOUT_MODULES} | ${GREP} -wq $${module} 2> /dev/null || \

It can be reduced to

  $ echo mem_cache | grep --color -w cache



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86r5i61hwd.fsf>