Hi, I'm compiling Midgard 1.5.0 from sources on my Gentoo 1.4 box. I have apache 1.3.28, PHP 4.3.2 and Midgard 1.5 sources from download page (http://www.midgard-project.org/download/)
Lib, data and mod_midgard packages install fine. But I'm getting this compile error with midgard_php4: ________________________________________ /bin/sh /opt/0_Install/midgard-php4-1.5.0/libtool --mode=compile gcc -I. -I/opt/0_Install/midgard-php4-1.5.0 -DPHP_ATOM_INC -I/opt/0_Install/midgard-php4-1.5.0/include -I/opt/0_Install/midgard-php4-1.5.0/main -I/opt/0_Install/midgard-php4-1.5.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/apache2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/mysql -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /opt/0_Install/midgard-php4-1.5.0/preparse.c -o preparse.lo gcc -I. -I/opt/0_Install/midgard-php4-1.5.0 -DPHP_ATOM_INC -I/opt/0_Install/midgard-php4-1.5.0/include -I/opt/0_Install/midgard-php4-1.5.0/main -I/opt/0_Install/midgard-php4-1.5.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/apache2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/mysql -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /opt/0_Install/midgard-php4-1.5.0/preparse.c -fPIC -DPIC -o preparse.lo In file included from /opt/0_Install/midgard-php4-1.5.0/preparse.c:28: /usr/local/include/midgard/apache.h:69: parse error before "table" /usr/local/include/midgard/apache.h:78: parse error before "pool" /usr/local/include/midgard/apache.h:103: parse error before '*' token /usr/local/include/midgard/apache.h:105: parse error before '*' token /usr/local/include/midgard/apache.h:106: parse error before '*' token /usr/local/include/midgard/apache.h:115: parse error before '}' token /opt/0_Install/midgard-php4-1.5.0/preparse.c: In function `mgd_preparse_get_element': /opt/0_Install/midgard-php4-1.5.0/preparse.c:38: `table' undeclared (first use in this function) /opt/0_Install/midgard-php4-1.5.0/preparse.c:38: (Each undeclared identifier is reported only once /opt/0_Install/midgard-php4-1.5.0/preparse.c:38: for each function it appears in.) /opt/0_Install/midgard-php4-1.5.0/preparse.c:38: parse error before ')' token /opt/0_Install/midgard-php4-1.5.0/preparse.c:39: warning: return makes pointer from integer without a cast /opt/0_Install/midgard-php4-1.5.0/preparse.c: In function `mgd_preparse_string': /opt/0_Install/midgard-php4-1.5.0/preparse.c:54: `rcfg' undeclared (first use in this function) /opt/0_Install/midgard-php4-1.5.0/preparse.c: In function `zif_mgd_format': /opt/0_Install/midgard-php4-1.5.0/preparse.c:154: warning: passing arg 1 of `mgd_format' makes pointer from integer without a cast make: *** [preparse.lo] Error 1 ________________________________________ I already searched the archives of both lists (user and dev) and found nothing of help. I did have to change '#include "config.h"' to '#include "php_config.h"' to get me past compiling of midgard.c. Can someone please explain how I resolve this remaining problem? thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
