tag:blogger.com,1999:blog-7638694470910246382.post7714757824465513252..comments2024-01-04T11:42:08.211+01:00Comments on Trond Norbye's Weblog: libmemcached on win32Anonymoushttp://www.blogger.com/profile/14981676567908297584noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-7638694470910246382.post-86708087113393370852017-03-15T15:41:53.232+01:002017-03-15T15:41:53.232+01:00Hi Trond,
We need a small help from you for build...Hi Trond,<br /><br />We need a small help from you for building auth_memcookie module for apache 2.4.<br /><br />We are trying to build auth-memcookie for apache 2.4 on windows x64 box. We tried to build libEvent, memcached and libMemcached which are dependencies for building auth_memcookie. We were able to build libMemcached using Visual Studio 2012 and generate libMemcached.lib file, but when we try to build mod_auth_memcookie we are getting linking errors for the functions that are defined in libMemcached. Errors we are getting are as follows:<br /><br />LNK2001: unresolved external symbol __imp_memcached <br />LNK2001: unresolved external symbol __imp_memcached_free<br />LNK2001: unresolved external symbol __imp_memcached_get<br />LNK2001: unresolved external symbol __imp_memcached_last_error_message<br />LNK2001: unresolved external symbol __imp_memcached_set<br /><br />Also, we tried to generate libMemcached.dll but we were getting compilation error for the same.<br /><br />Can you please guide us on these issues.<br />Thanks.Rachir Bulsarahttps://www.blogger.com/profile/09908095688259021469noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-35379928849000318082014-06-12T17:52:47.549+02:002014-06-12T17:52:47.549+02:00I haven't used libmemcached for a couple of ye...I haven't used libmemcached for a couple of years.Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-1270112649152628792014-06-12T17:49:11.471+02:002014-06-12T17:49:11.471+02:00Hi,
I am trying to build this dll but get an erro...Hi,<br /><br />I am trying to build this dll but get an error during the "make all install" step. I am trying to build a 32-bit memcached dll file on Windows 7 using 64-bit cygwin. My memcached.exe is 32-bit.<br /><br />Here are the results of my build steps:<br /><br />Results of executing "./configure" command<br />https://babycenter.box.com/s/iq3vus03ux060a8vkk45<br /><br />I also get this warning:<br />configure: WARNING: libmemcached requires at least version 1.0.6 of Embedded InnoDB<br /><br />Results of executing "make" command<br />https://babycenter.box.com/s/kyv6ns3m9ponjkivt0h4<br /><br />Any help you can provide would be appreciated.<br /><br />Also, if you have a win32 memcached dll already built that you could just email me (cboudrea at babycenter.com), I would also accept that. ;)Anonymoushttps://www.blogger.com/profile/04990720796589690805noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-39875850964969102972013-08-14T11:22:46.612+02:002013-08-14T11:22:46.612+02:00I was able to generate the libmemcached-6.dll, am ...I was able to generate the libmemcached-6.dll, am not sure how to proceed after this. How do I enable it on PHP with this dll, I tried setting this dll on the extensions section of php.ini, but no luck. Has anyone succeeded?Anonymoushttps://www.blogger.com/profile/13330001953257451611noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-47707688328234493162011-11-29T09:14:12.035+01:002011-11-29T09:14:12.035+01:00Please send me compiled DLL? My mail: m1u1n2kh2 at...Please send me compiled DLL? My mail: m1u1n2kh2 at gmail dot comAnonymoushttps://www.blogger.com/profile/14903774900360618901noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-81401613638196931752011-11-27T20:27:48.194+01:002011-11-27T20:27:48.194+01:00It is great to try this branch. I really like to u...It is great to try this branch. I really like to use libmemcached in win32. I have downloaded the code and started to play with it. However, it seems that tests still fail. In particular, when I run test-atom, the memcached_set() always returns MEMCACHED_HOST_LOOKUP_FAILURE.<br /><br />Are those tests supposed working, or still not? Thanks.<br /><br />BTW, I use the memcached binary which is downloaded from http://downloads.northscale.com/memcached-1.4.5-x86.zip (got the link from http://blog.elijaa.org/index.php?post/2010/08/25/Memcached-1.4.5-for-Window).skyeerhttps://www.blogger.com/profile/06962953056141461578noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-63426904643508854122011-09-01T21:34:20.465+02:002011-09-01T21:34:20.465+02:00Do you have any documentation on how to compile li...Do you have any documentation on how to compile libmemcached on visual studio?dpatelhttps://www.blogger.com/profile/06374747772840668246noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-23308000711091694482011-09-01T20:43:05.147+02:002011-09-01T20:43:05.147+02:00I was able to get it working after making some cha...I was able to get it working after making some changes and using platform.h. Thanks.dpatelhttps://www.blogger.com/profile/06374747772840668246noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-81956356462399282652011-08-31T23:28:53.508+02:002011-08-31T23:28:53.508+02:00Replace it with winsock2.h ?Replace it with winsock2.h ?Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-43479304130359856822011-08-31T22:59:05.347+02:002011-08-31T22:59:05.347+02:00Hi,
I am not able to compile it under WIN32 gettin...Hi,<br />I am not able to compile it under WIN32 getting this error. <br />I have installed MinGW and <br />./libmemcached/options/server.h:42:23: fatal error: arpa/inet.h: No such file or directory<br />Can you please help me fix this error?dpatelhttps://www.blogger.com/profile/06374747772840668246noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-74205166218223105372011-05-14T17:14:10.658+02:002011-05-14T17:14:10.658+02:00Hi,
I am not able to compile it under WIN32 gettin...Hi,<br />I am not able to compile it under WIN32 getting this error. <br />I have installed MinGW and <br />./libmemcached/options/server.h:42:23: fatal error: arpa/inet.h: No such file or directoryManishhttps://www.blogger.com/profile/05106440175488485011noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-57751811455173752152010-10-08T23:10:41.372+02:002010-10-08T23:10:41.372+02:00Holm: Is there any reason why you can't use th...Holm: Is there any reason why you can't use the current version?Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-25198816937665428042010-10-05T12:51:03.049+02:002010-10-05T12:51:03.049+02:00Any news on this? Would really like to get my Wind...Any news on this? Would really like to get my Windows dev machine to use libmemcached.Unknownhttps://www.blogger.com/profile/17581497317329988758noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-57275352660038147492010-09-07T12:58:23.134+02:002010-09-07T12:58:23.134+02:00Jozz and Jacek, I've been a bit busy doing oth...Jozz and Jacek, I've been a bit busy doing other (but related) tasks lately.. I will be back with more info later on :)Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-785276249791292642010-08-29T16:54:04.815+02:002010-08-29T16:54:04.815+02:00Hello Trond & Jacek, I'm just (very) curio...Hello Trond & Jacek, I'm just (very) curious about your progress with the libmemcached win32 build in the meantime.<br /><br />Honestly, once you're familiar with Memcached, you outgrow the API of the available php_memcache.dll rather quickly. More in particular, the need for access to the GetMulti(ByKey) functionality libmemcached offers becomes clear. I'm convinced that with me you will help out many many developers tremendously with a win32 release of libmemcached!!<br /><br />Good luck & many thanks again! J.Unknownhttps://www.blogger.com/profile/10797451276325497132noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-43871373880866027112010-08-10T23:28:40.019+02:002010-08-10T23:28:40.019+02:00First steps to integrate libmemcached.dll with MSV...First steps to integrate libmemcached.dll with MSVC++ 2008 have been done. I created import libraries according to the procedure described here:<br /><br />http://www.coderetard.com/2009/01/21/generate-a-lib-from-a-dll-with-visual-studio/<br /><br />(Unfortunately Microsoft does not provide a utility to create import library from a dll in a single step.)<br /><br />To compile libmemcached headers with MSVC++ some additional definitions were necessary - types like uint32_t, and to compile inttypes.h from MinGW it was necessary to #define __restrict__ as empty string. MSVC++ (in C++ mode) doesn't also allow returning user defined types from extern "C" functions, so I had to exclude a function returning a structure.<br /><br />Now it's time to see if it works :-)Unknownhttps://www.blogger.com/profile/13462205174803200448noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-28432057838441404622010-08-07T14:48:35.846+02:002010-08-07T14:48:35.846+02:00Hi Trond, thank you for your suggestion (and sorry...Hi Trond, thank you for your suggestion (and sorry for my late response...).<br /><br />Shortly after posting my first comment, I found an alternative that will do fine for me for the time being (also because you mention your win32 libmemcached port is still work in progress).<br /><br /><br />I found it via http://stackoverflow.com/questions/1511045/php-memcache-dll-for-php-5-3<br /><br />This php_memcache.dll PHP extension (about 50kB) conforms to the (less extended) Memcache API (http://www.php.net/manual/en/book.memcache.php) (vs. the Memcached API as libmemcached does).<br /><br />However, the nice thing is that a lot of prebuilt variants of the library are directly available<br />for download (x86 vs. x64/PHP 5.2 vs. 5.3/thread-safe vs. non-thread-safe) here:<br /><br />http://downloads.php.net/pierre/<br /><br />After selecting the right variant for your setup, it works like a charm with the NorthScale Memcached Server.<br /><br />The existence of those build variants (apart from the obvious x86 vs. x64 flavour) indicates<br />that it is not that easy to get a self-built library working with a specific setup. So, that's<br />another reason, if you don't mind, why I prefer to stick with the php_memcache.dll for now<br />(although I hope one day libmemcached will be available for download the same way ;-) , as it<br />opens up the full potential of Memcached).<br /><br />Again, thanks a lot for your efforts!Unknownhttps://www.blogger.com/profile/10797451276325497132noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-50534116451533242422010-08-05T08:22:52.215+02:002010-08-05T08:22:52.215+02:00Jacek, You need to add ".exe" to the mem...Jacek, You need to add ".exe" to the memcached binary (I assume the dics is just a typo here). C<br /><br />The correct configure line would be:<br />./configure --with-memcached=memcached.exe --without-docs<br /><br />I have no idea why the size is so big, but please note that I'm not done with my win32 (and win64) efforts for libmemcached. Getting the test suite up'n'running is a high priority ;-)Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-31836236125784182832010-08-05T07:41:05.280+02:002010-08-05T07:41:05.280+02:00I had to issue the following command to build conf...I had to issue the following command to build configure script:<br /><br />$ ./configure --with-memcached=memcached --without-dics<br /><br />first placing memcached.exe in the directory. Otherwise configure stopped with error, complaining that it couldn't find memcached for tests (as far as I remember).<br /><br />I managed to build dll's (3 of them), but had no time yet to integrate them with MS C++.<br /><br />I'm wondering why the target libraries are so big? limemcached-5.dll has size of 18 MB (!), libmemcachedprotocol-0.dll size is 2.5 MB and libmemcachedutil-1.dll is over 1 MB.<br /><br />Anyway - thank you very much for this work!Unknownhttps://www.blogger.com/profile/13462205174803200448noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-49875479136742964682010-08-03T00:50:27.731+02:002010-08-03T00:50:27.731+02:00send me an email to trond dot norbye at gmail dot ...send me an email to trond dot norbye at gmail dot com and I'll send you one :-)Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-22781858599011834292010-08-02T18:38:05.090+02:002010-08-02T18:38:05.090+02:00Great stuff, Trond! Unfortunately, I can't man...Great stuff, Trond! Unfortunately, I can't manage to generate the missing configure script myself (on my Windows-only setup), so I'm stuck...<br /><br />Could someone who successfully built the libmemcached.dll for Win 32-bit share it, please? And/or the used configure script for MinGW? Many thanks in advance!Unknownhttps://www.blogger.com/profile/10797451276325497132noreply@blogger.com