php-windows Digest 3 Mar 2010 15:22:10 -0000 Issue 3770

Topics (messages 29942 through 29945):

Re: Error compiling php-5.3.1
        29942 by: Pierre Joye
        29943 by: Sachin Srivastava
        29944 by: Pierre Joye

Using Header to sort of redirect a URL to an audio file to be used as a BGSound
        29945 by: Jacob Kruger

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Then try using the link I gave you. Do not use the libraries on
gnuwin32 (see the link).

On Fri, Feb 26, 2010 at 8:35 AM, Sachin Srivastava
<sachin.srivast...@enterprisedb.com> wrote:
> Hello,
>
> Thanks for the reply.
>
> I installed the freetype v2.3.5 using the setup found at
> http://gnuwin32.sourceforge.net/packages/freetype.htm
>
> I am compiling php as:
>
> cd C:\php-5.3.1
>
> cscript /nologo win32\build\buildconf.js
>
> cscript /nologo configure.js --enable-snapshot-build --enable-cli
> --enable-cgi  --with-openssl=C:\build\OpenSSL --enable-pdo
> --with-extra-includes=C:\build\iconv\include;C:\build\libxml2\include;C:\build\libxslt\include;C:\build\OpenSSL\include;C:\apache\include;C:\build\zlib\include;C:\pgsql\include;C:\build\jpeg\include;C:\build\libpng\include;C:\build\freetype\include;C:\build\gettext\include
> --with-extra-libs=C:\build\iconv\lib;C:\build\libxml2\lib;C:\build\libxslt\lib;C:\build\OpenSSL\lib;C:\apache\lib;C:\build\zlib\lib;C:\pgsql\lib;C:\build\jpeg\lib;C:\build\libpng\lib;C:\build\freetype\lib;C:\build\gettext\lib
> --enable-apache=yes --with-apache-includes=C:\apache\include
> --with-apache-libs=C:\apache\lib --enable-apache2filter
> --enable-apache2-2filter --enable-apache2handler --enable-apache2-2handler
> --with-apache-hooks --with-pgsql --with-pdo-pgsql --enable-prefix=C:\php
> --enable-one-shot --enable-zend-multibyte=yes --enable-cli-win32
> --enable-embed --enable-isapi --enable-ftp --without-mysql --without-mysqli
> --without-pdo-mysql --without-sqlite --without-pdo-sqlite
> --without-pdo-sqlite-external --with-xsl=SHARED  --enable-mbstring
> --enable-mbregex --enable-shmop  --enable-exif --enable-soap
> --enable-sockets --with-php-build=C:\build\phpBuild\win32build
> --with-gd=SHARED
>
> nmake
>
> FYI: I get the same error with php-5.3.0 as well, while i can easily compile
> 5.2.12 with above configurations.
> Also, i have tried building this, on Windows XP SP2 32 bit with MS Visual
> Studio 2005 and on Windows 7 32 bit with MS Visual Studio 2008. Both places
> i got the same error.
>
> Any suggestions, so that i can move to php-5.3 ??
>
>
>
>
> On 2/25/10 7:54 PM, Pierre Joye wrote:
>> hi,
>>
>> It works just fine here (and all our build boxes).
>>
>> Where did you get the freetype library and how do you compile PHP?
>>
>> Please try again using this simple howto:
>>
>> http://wiki.php.net/internals/windows/stepbystepbuild
>>
>> Cheers, -- Pierre
>>
>> On Thu, Feb 25, 2010 at 3:17 PM, Sachin Srivastava
>> <sachin.srivast...@enterprisedb.com> wrote:
>>> Hello,
>>>
>>>
>>> I am compiling php and its giving me this error: (I am using
>>> freetype -2.3.5 )
>>>
>>> Generating Code... rc /fo Release_TS\php5ts.dll.res /d
>>> FILE_DESCRIPTION="\"PHP Script Interpreter\""  /d
>>> FILE_NAME="\"php5ts.dll\"" /d PRODUCT_NAME="\"PHP Script
>>> Interpreter\""  /IRelease_TS /d
>>> MC_INCLUDE="\"Release_TS\wsyslog.rc\"" win32\build\template.rc
>>> Creating library Release_TS\php5ts.lib and object
>>> Release_TS\php5ts.exp php_xmlreader.obj : warning LNK4217: locally
>>>  defined symbol _php_dom_create_object imported in function
>>> _zim_xmlreader_expand php_xmlreader.obj : warning LNK4049: locally
>>>  defined symbol _dom_node_class_entry imported rc /n /fo
>>> Release_TS\php_gd2.dll.res /d FILE_DESCRIPTION="\"GD imaging\"" /d
>>>  FILE_NAME="\"php_gd2.dll\"" /d URL="\"http://www.php.net\""; /d
>>> INTERNAL_NAME="\"GD extension\"" /d THANKS_GUYS="\"Thanks to Rasmus
>>> Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky,
>>> Pierre-Alain Joye, Marcus Boerger\"" win32\build\template.rc
>>> Creating library Release_TS\php_gd2.lib and object
>>> Release_TS\php_gd2.exp gdft.obj : error LNK2019: unresolved
>>> external symbol __imp__FT_New_Face referenced in function
>>> _fontFetch gdft.obj : error LNK2019: unresolved external symbol
>>> __imp__FT_Done_Face referenced in function _fontRelease gdft.obj :
>>>  error LNK2019: unresolved external symbol __imp__FT_Done_FreeType
>>>  referenced in function _php_gd_gdFontCacheShutdown gdft.obj :
>>> error LNK2019: unresolved external symbol __imp__FT_Init_FreeType
>>> referenced in function _php_gd_gdFontCacheSetup gdft.obj : error
>>> LNK2019: unresolved external symbol __imp__FT_Glyph_To_Bitmap
>>> referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
>>> LNK2019: unresolved external symbol __imp__FT_Glyph_Get_CBox
>>> referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
>>> LNK2019: unresolved external symbol __imp__FT_Get_Glyph referenced
>>>  in function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Load_Glyph referenced in
>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Get_Kerning referenced in
>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Get_Char_Index referenced in
>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Set_Transform referenced in
>>> function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
>>> unresolved external symbol __imp__FT_Set_Char_Size referenced in
>>> function _php_gd_gdImageStringFTEx Release_TS\php_gd2.dll : fatal
>>> error LNK1120: 12 unresolved externals NMAKE : fatal error U1077:
>>> '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe"' :
>>> return code '0x2' Stop. Compilation of php failed
>>>
>>> Please suggest, so that i can move forward with this.
>>>
>>> -- Regards, Sachin Srivastava EnterpriseDB
>>> <http://www.enterprisedb.com>, the Enterprise Postgres
>>> <http://www.enterprisedb.com> company.
>>>
>>
>>
>>
>
>
> --
> Regards,
> Sachin Srivastava
> EnterpriseDB <http://www.enterprisedb.com>, the Enterprise Postgres
> <http://www.enterprisedb.com> company.
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--- End Message ---
--- Begin Message --- In the link that is provided by you, there is a link to http://pecl2.php.net/downloads/php-windows-builds/php-libs/binary-tools.zip which does not contain any freetype libraries. Also i downloaded the php-5.3.1 zip source from php site.

Another thing, the php-5.2.x builds fine with my setup, but its failing only for 5.3.x (As i said, php-5.3.x builds fine with --without-gd option).


On 2/26/10 2:22 PM, Pierre Joye wrote:
Then try using the link I gave you. Do not use the libraries on
gnuwin32 (see the link).

On Fri, Feb 26, 2010 at 8:35 AM, Sachin Srivastava
<sachin.srivast...@enterprisedb.com>  wrote:
Hello,

Thanks for the reply.

I installed the freetype v2.3.5 using the setup found at
http://gnuwin32.sourceforge.net/packages/freetype.htm

I am compiling php as:

cd C:\php-5.3.1

cscript /nologo win32\build\buildconf.js

cscript /nologo configure.js --enable-snapshot-build --enable-cli
--enable-cgi  --with-openssl=C:\build\OpenSSL --enable-pdo
--with-extra-includes=C:\build\iconv\include;C:\build\libxml2\include;C:\build\libxslt\include;C:\build\OpenSSL\include;C:\apache\include;C:\build\zlib\include;C:\pgsql\include;C:\build\jpeg\include;C:\build\libpng\include;C:\build\freetype\include;C:\build\gettext\include
--with-extra-libs=C:\build\iconv\lib;C:\build\libxml2\lib;C:\build\libxslt\lib;C:\build\OpenSSL\lib;C:\apache\lib;C:\build\zlib\lib;C:\pgsql\lib;C:\build\jpeg\lib;C:\build\libpng\lib;C:\build\freetype\lib;C:\build\gettext\lib
--enable-apache=yes --with-apache-includes=C:\apache\include
--with-apache-libs=C:\apache\lib --enable-apache2filter
--enable-apache2-2filter --enable-apache2handler --enable-apache2-2handler
--with-apache-hooks --with-pgsql --with-pdo-pgsql --enable-prefix=C:\php
--enable-one-shot --enable-zend-multibyte=yes --enable-cli-win32
--enable-embed --enable-isapi --enable-ftp --without-mysql --without-mysqli
--without-pdo-mysql --without-sqlite --without-pdo-sqlite
--without-pdo-sqlite-external --with-xsl=SHARED  --enable-mbstring
--enable-mbregex --enable-shmop  --enable-exif --enable-soap
--enable-sockets --with-php-build=C:\build\phpBuild\win32build
--with-gd=SHARED

nmake

FYI: I get the same error with php-5.3.0 as well, while i can easily compile
5.2.12 with above configurations.
Also, i have tried building this, on Windows XP SP2 32 bit with MS Visual
Studio 2005 and on Windows 7 32 bit with MS Visual Studio 2008. Both places
i got the same error.

Any suggestions, so that i can move to php-5.3 ??




On 2/25/10 7:54 PM, Pierre Joye wrote:
hi,

It works just fine here (and all our build boxes).

Where did you get the freetype library and how do you compile PHP?

Please try again using this simple howto:

http://wiki.php.net/internals/windows/stepbystepbuild

Cheers, -- Pierre

On Thu, Feb 25, 2010 at 3:17 PM, Sachin Srivastava
<sachin.srivast...@enterprisedb.com>  wrote:
Hello,


I am compiling php and its giving me this error: (I am using
freetype -2.3.5 )

Generating Code... rc /fo Release_TS\php5ts.dll.res /d
FILE_DESCRIPTION="\"PHP Script Interpreter\""  /d
FILE_NAME="\"php5ts.dll\"" /d PRODUCT_NAME="\"PHP Script
Interpreter\""  /IRelease_TS /d
MC_INCLUDE="\"Release_TS\wsyslog.rc\"" win32\build\template.rc
Creating library Release_TS\php5ts.lib and object
Release_TS\php5ts.exp php_xmlreader.obj : warning LNK4217: locally
   defined symbol _php_dom_create_object imported in function
_zim_xmlreader_expand php_xmlreader.obj : warning LNK4049: locally
   defined symbol _dom_node_class_entry imported rc /n /fo
Release_TS\php_gd2.dll.res /d FILE_DESCRIPTION="\"GD imaging\"" /d
   FILE_NAME="\"php_gd2.dll\"" /d URL="\"http://www.php.net\""; /d
INTERNAL_NAME="\"GD extension\"" /d THANKS_GUYS="\"Thanks to Rasmus
Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky,
Pierre-Alain Joye, Marcus Boerger\"" win32\build\template.rc
Creating library Release_TS\php_gd2.lib and object
Release_TS\php_gd2.exp gdft.obj : error LNK2019: unresolved
external symbol __imp__FT_New_Face referenced in function
_fontFetch gdft.obj : error LNK2019: unresolved external symbol
__imp__FT_Done_Face referenced in function _fontRelease gdft.obj :
   error LNK2019: unresolved external symbol __imp__FT_Done_FreeType
   referenced in function _php_gd_gdFontCacheShutdown gdft.obj :
error LNK2019: unresolved external symbol __imp__FT_Init_FreeType
referenced in function _php_gd_gdFontCacheSetup gdft.obj : error
LNK2019: unresolved external symbol __imp__FT_Glyph_To_Bitmap
referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
LNK2019: unresolved external symbol __imp__FT_Glyph_Get_CBox
referenced in function _php_gd_gdImageStringFTEx gdft.obj : error
LNK2019: unresolved external symbol __imp__FT_Get_Glyph referenced
   in function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
unresolved external symbol __imp__FT_Load_Glyph referenced in
function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
unresolved external symbol __imp__FT_Get_Kerning referenced in
function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
unresolved external symbol __imp__FT_Get_Char_Index referenced in
function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
unresolved external symbol __imp__FT_Set_Transform referenced in
function _php_gd_gdImageStringFTEx gdft.obj : error LNK2019:
unresolved external symbol __imp__FT_Set_Char_Size referenced in
function _php_gd_gdImageStringFTEx Release_TS\php_gd2.dll : fatal
error LNK1120: 12 unresolved externals NMAKE : fatal error U1077:
'"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe"' :
return code '0x2' Stop. Compilation of php failed

Please suggest, so that i can move forward with this.

-- Regards, Sachin Srivastava EnterpriseDB
<http://www.enterprisedb.com>, the Enterprise Postgres
<http://www.enterprisedb.com>  company.




--
Regards,
Sachin Srivastava
EnterpriseDB<http://www.enterprisedb.com>, the Enterprise Postgres
<http://www.enterprisedb.com>  company.






--
Regards,
Sachin Srivastava
EnterpriseDB <http://www.enterprisedb.com>, the Enterprise Postgres <http://www.enterprisedb.com> company.
--- End Message ---
--- Begin Message ---
On Fri, Feb 26, 2010 at 10:24 AM, Sachin Srivastava
<sachin.srivast...@enterprisedb.com> wrote:
> In the link that is provided by you, there is a link to
> http://pecl2.php.net/downloads/php-windows-builds/php-libs/binary-tools.zip
> which does not contain any freetype libraries. Also i downloaded the
> php-5.3.1 zip source from php site.
>
> Another thing, the php-5.2.x builds fine with my setup, but its failing only
> for 5.3.x (As i said, php-5.3.x builds fine with --without-gd option).

It helps to actually read the page :) See also
http://wiki.php.net/internals/windows/libs for a full list of libs and
versions.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--- End Message ---
--- Begin Message --- FWIW, and might be minorly interesting, but in order to use something like the following HTML tag in a page to play a sound in the background, but without actually allowing them to see the actual file name to prevent the file from being directly downloaded:

<bgsound src="sndsrc.php" loop="1" />

Then in the sndsrc.php file:
//wav = "audio/x-wav"
//mp3 = "audio/mpeg"
$PhysicalFileName = "realsource.wav";
header('HTTP/1.1 200 OK', True, 200);
header('Content-Description: File Transfer');
header('Content-Type: audio/x-wav');
header('Content-Disposition: attachment; filename="redirected.wav"');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($PhysicalFileName));
readfile($PhysicalFileName);

Suppose it would let you then at the very least double check session usage, or maybe check requesting URL or something to then block them from downloading the file directly as such.

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4911 (20100303) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4912 (20100303) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




--- End Message ---

Reply via email to