I went into that file and blindly changed the config.h to php_config.h in
that file and it compiled, but I never could get it running so I gave up.  I
don't know if that's the correct fix, but maybe somebody more familiar with
this piece of work could verify that.  Good luck!

-----Original Message-----
From: Thomas Rother [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 12:57 AM
To: [EMAIL PROTECTED]
Subject: Re: [midgard-user] midgard-php4-4-1.4.1-7: no compiler luck
again on suse!!!


Alexander Bokovoy schrieb:

> It mentions development files (header files and libraries) needed to
compile
> any PHP4 module. You have only compiled version which is suitable for
> execution, without means for extension. I don't know how development part
> for any package is called in SuSE, may be other people who are using SuSE
> can help with proper names?

> The answer for your question is very simple: your system lacks tools for
> build environment. In particular, it lacks header files needed to compile
> PHP4 extensions. They are part of standard install of PHP4 and usually are
> located in /usr/include/php/*

OK, I now did a standard install of php-4.0.4pl1 and some of the missing
files
have been added, especially in /usr/lib/php. But still there are some things
missing and I have no idea what and where I can get it from. My system is
mainly
set up from RPMs. some SUSE stuff is special (and not well documented) and
there
is a risk to do something wrong when compiling from the scratch (that's one
of
the disadvantages compared to Debian etc.). Here is the output from
midgard-php4-1.4.1-7 # ./mkall
(same with ./mkall /usrlocal/lib, where I have the libmidgard and libexpat
libs):

----------------------------------------------------------------------------
-----------

make[1]: Entering directory
`/usr/local/ftp/pub/linux/midgard/midgard/midgard-php4-1.4.1-7'
make[1]: Nothing to be done for `distclean-p'.
make[1]: Leaving directory
`/usr/local/ftp/pub/linux/midgard/midgard/midgard-php4-1.4.1-7'
rm -f midgard.la *.lo *.slo *.la *.o
rm -rf .libs
rm -f config.cache config.log config.status config_vars.mk libtool \
php_config.h stamp-h Makefile build-defs.h php4.spec libphp4.module
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I${prefix}/include/php
-I${prefix}/include/php/main -I${prefix}/include/php/Zend
-I${prefix}/include/php/TSRM
checking for PHP extension directory...
/usr/local/lib/php/extensions/no-debug-non-zts-20001214
checking for bison... bison -y
checking how to run the C preprocessor... gcc -E
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for flex... (cached) flex
checking for midgard support... yes, shared
checking for apxs... /usr/sbin/apxs
checking for glib-config... /usr/bin/glib-config
checking for midgard experimental functions support... no
checking host system type... i586-pc-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for ranlib... ranlib
checking for ld used by GCC... /usr/i486-suse-linux/bin/ld
checking if the linker (/usr/i486-suse-linux/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/i486-suse-linux/bin/ld) is GNU ld... yes
checking whether the linker (/usr/i486-suse-linux/bin/ld) supports shared
libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/i486-suse-linux/bin/ld option to reload object files... -r
checking dynamic linker characteristics... 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 for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for working mkdir -p... yes
creating config_vars.mk
creating Makefile
updating cache ./config.cache
creating ./config.status
creating php_config.h
make[1]: Entering directory
`/usr/local/ftp/pub/linux/midgard/midgard/midgard-php4-1.4.1-7'
/bin/sh
/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/libtool --mode=compile
gcc  -I. -I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/
-I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/main
-I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM -I/usr/include/apache   -g -O2
-I/usr/lib/glib/include -ggdb -Wall `/usr/bin/glib-config --cflags` -c
mgd_errno.c && touch mgd_errno.slo
gcc -I. -I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/
-I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/main
-I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM -I/usr/include/apache -g -O2
-I/usr/lib/glib/include -ggdb -Wall -I/usr/lib/glib/include -c mgd_errno.c
-fPIC -DPIC -o mgd_errno.lo
/bin/sh
/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/libtool --mode=compile
gcc  -I. -I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/
-I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/main
-I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM -I/usr/include/apache   -g -O2
-I/usr/lib/glib/include -ggdb -Wall `/usr/bin/glib-config --cflags` -c
midgard.c
&& touch midgard.slo
gcc -I. -I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/
-I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7/main
-I/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7 -I/usr/local/include/php
-I/usr/local/include/php/main -I/usr/local/include/php/Zend
-I/usr/local/include/php/TSRM -I/usr/include/apache -g -O2
-I/usr/lib/glib/include -ggdb -Wall -I/usr/lib/glib/include -c
idgard.c  -fPIC
-DPIC -o midgard.lo
In file included from midgard.c:32:
mgd_internal.h:24: config.h: No such file or directory
In file included from mgd_preparser.h:23,
                 from midgard.c:56:
mgd_internal.h:24: config.h: No such file or directory
make[1]: *** [midgard.slo] Error 1
make[1]: Leaving directory
`/usr/local/ftp/pub/linux/midgard/midgard/midgard-php4-1.4.1-7'
make: *** [install-recursive] Error 1
locutus:/ftpub/linux/midgard/midgard/midgard-php4-1.4.1-7 #
----------------------------------------------------------------------------
-----------



--
-------------------------------------------------------
Thomas M. ROTHER  - "netzwissen" - 73728 Esslingen
Germany/EU - http://www.netzwissen.de (updated)
Public PGP Key available from http://www.keyserver.net
-------------------------------------------------------



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



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

Reply via email to