php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21292 curl extension fails to compile
Submitted: 2002-12-30 09:43 UTC Modified: 2002-12-30 17:24 UTC
From: madhon at madhon dot co dot uk Assigned: edink (profile)
Status: Closed Package: Compile Failure
PHP Version: 4.3.0 OS: windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: madhon at madhon dot co dot uk
New email:
PHP Version: OS:

 

 [2002-12-30 09:43 UTC] madhon at madhon dot co dot uk
using curl 7.10.2 compiled on the machine and i get this 
compiled both using vc6

Linking...
   Creating library Release_TS/php_curl.lib and object Release_TS/php_curl.exp
curl.obj : error LNK2001: unresolved external symbol __imp__fwrite
curl.obj : error LNK2001: unresolved external symbol __imp__realloc
curl.obj : error LNK2001: unresolved external symbol __imp__fread
curl.obj : error LNK2001: unresolved external symbol __imp__free
curl.obj : error LNK2001: unresolved external symbol __fltused
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
..\..\Release_TS/php_curl.dll : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-30 13:43 UTC] edink@php.net
When compiling libcurl you need to link it against msvcrt.lib in addition to other libraries specified in Makefile.vc6.

Find: LINKLIBS  = ws2_32.lib winmm.lib
Change to: LINKLIBS  = ws2_32.lib winmm.lib msvcrt.lib

And compile release or release-ssl target.

 [2002-12-30 17:24 UTC] madhon at madhon dot co dot uk
that didnt solve it however i tried adding msvcrt.lib into the link list for the the php extension and it then worked
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 08:00:03 2025 UTC