Compiling Apache HTTP server on OpenSolaris

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.

This entry was posted in OpenSolaris and tagged , , , , , , . Bookmark the permalink.

One Response to Compiling Apache HTTP server on OpenSolaris

  1. Just encountered the same problem. Thanks for the advice – this resolved it!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>