I even tried completely uninstalling and reinstalling mysql, apache
and php4 -- now i reinstalled midgard.  I try with the 171 src distro
and using the cvs distribution, I still get a similar error -- its not
exactly the same but its very similar:  This time I include the entire
log of trying to compile midgard-php4.  Thank you so much.  I also
uninstalled Zend optimizer, I thought maybe zend optimizer was causing
the problem.. but I still get the same error.  its a vanilla apache2 /
php4.4.0 installation

# php-config --version
4.4.0

./mkall --with-php-config=/usr/local/bin/php-config
--with-midgard=/usr/local/bin/midgard-config
--with-apxs=/usr/local/apache/bin/apxs
--with-apr-config=/usr/local/apache/bin/apr-config
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20050606
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
-I/usr/local/include/php/Zend
checking for PHP extension directory...
/usr/local/lib/php/extensions/no-debug-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking for midgard support... yes, shared
checking for --with-apxs... /usr/local/apache/bin/apxs executable, good
checking for --with-apr-config... /usr/local/apache/bin/apr-config
executable, good
checking for Apache libexec directory... /usr/local/apache/modules
checking for Apache sysconf directory... /usr/local/apache/conf
checking for Apache include directory... -I/usr/local/apache/include
checking Apache version... ./configure: line 1: cd: -I: invalid option
cd: usage: cd [-L|-P] [dir]
2.0
checking for apr_socket_connect in -lapr-0... yes
checking whether to compile for old mod_midgard (non-MMP, activated by
default)... no
checking whether to keep depracated features... no
checking for midgard experimental functions support... no
checking whether to include profiling calls... no
checking whether to compile for php with system regex... php
  ========================   IMPORTANT   =========================
  If this is the first time you're installing Midgard, or you have
  recently upgraded PHP, make sure to check your php.ini to verify
  that extension_dir at least includes
  /usr/local/lib/php/extensions/no-debug-zts-20020429
  ================================================================
checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /usr/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... no
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/i586-suse-linux/bin/ld) supports
shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
configure: creating ./config.status
config.status: creating config.h
perl 
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/mgd_errno.pl
/bin/sh /root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/libtool
--mode=compile gcc  -I.
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-DPHP_ATOM_INC 
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/include
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/main
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/include
-I/usr/include/libxml2 -I/opt/gnome/include/glib-2.0
-I/opt/gnome/lib/glib-2.0/include -I/usr/include/mysql 
-I/usr/local/apache/include -DHAVE_CONFIG_H  -Wall
-fno-strict-aliasing   -c
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/mgd_errno.c
-o mgd_errno.lo
gcc -I. -I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-DPHP_ATOM_INC 
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/include
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/main
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/include
-I/usr/include/libxml2 -I/opt/gnome/include/glib-2.0
-I/opt/gnome/lib/glib-2.0/include -I/usr/include/mysql
-I/usr/local/apache/include -DHAVE_CONFIG_H -Wall -fno-strict-aliasing
-c /root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/mgd_errno.c
 -fPIC -DPIC -o mgd_errno.o
mv -f mgd_errno.o mgd_errno.lo
/bin/sh /root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/libtool
--mode=compile gcc  -I.
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-DPHP_ATOM_INC 
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/include
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/main
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/include
-I/usr/include/libxml2 -I/opt/gnome/include/glib-2.0
-I/opt/gnome/lib/glib-2.0/include -I/usr/include/mysql 
-I/usr/local/apache/include -DHAVE_CONFIG_H  -Wall
-fno-strict-aliasing   -c
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c
-o midgard.lo
gcc -I. -I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-DPHP_ATOM_INC 
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/include
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/main
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/include
-I/usr/include/libxml2 -I/opt/gnome/include/glib-2.0
-I/opt/gnome/lib/glib-2.0/include -I/usr/include/mysql
-I/usr/local/apache/include -DHAVE_CONFIG_H -Wall -fno-strict-aliasing
-c /root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c
 -fPIC -DPIC -o midgard.o
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif__midgard_php_object_constructor':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:706:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:706:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif__midgard_php_object_get_object_info':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:800:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:800:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif__midgard_php_object_list':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1233:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1233:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif__midgard_php_object_list_childs':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1270:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1270:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `__register_php_classes':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1668:
error: `tsrm_ls' undeclared (first use in this function)
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1668:
error: (Each undeclared identifier is reported only once
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1668:
error: for each function it appears in.)
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zm_startup_midgard':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1826:
error: syntax error before "void"
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif_mgd_config_init':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2027:
warning: passing arg 2 of `zend_parse_parameters' from incompatible
pointer type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2027:
warning: passing arg 3 of `zend_parse_parameters' from incompatible
pointer type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `_make_schema_types':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2757:
error: `tsrm_ls' undeclared (first use in this function)
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif_mgd_get_new_object_by_guid':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2952:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2952:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
make: *** [midgard.lo] Error 1
/bin/sh /root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/libtool
--mode=compile gcc  -I.
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-DPHP_ATOM_INC 
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/include
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/main
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/include
-I/usr/include/libxml2 -I/opt/gnome/include/glib-2.0
-I/opt/gnome/lib/glib-2.0/include -I/usr/include/mysql 
-I/usr/local/apache/include -DHAVE_CONFIG_H  -Wall
-fno-strict-aliasing   -c
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c
-o midgard.lo
gcc -I. -I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-DPHP_ATOM_INC 
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/include
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/main
-I/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/include
-I/usr/include/libxml2 -I/opt/gnome/include/glib-2.0
-I/opt/gnome/lib/glib-2.0/include -I/usr/include/mysql
-I/usr/local/apache/include -DHAVE_CONFIG_H -Wall -fno-strict-aliasing
-c /root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c
 -fPIC -DPIC -o midgard.o
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif__midgard_php_object_constructor':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:706:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:706:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif__midgard_php_object_get_object_info':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:800:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:800:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif__midgard_php_object_list':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1233:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1233:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif__midgard_php_object_list_childs':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1270:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1270:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `__register_php_classes':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1668:
error: `tsrm_ls' undeclared (first use in this function)
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1668:
error: (Each undeclared identifier is reported only once
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1668:
error: for each function it appears in.)
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zm_startup_midgard':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:1826:
error: syntax error before "void"
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif_mgd_config_init':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2027:
warning: passing arg 2 of `zend_parse_parameters' from incompatible
pointer type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2027:
warning: passing arg 3 of `zend_parse_parameters' from incompatible
pointer type
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `_make_schema_types':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2757:
error: `tsrm_ls' undeclared (first use in this function)
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:
In function `zif_mgd_get_new_object_by_guid':
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2952:
warning: left-hand operand of comma expression has no effect
/root/arbeit/web/midgard/from_cvs/midgard-php4-1.7.1_cvs20050926/midgard.c:2952:
warning: passing arg 2 of `_object_init_ex' from incompatible pointer
type
make: *** [midgard.lo] Error 1


On 9/27/05, Zachary Denison <[EMAIL PROTECTED]> wrote:
> On 9/27/05, Piotras <[EMAIL PROTECTED]> wrote:
>
> >
> > Apache and PHP self compiled??
> yes I compiled apache2 and php myself.  Do I need to do anything special?
>
>
> > --with-php-config=/usr/local/bin/php-config
> >
> > Probably you use PHP5 php-config still while trying to compile against PHP4.
>
> no I made sure that it was the correct php-config
>

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

Reply via email to