From: Tomasz Krawczyk on
Hi

I'm trying to compile PHP 5.3.2 with VC9 but I get this error

Creating library Release\php5.lib and object Release\php5.exp
crypt.obj : error LNK2001: unresolved external symbol _crypt
Release\php5.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin\cl.exe"' : return code '0x2'
Stop.

I followed instructions from
http://wiki.php.net/internals/windows/stepbystepbuild and I downloaded
deps from
http://pecl2.php.net/downloads/php-windows-builds/php-libs/VC9/x86/


Can anybody hep me?

--
regards
Tomek
From: Pierre Joye on
hi,

It works just fine for us. Can you paste the compilation log to
pastebin pls (output generated when you called nmake)?

Btw, he php internals windows list more appropriate for this question.

Cheers,

2010/4/10 Tomasz Krawczyk <tomkrawc(a)gmail.com>:
> Hi
>
> I'm trying to compile PHP 5.3.2 with VC9 but I get this error
>
>   Creating library Release\php5.lib and object Release\php5.exp
> crypt.obj : error LNK2001: unresolved external symbol _crypt
> Release\php5.dll : fatal error LNK1120: 1 unresolved externals
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 9.0\VC\Bin\cl.exe"' : return code '0x2'
> Stop.
>
> I followed instructions from
> http://wiki.php.net/internals/windows/stepbystepbuild and I downloaded deps
> from http://pecl2.php.net/downloads/php-windows-builds/php-libs/VC9/x86/
>
>
> Can anybody hep me?
>
> --
> regards
> Tomek
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
From: Tomasz Krawczyk on
Pierre Joye pisze:
> hi,
>
> It works just fine for us. Can you paste the compilation log to
> pastebin pls (output generated when you called nmake)?
>
> Btw, he php internals windows list more appropriate for this question.
>
> Cheers,
>
> 2010/4/10 Tomasz Krawczyk <tomkrawc(a)gmail.com>:
>> Hi
>>
>> I'm trying to compile PHP 5.3.2 with VC9 but I get this error
>>
>> Creating library Release\php5.lib and object Release\php5.exp
>> crypt.obj : error LNK2001: unresolved external symbol _crypt
>> Release\php5.dll : fatal error LNK1120: 1 unresolved externals
>> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
>> 9.0\VC\Bin\cl.exe"' : return code '0x2'
>> Stop.
>>
>> I followed instructions from
>> http://wiki.php.net/internals/windows/stepbystepbuild and I downloaded deps
>> from http://pecl2.php.net/downloads/php-windows-builds/php-libs/VC9/x86/
>>
>>
>> Can anybody hep me?

My nmake log is here http://pastebin.com/Eitwy8n2 (pasted by tomkraw1).
I don't know if it will help but when I runned configure I got 3 warnings:

Checking for lemon.exe ... <not found>

Checking for NewAPIs.h ... <not found>
Checking for NewAPIs.h ... <not found>


--
pozdrawiam
Tomek
From: Pierre Joye on
hi,

everything looks normal but this error.

Can you try to run buildconf, configure, nmake again? Also delete the
debug/release directory before.

Cheers,

On Sat, Apr 10, 2010 at 9:53 AM, Tomasz Krawczyk <tomkrawc(a)gmail.com> wrote:
> Pierre Joye pisze:
>>
>> hi,
>>
>> It works just fine for us. Can you paste the compilation log to
>> pastebin pls (output generated when you called nmake)?
>>
>> Btw, he php internals windows list more appropriate for this question.
>>
>> Cheers,
>>
>> 2010/4/10 Tomasz Krawczyk <tomkrawc(a)gmail.com>:
>>>
>>> Hi
>>>
>>> I'm trying to compile PHP 5.3.2 with VC9 but I get this error
>>>
>>>  Creating library Release\php5.lib and object Release\php5.exp
>>> crypt.obj : error LNK2001: unresolved external symbol _crypt
>>> Release\php5.dll : fatal error LNK1120: 1 unresolved externals
>>> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
>>> 9.0\VC\Bin\cl.exe"' : return code '0x2'
>>> Stop.
>>>
>>> I followed instructions from
>>> http://wiki.php.net/internals/windows/stepbystepbuild and I downloaded
>>> deps
>>> from http://pecl2.php.net/downloads/php-windows-builds/php-libs/VC9/x86/
>>>
>>>
>>> Can anybody hep me?
>
> My nmake log is here http://pastebin.com/Eitwy8n2 (pasted by tomkraw1).
> I don't know if it will help but when I runned configure I got 3 warnings:
>
> Checking for lemon.exe ...  <not found>
>
> Checking for NewAPIs.h ...  <not found>
> Checking for NewAPIs.h ...  <not found>
>
>
> --
> pozdrawiam
> Tomek
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
From: Tomasz Krawczyk on
Hi

>>>> crypt.obj : error LNK2001: unresolved external symbol _crypt
>>>> Release\php5.dll : fatal error LNK1120: 1 unresolved externals
>>>> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
>>>> 9.0\VC\Bin\cl.exe"' : return code '0x2'
>>>> Stop.

I did silly error. I had put suhosin directory into extensions directory
then I decided to make clean PHP compilation just to be sure I'm able to
compile PHP. Suhosin contains patch for crypt but PHP sources was not
patched by suhosin patch. I think it was my problem. Eventually I saw this

SAPI sapi\cgi build complete

I have my own PHP !!! :-)

Pierre thanks for your time.

--
pozdrawiam
Tomek