Archive

Posts Tagged ‘httpd’

Compiling Apache HTTP server on OpenSolaris

February 1st, 2010 lasseoe No comments

This may not come as a surprise to many of you, especially the ones who have used OpenSolaris for a long time, but for myself who have only recently started tampering with the Indiana branch of OpenSolaris it took a few minutes to figure out what was going on.

When running Apache’s configure on OpenSolaris build 131 it would bomb out at:

Configuring Apache Portable Runtime Utility library...
checking for APR-util... yes
adding "-L/usr/lib" to LDFLAGS
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/root/httpd-2.2.13':

Checking config.log showed me that it failed at cc1: error: invalid option 't' Odd!
It didn’t immediately occur to me that it was using the OpenSolaris supplied APR-util which is using the SunPro compiler.

So, the solution is to run configure with the --with-included-apr option.