Re: Problems compiling midgard-apache2 1.7.4.

"Jukka Zitting" <[email protected]> Thu, 23 Feb 2006 15:19:04 +0200
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
Hi,

On 2/23/06, Tarjei Huse <[email protected]> wrote:
> configure: warning: CPPFLAGS=-I/opt/lampp/include/
> -I/opt/lampp/include/mysql -I/opt/lampp/include/glib-2.0: invalid host
> type
> configure: warning: LDFLAGS=-L/opt/lampp/lib -L/opt/lampp/lib/glib-2.0
> -L/opt/lampp/lib/mysql: invalid host type
> configure: error: can only configure for one host and one target at a
> time
> make: *** [apache2] Error 1
>
> Any tips? The same command somehow works for 1.8 .

Seems like ./configure is mistaking the CPPFLAGS and LDFLAGS settings
as host types for cross compiling. This might be caused by a different
version of autoconf having been used to generate the configure script.

Try putting the CPPFLAGS and LDFLAGS settings as environment variables
in the beginning of the ./configure line. Something like this:

    cd ... && CPPFLAGS=... LDFLAGS=... ./configure ...

BR,

Jukka Zitting

--
Yukatan - http://yukatan.fi/ - [email protected]
Software craftsmanship, JCR consulting, and Java development