huntlabs / libmemcached

A wrapper library for Memcached with D
4 stars 1 forks source link

Can't build libmemcached-1.0.2 on Windows #2

Open bubnenkoff opened 7 years ago

bubnenkoff commented 7 years ago

It's look like it can't find libs for building:

Linking...                                                                                                   
OPTLINK (R) for Win32  Release 8.00.17                                                                       
Copyright (C) Digital Mars 1989-2013  All rights reserved.                                                   
http://www.digitalmars.com/ctg/optlink.html                                                                  
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\hunt-0.3.3\hunt\hunt.lib(memcache)                         
 Error 42: Symbol Undefined _memcached_set                                                                   
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\hunt-0.3.3\hunt\hunt.lib(memcache)                         
 Error 42: Symbol Undefined _memcached_get                                                                   
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcached\libmemcached.lib(memcache) 
 Error 42: Symbol Undefined _memcached_server_add                                                            
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcached\libmemcached.lib(memcache) 
 Error 42: Symbol Undefined _memcached_clone                                                                 
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcached\libmemcached.lib(memcache) 
 Error 42: Symbol Undefined _memcached_free                                                                  
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcached\libmemcached.lib(memcache) 
 Error 42: Symbol Undefined _memcached_strerror                                                              
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcached\libmemcached.lib(memcache) 
 Error 42: Symbol Undefined _memcached_last_error_message                                                    
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcached\libmemcached.lib(memcache) 
donglei commented 7 years ago

we not find memcached.dll on windows, so no libs config for windows in dub.json

bubnenkoff commented 7 years ago

Do you plane to fix it? With this error is not possible to run Hunt on Windows. But the docs says that is should run.

OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\hunt-0.3.5\hunt\hunt.lib(memca                                                                che)
 Error 42: Symbol Undefined _memcached_get_by_key
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\hunt-0.3.5\hunt\hunt.lib(memca                                                                che)
 Error 42: Symbol Undefined _memcached_get
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\hunt-0.3.5\hunt\hunt.lib(memca                                                                che)
 Error 42: Symbol Undefined _memcached_set
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\hunt-0.3.5\hunt\hunt.lib(memca                                                                che)
 Error 42: Symbol Undefined _memcached_set_by_key
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_server_add
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_clone
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_free
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_strerror
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_last_error_message
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_last_error
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_behavior_set
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_behavior_get
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_fetch_result
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_result_length
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_result_free
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_result_flags
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_result_key_value
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_result_cas
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_result_value
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_result_key_length
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_increment
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_decrement
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_delete
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_delete_by_key
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_flush
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached_lib_version
C:\Users\bubenkov_di\AppData\Roaming\dub\packages\libmemcached-1.0.2\libmemcache                                                                d\libmemcached.lib(memcache)
 Error 42: Symbol Undefined _memcached
--- errorlevel 27
dmd failed with exit code 27.
bubnenkoff commented 7 years ago

Do you sure that you really want use libmemcached ? it's look like abounded lib. Last update from 2014 year.

dushibaiyu commented 7 years ago

libmemcached used to save session. it should not be required. Now, hunt is not stabilization。The config and api will change. About will fix. Router and middleware will be rebuild. if you used for restfull api, please use collie's http module,if you need form handle, the "hunt.http.webfrom;" is alone, you can only use it. the text conf(ini config) is alone too.

bubnenkoff commented 7 years ago

You mean I can remove libmemcached from dub.json from hunt?

2016-09-06 11:45 GMT+03:00 渡世白玉 notifications@github.com:

libmemcached used to save session. it should not be required. Now, hunt is not stabilization。The config and api will change. About will fix. Router and middleware will be rebuild. if you used for restfull api, please use collie's http module,if you need form handle, the "hunt.http.webfrom;" is alone, you can only use it. the text conf(ini config) is alone too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/putaolabs/libmemcached/issues/2#issuecomment-244887702, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNmlrVyYmyurW5nC89RCgbs3ZLWnl-Hks5qnSgYgaJpZM4Je_Ta .

dushibaiyu commented 7 years ago

you can. but you must del code. memcache is used in "hunt.http.sessionstorage;" , "hunt.cache.memcached;" and "hunt.cache.package". you can del "hunt.cache.memcached;" and "hunt.cache.package". and Comments after line 273 in "hunt.http.sessionstorage;" . it will be remove libmemcache used. Now you can remove libmemcached from dub.json.

dushibaiyu commented 7 years ago

We used memcache in our software. Now it not remove dependencies in hunt.