List Info

Thread: Error on ./configure process with Xapian-bindings-0.9.6




Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-16 20:23:50
I compiled Xapian-bindings-0.9.6 with MingW on an Xp system.
But the ./configure process didn't create the library. It
stopped after the following lines. Without any error
message.

>config.status: executing depfiles commands

>*** Building bindings for languages:

After this, the process ended without any error message
displayed.

I already installed Xapian-core-0.9.6 and omega-0.9.6. They
work fine. What is your opinion? Thank you for any help.



 		
---------------------------------
Get your email and more, right on the  new Yahoo.com 
_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-16 20:53:17
On Sat, Sep 16, 2006 at 01:23:50PM -0700, Sebi wrote:
> I compiled Xapian-bindings-0.9.6 with MingW on an Xp
system. But the
> ./configure process didn't create the library. It
stopped after the
> following lines. Without any error message.
> 
> >config.status: executing depfiles commands
> 
> >*** Building bindings for languages:

This means that configure didn't find the required tools to
build
bindings for any of the supported languages.  It should say
that
explicitly - I'll fix that.

It's quite possible you have the required tools installed,
but
not on your PATH.  You can tell configure where to look -
try
"./configure --help" - for PHP you might use:

./configure PHP_CONFIG=c:/php5/bin/php-config

What language(s) are you aiming to build?  I know the Python
bindings
have been successfully built with mingw - the others may
require a
little bit of tweaking.  Let us know if you encounter
problems and
we'll try to help, so we can ensure that future versions
work out of
the box.

Cheers,
    Olly

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-16 22:06:35
> It's quite possible you have the required tools
installed, but
> not on your PATH.  You can tell configure where to look
- try
> "./configure --help" - for PHP you might
use:

> ./configure PHP_CONFIG=c:/php5/bin/php-config

So, this means I need to have php-config tool installed. I
dont have PHP compiled with MingW compiler under MSYS. So, I
dont have this tool. Is it necessary? Should I install SWIG
too under MSYS?

> What language(s) are you aiming to build?  I know the
Python bindings
> have been successfully built with mingw - the others
may require a
> little bit of tweaking.  Let us know if you encounter
problems and
> we'll try to help, so we can ensure that future
versions work out of
> the box.

I want PHP bindings under Windows XP.

Thank you


 		
---------------------------------
Stay in the know. Pulse on the new Yahoo.com.  Check it out.

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-17 13:00:09
Sebi schrieb:
>> It's quite possible you have the required tools
installed, but
>> not on your PATH.  You can tell configure where to
look - try
>> "./configure --help" - for PHP you
might use:
> 
>> ./configure PHP_CONFIG=c:/php5/bin/php-config
> 
> So, this means I need to have php-config tool
installed. I dont have PHP compiled with MingW compiler
under MSYS. So, I dont have this tool. Is it necessary?
Should I install SWIG too under MSYS?
> 
>> What language(s) are you aiming to build?  I know
the Python bindings
>> have been successfully built with mingw - the
others may require a
>> little bit of tweaking.  Let us know if you
encounter problems and
>> we'll try to help, so we can ensure that future
versions work out of
>> the box.
> 
> I want PHP bindings under Windows XP.

I started also with that today, but was distracted by some
other things 
todo.

can you put the php binary (mod_xapian.dll) then somewhere
to it pick 
up, please?
-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/
http://helsinki.at/  http://spacemovie.mur.at/

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-17 14:41:51
On Sat, Sep 16, 2006 at 03:06:35PM -0700, Sebi wrote:
> > It's quite possible you have the required tools
installed, but
> > not on your PATH.  You can tell configure where to
look - try
> > "./configure --help" - for PHP you
might use:
> 
> > ./configure PHP_CONFIG=c:/php5/bin/php-config
> 
> So, this means I need to have php-config tool
installed. I dont have
> PHP compiled with MingW compiler under MSYS. So, I dont
have this
> tool. Is it necessary?

Under Unix, php-config is installed by default when you
install PHP.
I don't know if it even exists under MS Windows - perhaps
you build
PHP modules a different way there.

The information we get from php-config is:

Location of include file - a list of
"-I<directory>".

PHP_EXTENSION_DIR - the directory where mod_xapian.dll
should be
installed.

PHP_LIBS - the -L<directory> and -l<library>
flags for linking
mod_xapian.dll.  Currently configure seems to think it needs
to link
with -lphp4ts or -lphp5ts under mingw, but I'm not sure
where that
knowledge came from without digging into the SVN history.
						
If there's some other way to find this information, I can
get configure
to use it instead.  If you don't know, I'll see what I can
find on the
web.

Incidentally, I'm not sure if you'll be able to build a
PHP module with
mingw to use with PHP compiled with something else.  It
seems to be
impossible to achieve this with Python at least.

> Should I install SWIG too under MSYS?

No, the tarballs come with SWIG already run - there's no
need to have
SWIG installed unless you plan to modify the bindings
themselves.

Cheers,
    Olly

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-17 16:11:01
>The information we get from php-config is:
>
>Location of include file - a list of "-I".
>
>PHP_EXTENSION_DIR - the directory where mod_xapian.dll
should be
>installed.
>
>PHP_LIBS - the -L and -l
 flags for linking
>mod_xapian.dll.  Currently configure seems to think it
needs to link
>with -lphp4ts or -lphp5ts under mingw, but I'm not sure
where that
>knowledge came from without digging into the SVN
history.
      >
>If there's some other way to find this information, I
can get configure
>to use it instead.  If you don't know, I'll see what I
can find on the
>web.

What information returned by php-config tool do
Xapian-bindings-0.9.6 use on the configure step? I can make
a program named `php-config` which will return this
information for every php-config option.

Can i supply this information directly to ./configure,
whitout using php-config?

Thank you.

 


 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone
calls.  Great rates starting at 1¢/min.
_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-17 17:07:02
On Sun, Sep 17, 2006 at 03:41:51PM +0100, Olly Betts wrote:

> Incidentally, I'm not sure if you'll be able to build
a PHP module with
> mingw to use with PHP compiled with something else.  It
seems to be
> impossible to achieve this with Python at least.

I'll be amazed if it works for PHP. Does anyone know how
the PHP
Windows binaries are built? They're probably using MSVS, at
least for
the ISAPI version, because they'll have to load into IIS
which will be
MSVS-built.

J

-- 
/-----------------------------------------------------------
---------------\
  James Aylett                                              
   xapian.org
  jamestartarus.org                              
uncertaintydivision.org

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 02:53:39
On Sun, Sep 17, 2006 at 09:11:01AM -0700, Sebi wrote:
> What information returned by php-config tool do
Xapian-bindings-0.9.6
> use on the configure step? I can make a program named
`php-config`
> which will return this information for every php-config
option.

You could, but it would be much better to work out how to
get this
information automatically so "./configure" just
works.  Or failing
that (I've been digging on the web and there doesn't seem
to be any
obvious way sadly) allow users to just need to specify some
directories
to configure instead of having to write their own
php-config.

> Can i supply this information directly to ./configure,
whitout using
> php-config?

Not currently.

However, having run configure, I think you should be able to
pass the
values to "make" like this (assuming that you
have PHP installed in
"c:\php5" and the PHP source unpacked at
"c:\php-5.1.6"):

cd php
make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev
-lphp5ts" PHP_EXTENSION_DIR=c:/php5/ext
make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev
-lphp5ts" PHP_EXTENSION_DIR=c:/php5/ext install
ren c:\php\ext\xapian.dll c:\php\ext\php_xapian.dll

Cheers,
    Olly

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 03:08:54
On Sun, Sep 17, 2006 at 06:07:02PM +0100, James Aylett
wrote:
> On Sun, Sep 17, 2006 at 03:41:51PM +0100, Olly Betts
wrote:
> 
> > Incidentally, I'm not sure if you'll be able to
build a PHP module with
> > mingw to use with PHP compiled with something
else.  It seems to be
> > impossible to achieve this with Python at least.
> 
> I'll be amazed if it works for PHP.

Given the Python situation, I wouldn't be totally suprised
if it didn't.
But I still don't really understand why.

The mingw compiler should be capable of producing code with
the same
calling conventions - after all mingw is built on the idea
of using
the Microsoft C runtime DLL, and it can work with other DLLs
too - it's
not just some hand crafted assembler glue specific to the
CRT DLL.

I can believe you can't link C++ code from both mingw and
Microsoft
toolchains, since the C++ libraries aren't compatible. 
Even if you
don't use the libraries, the C++ name mangling and
exception handling
may not be the same.  But Xapian's C++ code is hidden in
DLLs behind a C
API from PHP's point of view, so this shouldn't really be
a problem.

> Does anyone know how the PHP Windows binaries are
built? They're
> probably using MSVS, at least for the ISAPI version,
because they'll
> have to load into IIS which will be MSVS-built.

"If you have Microsoft Visual Studio, you can also
build PHP from the
original source code."

Which seems to suggest you can't build it with mingw.

Cheers,
    Olly

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 08:08:22
On Mon, Sep 18, 2006 at 04:08:54AM +0100, Olly Betts wrote:

> > Does anyone know how the PHP Windows binaries are
built? They're
> > probably using MSVS, at least for the ISAPI
version, because they'll
> > have to load into IIS which will be MSVS-built.
> 
> "If you have Microsoft Visual Studio, you can
also build PHP from the
> original source code."
> 
> Which seems to suggest you can't build it with mingw.

Hmm. I might see if I can get someone over here excited
about Xapian
(even if just by attrition  who could
put some time into doing
this. (OTOH they'd probably want to spend their time doing
the arguably
more useful Managed C++ wrapper that would make Xapian
available to
all .Net languages. But I might find someone weird enough.)

James

-- 
/-----------------------------------------------------------
---------------\
  James Aylett                                              
   xapian.org
  jamestartarus.org                              
uncertaintydivision.org

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 09:45:25
>However, having run configure, I think you should be
able to pass the
>values to "make" like this (assuming that
you have PHP installed in
>"c:\php5" and the PHP source unpacked at
"c:\php-5.1.6"):

>cd php
>make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
>PHP_EXTENSION_DIR=c:/php5/ext
>make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
>PHP_EXTENSION_DIR=c:/php5/ext install


I tried this mehod but useless. For the make I get the
following output:

$ make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev
-lphp5ts" PHP_EXTENSION_DIR=c:/php5/ext
make  all-recursive
make[1]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[2]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[2]: Leaving directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[1]: Leaving directory
`/c/bin/xapian/xapian-bindings-0.9.6'

For make install:

$ make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev
-lphp5ts" PHP_EXTENSION_DIR=c:/php5/ext install
make[1]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[2]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[1]: Leaving directory
`/c/bin/xapian/xapian-bindings-0.9.6'

I have the source code for the php in c:/php-5.1.6 and
windows binaries php in c:/php-5.1.6. The same output like
the one without the options passed.

- What should I try next?  

- How can I install php-bindings for the php-5.1.6 windows
binaries? 

- Is there anyone which installed php bindings with success
in the past?

- Is Cygwin a better solution? If I compile php source with
Cygwin and then I make php_xapian.dll, will it
(php_xapian.dll) be compatible with windows binaries
version?

Again, if anyone succeded with xapian-bindings for windows,
please give me some advices. Thank you.
  
 		
---------------------------------
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail.
_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 09:45:25
>However, having run configure, I think you should be
able to pass the
>values to "make" like this (assuming that
you have PHP installed in
>"c:\php5" and the PHP source unpacked at
"c:\php-5.1.6"):

>cd php
>make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
>PHP_EXTENSION_DIR=c:/php5/ext
>make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
>PHP_EXTENSION_DIR=c:/php5/ext install


I tried this mehod but useless. For the make I get the
following output:

$ make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev
-lphp5ts" PHP_EXTENSION_DIR=c:/php5/ext
make  all-recursive
make[1]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[2]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[2]: Leaving directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[1]: Leaving directory
`/c/bin/xapian/xapian-bindings-0.9.6'

For make install:

$ make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev
-lphp5ts" PHP_EXTENSION_DIR=c:/php5/ext install
make[1]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[2]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory
`/c/bin/xapian/xapian-bindings-0.9.6'
make[1]: Leaving directory
`/c/bin/xapian/xapian-bindings-0.9.6'

I have the source code for the php in c:/php-5.1.6 and
windows binaries php in c:/php-5.1.6. The same output like
the one without the options passed.

- What should I try next?  

- How can I install php-bindings for the php-5.1.6 windows
binaries? 

- Is there anyone which installed php bindings with success
in the past?

- Is Cygwin a better solution? If I compile php source with
Cygwin and then I make php_xapian.dll, will it
(php_xapian.dll) be compatible with windows binaries
version?

Again, if anyone succeded with xapian-bindings for windows,
please give me some advices. Thank you.
  
 		
---------------------------------
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail.
_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 15:19:26
On Mon, Sep 18, 2006 at 02:45:25AM -0700, Sebi wrote:
> >However, having run configure, I think you should
be able to pass the
> >values to "make" like this (assuming
that you have PHP installed in
> >"c:\php5" and the PHP source unpacked
at "c:\php-5.1.6"):
> 
> >cd php
> >make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
>PHP_EXTENSION_DIR=c:/php5/ext
> >make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
>PHP_EXTENSION_DIR=c:/php5/ext install
> 
> 
> I tried this mehod but useless. For the make I get the
following output:
> 
> $ make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
PHP_EXTENSION_DIR=c:/php5/ext
> make  all-recursive
> make[1]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6'

You've missed the vital "cd php" first step
from the above list.

> - Is there anyone which installed php bindings with
success in the past?

I don't remember hearing any success reports, but that
doesn't
necessarily mean it's not been done.

> - Is Cygwin a better solution? If I compile php source
with Cygwin and
> then I make php_xapian.dll, will it (php_xapian.dll) be
compatible
> with windows binaries version?

That's very unlikely to work - cygwin uses it's own C
library, so you'll
get issues with things like passing malloc-ed memory to/from
PHP.  Mingw
certainly stands more chance.

If you can build PHP with cygwin and the bindings with
cygwin, you could
use the cygwin PHP, but that prevent using it with IIS...

Cheers,
    Olly

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 15:53:34
On Mon, Sep 18, 2006 at 04:19:26PM +0100, Olly Betts wrote:

> If you can build PHP with cygwin and the bindings with
cygwin, you could
> use the cygwin PHP, but that prevent using it with
IIS...

Except as CGI, so it's probably worth a try.

James

-- 
/-----------------------------------------------------------
---------------\
  James Aylett                                              
   xapian.org
  jamestartarus.org                              
uncertaintydivision.org

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 17:04:39
>cd php
>make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
>PHP_EXTENSION_DIR=c:/php5/ext
>make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
>PHP_EXTENSION_DIR=c:/php5/ext install


Useless. I get errors in xapian_wrap.cc file:

$ make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev
-lphp5ts" PHP_EXTENSION_D
IR=c:/php5/ext
make  all-recursive
make[1]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6/php'
Making all in docs
make[2]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6/php/docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/c/bin/xapian/xapian-bindings-0.9.6/php/docs'
make[2]: Entering directory
`/c/bin/xapian/xapian-bindings-0.9.6/php'
if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I. -I..                                
                                              -Ic:/php-5.1.6
 -Wall -Wno-unused -Wno-uninitialized -I/xapian/core/include
-g                                                          
                   -O2 -MT xapian_wrap.lo -MD -MP -MF
".deps/xapian_wrap.Tpo" -c -o xapian_wrap.lo    
                                                            
            xapian_wrap.cc; \
then mv -f ".deps/xapian_wrap.Tpo"
".deps/xapian_wrap.Plo"; else rm -f
".deps/xa                                             
                               pian_wrap.Tpo"; exit 1;
fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Ic:/php-5.1.6 -Wall
-Wno-unused -Wno-uninitia                                   
                                         lized
-I/xapian/core/include -g -O2 -MT xapian_wrap.lo -MD -MP -MF
.deps/xapian_                                               
                             wrap.Tpo -c xapian_wrap.cc 
-DDLL_EXPORT -DPIC -o .libs/xapian_wrap.o
xapian_wrap.cc:706:18: zend.h: No such file or directory
xapian_wrap.cc:707:22: zend_API.h: No such file or directory
xapian_wrap.cc:708:17: php.h: No such file or directory
xapian_wrap.cc:738: error: `E_ERROR' was not declared in
this scope
xapian_wrap.cc:759: error: ISO C++ forbids declaration of
`ZEND_RSRC_DTOR_FUNC'                                      
                                       with no type
....... and many others. 

I will install a Unix system and try to work with xapian
bindings there.

Thank you for help. 



 				
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help.
Yahoo! Small Business.
_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 17:42:46
On Mon, Sep 18, 2006 at 10:04:39AM -0700, Sebi wrote:
> >cd php
> >make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
PHP_EXTENSION_DIR=c:/php5/ext
> >make PHP_INC=-Ic:/php-5.1.6
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
PHP_EXTENSION_DIR=c:/php5/ext install
> 
> Useless. I get errors in xapian_wrap.cc file:

Sorry, I failed to list all the include directories:

make PHP_INC="-Ic:/php-5.1.6 -Ic:/php-5.1.6/main
-Ic:/php-5.1.6/TSRM -Ic:/php-5.1.6/Zend"
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
PHP_EXTENSION_DIR=c:/php5/ext

Cheers,
    Olly

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 18:35:39
>make PHP_INC="-Ic:/php-5.1.6 -Ic:/php-5.1.6/main
-Ic:/php-5.1.6/TSRM >-Ic:/php-5.1.6/Zend"
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
>PHP_EXTENSION_DIR=c:/php5/ext

This time I get errors like:

c:/php-5.1.6/Zend/zend.h:53:26: zend_config.h: No such file
or directory
or
c:/php-5.1.6/Zend/../TSRM/tsrm_config.w32.h:10:20: crtdbg.h:
No such file or directory ... and so on. 

These heders doesnt exist in the php source package. I
search for them, but useless. In zend.h header is the
following code:

#ifdef ZEND_WIN32
# include "zend_config.w32.h"
# define ZEND_PATHS_SEPARATOR        ';'
#elif defined(NETWARE)
# include <zend_config.h>
# define ZEND_PATHS_SEPARATOR        ';'
#elif defined(__riscos__)
# include <zend_config.h>
# define ZEND_PATHS_SEPARATOR        ';'
#else
# include <zend_config.h>
# define ZEND_PATHS_SEPARATOR        ':'
#endif

zend_config.w32.h file exist in the source code. Maybe we
will need to define ZEND_WIN32 somewhere. What do you think
Olly? 




 		
---------------------------------
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail.
_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 19:08:36
On Mon, Sep 18, 2006 at 11:35:39AM -0700, Sebi wrote:
> zend_config.w32.h file exist in the source code. Maybe
we will need to
> define ZEND_WIN32 somewhere. What do you think Olly? 

Yes, it looks like you need to add
CPPFLAGS="-DZEND_WIN32 -DPHP_WIN32"
to the make command line.

Cheers,
    Olly

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 20:57:41
make PHP_INC="-Ic:/php-5.1.6 -Ic:/php-5.1.6/main
-Ic:/php-5.1.6/TSRM -Ic:/php-5.1.6/Zend"
PHP_LIBS="-Lc:/php5/dev -lphp5ts"
PHP_EXTENSION_DIR=c:/php5/ext 
CPPFLAGS="-DZEND_WIN32 -DPHP_WIN32
-DZEND_DEBUG=0"

This produces the following errors

In file included from c:/php-5.1.6/Zend/zend.h:44,
                 from xapian_wrap.cc:706:
c:/php-5.1.6/Zend/zend_config.w32.h:33:20: crtdbg.h: No such
file or directory
In file included from c:/php-5.1.6/Zend/zend.h:246,
                 from xapian_wrap.cc:706:
c:/php-5.1.6/Zend/zend_hash.h: In function `ulong
zend_inline_hash_func(char*, uint)':
c:/php-5.1.6/Zend/zend_hash.h:270: error: `__assume'
undeclared (first use this function)
c:/php-5.1.6/Zend/zend_hash.h:270: error: (Each undeclared
identifier is reported only once for each function it
appears in.)
In file included from c:/php-5.1.6/main/php.h:49,
                 from xapian_wrap.cc:708:
c:/php-5.1.6/main/win95nt.h: At global scope:
c:/php-5.1.6/main/win95nt.h:56: error: conflicting
declaration 'typedef long int pid_t'
c:/devel/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../incl
ude/sys/types.h:75: error: 'pid_t' has a previous
declaration as `typedef _pid_t pid_t'
c:/php-5.1.6/main/win95nt.h:56: error: declaration of
`typedef long int pid_t'
c:/devel/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../incl
ude/sys/types.h:75: error: conflicts with previous
declaration `typedef _pid_t pid_t'
c:/php-5.1.6/main/win95nt.h:56: error: declaration of
`typedef long int pid_t'
c:/devel/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../incl
ude/sys/types.h:75: error: conflicts with previous
declaration `typedef _pid_t pid_t'

I searched for crtdbg.h hader and there is no such file in
Mingw. Also i did not find a header for __assume which is
included in MINGW. Maybe __assume is included into crtdbg.h.
 What do you know about  this header? I search with google
but nothing interesting.

Thank you.



 			
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help.
Yahoo! Small Business.
_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
Error on ./configure process with Xapian-bindings-0.9.6
user name
2006-09-18 21:46:33
On Mon, Sep 18, 2006 at 01:57:41PM -0700, Sebi wrote:
> I searched for crtdbg.h hader and there is no such file
in Mingw. Also
> i did not find a header for __assume which is included
in MINGW. Maybe
> __assume is included into crtdbg.h.  What do you know
about  this
> header? I search with google but nothing interesting.

Top hit in Google for "crtdbg.h" seems fairly
informative:

http://www.mic
haelmoser.org/memory.htm

Sounds like Microsoft specific malloc heap debugging stuff. 
Sadly it's
unconditionally included by PHP.

And __assume just seems to be a way to provide hints to the
optimiser, so
you should be able to safely add
"-D__assume(X)=":

http://msdn2.microsoft.com/en-us/library/1b3fsfxw.aspx

In fact for GCC,
"-D__assume(X)=__builtin_expect(!(X),0)" might
result
in better code.

I suspect it's going to be a struggle to get from here to
working - the
PHP developers seem to have made a lot of compiler-specific
assumptions.
And it's possible that even if you did get it to work with
mingw, it
just wouldn't work with PHP compiled with the MS compiler.

You can download the MS compiler without paying, so perhaps
that's an
easier route.  But beware that the licence had some rather
obnoxious
terms when I last looked, so check it carefully before
assuming it's OK
to use for whatever you're doing.  There's no price tag,
but it's
certainly not Free Software!

Cheers,
    Olly

_______________________________________________
Xapian-discuss mailing list
Xapian-discusslists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss
[1-20]

about | contact  Other archives ( Real Estate discussion Medical topics )