php-windows Digest 24 Mar 2008 11:04:12 -0000 Issue 3444

Topics (messages 28830 through 28835):

need help building php on windows
        28830 by: Jason
        28831 by: Elizabeth M Smith
        28832 by: Jason
        28833 by: Elizabeth M Smith
        28834 by: Jason

need help! plz
        28835 by: Hooman Fatoorehchi

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi all,

I'm having trouble compiling PHP 5.2.5 using Visual C 6 (SP6).

I have (to the best of my knowledge) followed the tips/instructions on the following two pages:

http://news.php.net/php.windows/28659        (the black text, not green)
http://php.mirror.camelnetwork.com/manual/en/install.windows.building.php

I can get most of php to build (albeit with a lot of warnings) using the snapshot build option, however the two extensions that won't build are the two I need:

php_mssql.dll (less important)
php_dblib.dll (the one I'm really after)

The reason for the build is to compile a php_dblib.dll using the new RC code of FreeTDS as we are seeing some strange errors using the pre-built dblib.dll from http://kromann.info (which I believe to be built using FreeTDS 0.63 from 2005?).

Here's the compile error I'm getting:

main\internal_functions.c(69) : error C2065: 'phpext_dblib_ptr' : undeclared identifier
main\internal_functions.c(69) : error C2099: initializer is not a constant
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'

Can anyone who has built this DLL on windows shed any light?

TIA
Jason


--- End Message ---
--- Begin Message ---
Jason wrote:
> Hi all,
> 
> I'm having trouble compiling PHP 5.2.5 using Visual C 6 (SP6).
> 
> I have (to the best of my knowledge) followed the tips/instructions on
> the following two pages:
> 
> http://news.php.net/php.windows/28659        (the black text, not green)
> http://php.mirror.camelnetwork.com/manual/en/install.windows.building.php
> 
> I can get most of php to build (albeit with a lot of warnings) using the
> snapshot build option, however the two extensions that won't build are
> the two I need:
> 
> php_mssql.dll (less important)
> php_dblib.dll (the one I'm really after)
> 
> The reason for the build is to compile a php_dblib.dll using the new RC
> code of FreeTDS as we are seeing some strange errors using the pre-built
> dblib.dll from http://kromann.info (which I believe to be built using
> FreeTDS 0.63 from 2005?).
> 
> Here's the compile error I'm getting:
> 
> main\internal_functions.c(69) : error C2065: 'phpext_dblib_ptr' :
> undeclared identifier
> main\internal_functions.c(69) : error C2099: initializer is not a constant
> NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
> 
> Can anyone who has built this DLL on windows shed any light?
> 
> TIA
> Jason
> 
Actually I haven't been able to get the dblib version of the mssql
extension building on windows either but don't have the time to tackle
it at the moment - you can try building it with JUST dblib or JUST
mssql, I know building both at the same time leads to weirdnesses

--- End Message ---
--- Begin Message ---
At 14:09 14/03/2008, you wrote:
Jason wrote:
> Hi all,
>

<snip>

>
> Here's the compile error I'm getting:
>
> main\internal_functions.c(69) : error C2065: 'phpext_dblib_ptr' :
> undeclared identifier
> main\internal_functions.c(69) : error C2099: initializer is not a constant
> NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
>
> Can anyone who has built this DLL on windows shed any light?
>
> TIA
> Jason
>
Actually I haven't been able to get the dblib version of the mssql
extension building on windows either but don't have the time to tackle
it at the moment - you can try building it with JUST dblib or JUST
mssql, I know building both at the same time leads to weirdnesses

To be honest, I can't actually get either of the mssql variants to compile properly. Specifically I can compile the MS mssql dll, but can't link it (unresolved external _in6addr_any in php5ts.dll).

I have a sneaking suspicion that I'm missing some little "not-widely-documented" file location or ENV var. setting. It's always the little things :/

I notice from your post I linked to, that I should use nmake.exe from the SDK - but I could only find an x64 variant included, so I'm using the VisStudio6 SP6 version - would this be a possible cause?

TIA
Jason
--- End Message ---
--- Begin Message ---
Jason wrote:
> To be honest, I can't actually get either of the mssql variants to
> compile properly. Specifically I can compile the MS mssql dll, but can't
> link it (unresolved external _in6addr_any in php5ts.dll).
> 
> I have a sneaking suspicion that I'm missing some little
> "not-widely-documented" file location or ENV var. setting. It's always
> the little things :/
> 
> I notice from your post I linked to, that I should use nmake.exe from
> the SDK - but I could only find an x64 variant included, so I'm using
> the VisStudio6 SP6 version - would this be a possible cause?
> 
> TIA
> Jason

Hmmm, that unresolved external _in6addr_any in php5ts.dll is an ipv6
error - you can --disable-ipv6 or check to make sure you have the sdk
include and lib paths set up right

Elizabeth

--- End Message ---
--- Begin Message ---
At 16:00 14/03/2008, you wrote:
Jason wrote:
> To be honest, I can't actually get either of the mssql variants to
> compile properly. Specifically I can compile the MS mssql dll, but can't
> link it (unresolved external _in6addr_any in php5ts.dll).
>
> I have a sneaking suspicion that I'm missing some little
> "not-widely-documented" file location or ENV var. setting. It's always
> the little things :/
>
> I notice from your post I linked to, that I should use nmake.exe from
> the SDK - but I could only find an x64 variant included, so I'm using
> the VisStudio6 SP6 version - would this be a possible cause?
>
> TIA
> Jason

Hmmm, that unresolved external _in6addr_any in php5ts.dll is an ipv6
error - you can --disable-ipv6 or check to make sure you have the sdk
include and lib paths set up right

Yeah, a little embarassing - I forgot to run SetVars.bat from the SDK. Sorted that.

Even so, doing the following doesn't reveal a new php_mssql.dll:

cscript configure.js --with-mssql
nmake

I don't get a link error, but neither do I get a php_mssql.dll. I do get new php_gd2.dll though :)

Jason
--- End Message ---
--- Begin Message ---
dear all,

I want to make a form-to-email page and I want to diplay a messagebox after
the mail is send and then I want it to be redirected to another page. I used
JS for the msgbox but the header function wont work in this case. please
help me!

here is the code
...
mail( "m <[EMAIL PROTECTED]>[EMAIL PROTECTED]", "Feedbacks",$message, "From:
$email" );
echo "<script language=javascript>alert('Your message was sent
successfully!');</script>";
header( 'Location: http://www.blah blah.com" ) ;
?>


thank you
Hooman

--- End Message ---

Reply via email to