>Installing Apache2 in FreeBSD

>While installing apache2 I ran into some minor trouble.

$> cd /usr/ports/www/apache2
$> make -DWITH_EXPERIMENTAL_MODULES -DWITH_LDAP_MODULES -DWITH_MISC_MODULES -DWITH_PROXY_MODULES -DWITH_SSL_MODULES -DWITH_SUEXEC_MODULES -DWITH_THREADS_MODULES install clean


mod_mem_cache.c: In function `remove_entity’:
mod_mem_cache.c:556: error: structure has no member named `lock’
mod_mem_cache.c:557: error: structure has no member named `lock’
mod_mem_cache.c:571: error: structure has no member named `lock’
mod_mem_cache.c:572: error: structure has no member named `lock’
mod_mem_cache.c: In function `remove_url’:
mod_mem_cache.c:644: error: structure has no member named `lock’
mod_mem_cache.c:645: error: structure has no member named `lock’
mod_mem_cache.c:654: error: structure has no member named `lock’
mod_mem_cache.c:655: error: structure has no member named `lock’
mod_mem_cache.c: In function `store_body’:
mod_mem_cache.c:928: error: structure has no member named `lock’
mod_mem_cache.c:929: error: structure has no member named `lock’
mod_mem_cache.c:964: error: structure has no member named `lock’
mod_mem_cache.c:965: error: structure has no member named `lock’
mod_mem_cache.c: In function `mem_cache_post_config’:
mod_mem_cache.c:1034: error: structure has no member named `lock’
mod_mem_cache.c:1034: error: `APR_THREAD_MUTEX_DEFAULT’ undeclared (first use in this function)
mod_mem_cache.c:1034: error: (Each undeclared identifier is reported only once
mod_mem_cache.c:1034: error: for each function it appears in.)

Stop in /usr/ports/www/apache2/work/httpd-2.0.55/modules/experimental.
*** Error code 1

From the error I could deduce that there were problems with the experimental modules. Since I did not need experimental I just removed it for the make options.

$> make -DWITH_LDAP_MODULES -DWITH_MISC_MODULES -DWITH_PROXY_MODULES -DWITH_SSL_MODULES -DWITH_SUEXEC_MODULES -DWITH_THREADS_MODULES install clean

After removing the flag “-DWITH_EXPERIMENTAL_MODULES”, old object files needed to be removed as well before make could succeed.

$> make clean
===> Cleaning for libiconv-1.9.2_1
===> Cleaning for autoconf-2.59_2
===> Cleaning for gettext-0.14.5
===> Cleaning for gmake-3.80_2
===> Cleaning for libtool-1.5.20

$> make -DWITH_LDAP_MODULES -DWITH_MISC_MODULES -DWITH_PROXY_MODULES -DWITH_SSL_MODULES -DWITH_SUEXEC_MODULES -DWITH_THREADS_MODULES install clean

This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/opt/etc/rc.d/apache2.sh
/opt/etc/rc.d/000.apache2libs.sh

===> Cleaning for autoconf-2.59_2
===> Cleaning for gettext-0.14.5
===> Cleaning for gmake-3.80_2
===> Cleaning for libtool-1.5.20

Well, that did the trick, so I can now work on configuring the config files.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s