Re: [INTERNALS-WIN] Problems compiling 5.3.0alpha3 with extensions

[email protected] ("Pierre Joye")
Newsgroups php.internals.win
Message-ID <[email protected]>
On Thu, Dec 25, 2008 at 1:29 AM, Niel <[email protected]> wrote:

>> Please use the structure describe here, slide 13:
>>
>> http://blog.thepimp.net/archives/Slides-for-IPC-online.html
>>
>> That will help a lot to discuss using a common base.
>
> Couldn't read the slide as it's too small and pixelated.

You can go full screen or download it from slideshare :)


> I have now run
> the phpsdk_buildtree script to get.:
>
> D:\Dev\C\PHP
> |-vc6
> |-vc8
> |-vc9
>   |-x64
>   |-x86
>      |-deps
>      |-src
>
>
>> Can you paste the tables (shown at the end of the configure script)?
> Do not know what tables you mean. I have not seen any.  Here is the
> configure scripts output with the new structure.
>
> D:\Dev\C\PHP\php_5_3\vc9\x86\src>cscript /nologo configure.js --disable-all --en
> able-cli --without-ereg --with-iconv --enable-intl --disable-ipv6 --with-libxml
> --enable-object-out-dir="..\..\!Builds\x86" --with-simplexml=shared

My fault, I forgot that one removes it when --disable-all is used. You can add:

--enable-summary

or use CVS (PHP_5_3), I fixed this problem as well as one other.


> nmake generates the same error
>
> EXT intl build complete
> simplexml.c
> .\ext/libxml/php_libxml.h(38) : fatal error C1083: Cannot open include file: 'li
> bxml/tree.h': No such file or directory
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft\Visual Studio\9.0\
> VC\BIN\cl.exe"' : return code '0x2'

Ok, I reproduced the problem. It is caused by two bugs:

- extension dependencies in the configure script
- simplexml does not get the libxml include path in its cflags

The 2nd one has been fixed in CVS (PHP_5_3). However simplexml has
another bug when built shared, please use "--with-simplexml" for now
or you will get another compilation error.

I tend to use configure alone and --enable-snapshot-build and I have
missed these bugs. Thanks for the reports, that's definitively very
helpful!

Cheers,
--
Pierre

http://blog.thepimp.net | http://www.libgd.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.