Author |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 25 Oct '10 11:39 Post subject: |
|
|
I tried to. But the the requiert apr_mem_cache does not build against the current APR version.
Code: |
apr_memcache.c(120) : error C2491: 'apr_memcache_add_server' : definition of dllimport function not allowed
apr_memcache.c(137) : error C2491: 'apr_memcache_find_server_hash' : definition of dllimport function not allowed
apr_memcache.c(180) : error C2491: 'apr_memcache_find_server' : definition of dllimport function not allowed
apr_memcache.c(223) : error C2491: 'apr_memcache_enable_server' : definition of dllimport function not allowed
apr_memcache.c(235) : error C2491: 'apr_memcache_disable_server' : definition of dllimport function not allowed
apr_memcache.c(318) : error C2491: 'apr_memcache_server_create' : definition of dllimport function not allowed
apr_memcache.c(361) : error C2491: 'apr_memcache_create' : definition of dllimport function not allowed
apr_memcache.c(449) : warning C4028: formal parameter 2 different from declaration
apr_memcache.c(449) : error C2491: 'apr_memcache_hash' : definition of dllimport function not allowed
apr_memcache.c(529) : warning C4013: 'snprintf' undefined; assuming extern returning int
apr_memcache.c(578) : error C2491: 'apr_memcache_set' : definition of dllimport function not allowed
apr_memcache.c(593) : error C2491: 'apr_memcache_add' : definition of dllimport function not allowed
apr_memcache.c(608) : error C2491: 'apr_memcache_replace' : definition of dllimport function not allowed
apr_memcache.c(624) : error C2491: 'apr_memcache_getp' : definition of dllimport function not allowed
apr_memcache.c(754) : error C2491: 'apr_memcache_delete' : definition of dllimport function not allowed
apr_memcache.c(893) : error C2491: 'apr_memcache_incr' : definition of dllimport function not allowed
apr_memcache.c(908) : error C2491: 'apr_memcache_decr' : definition of dllimport function not allowed
apr_memcache.c(923) : error C2491: 'apr_memcache_version' : definition of dllimport function not allowed
apr_memcache.c(1164) : error C2491: 'apr_memcache_stats' : definition of dllimport function not allowed
|
apr_memcache is from 2005 and mod_memcached_cache from 2007
At least for me I don't see there a chance to compile it without rewrite the code and I'm not a C programmer |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
Posted: Mon 25 Oct '10 11:42 Post subject: |
|
|
OK thx, i fix some issue from apache mem_cache and its work for me now last time not cache some js or css file |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 25 Oct '10 11:47 Post subject: |
|
|
It would be nice if you could offer your changes in a patch file (-: |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
Posted: Mon 25 Oct '10 11:59 Post subject: |
|
|
I fix cfg in apache mod_mem_cahe not mod_memcache_cache
|
|
Back to top |
|
Sob
Joined: 19 Apr 2008 Posts: 30
|
Posted: Tue 26 Oct '10 16:38 Post subject: |
|
|
Worked for me: http://web.hisoftware.cz/sob/download/mod_memcached_cache-0.1.0-httpd-2.2.17.zip
It loads into server, but otherwise it's completely untested. If it actually does something, that's up to someone else to try.
Compiled using:
Code: | cl.exe /MD /W3 /O2 /D WIN32 /D NDEBUG -I"C:\Apache22\include" -I. -c mod_memcached_cache.c
link.exe /dll /machine:X86 /OUT:mod_memcached_cache.so /libpath:"C:\Apache22\lib" mod_memcached_cache.obj libaprutil-1.lib libapr-1.lib libhttpd.lib mod_cache.lib |
Sources from httpd 2.2.17, so it's APR 1.4.2 and APR-util 1.3.10. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 26 Oct '10 23:55 Post subject: |
|
|
Did you forgot to include the manifest code?
Code: |
MT -manifest mod_memcached_cache.so.manifest -outputresource:mod_memcached_cache.so;2
|
|
|
Back to top |
|
Sob
Joined: 19 Apr 2008 Posts: 30
|
Posted: Wed 27 Oct '10 1:12 Post subject: |
|
|
Not exactly. I mean it's not there, but it's because (laugh if you want I didn't really know it should be there. I briefly remember manifests from few years ago when they were needed for XP UI or something. I never really thought about it much. When I check exes and dlls built from IDE, they seem to include it by default. For manual command line builds they're missing, but nothing ever complained, so...
I updated the files in zip now. Same URL. |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
Posted: Wed 27 Oct '10 16:24 Post subject: |
|
|
For me its buqy delivery content as gziped x2 so all js or css are crashed |
|
Back to top |
|