Sam wrote:

> I am compling  the midgard-php4 .First I had errors during configure ... I

Which version PHP4?

> was using apache rpm installed
> error on line 1270
> ./configure: line 1270: syntax error near unexpected token
> `PHP_ADD_LIBRARY_WITH_PATH(midgard,'
> ./configure: line 1270: `    PHP_ADD_LIBRARY_WITH_PATH(midgard,
> "$PHP_MIDGARD/lib", MIDGARD_SHARED_LIBADD)'
> So I uinstalled Apache ,thinking that this had to do something with the
> static php with apache .After recompiling Apache still same problem persists

Hmmm... I haven't actually tried it, but having php4 built into apache
should work with midgard both built in and as a dynamic module.

> When I give the following command ..
> 
> ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning  --wi
> th-mysql=/usr/local/mysql --with-system-regex --with-xml

You must point --with-xml to expat. Without the explicit path it will
use the built-in expat.

> --with-midgard=/usr/local/midgard --enable-track-vars

Which midgard version are you using?

> checking for midgard support... yes, shared
> ./configure: line 1270: syntax error near unexpected token
> `PHP_ADD_LIBRARY_WITH_PATH(midgard,'
> ./configure: line 1270: `    PHP_ADD_LIBRARY_WITH_PATH(midgard,
> "$PHP_MIDGARD/lib", MIDGARD_SHARED_LIBADD)'

Change the conflicting identifiers in config.m4 from PHP_ADD_... to
AC_ADD_... We've seen this problem with pre-406 versions of PHP. We've
tried keeping up but every version and subversion of PHP had a
different behaviour between 401 and 406; we couldn't accomodate for
each. 406 or later should not show this error.

Emile



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to