Author |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 25 Jun '12 16:06 Post subject: |
|
|
You downloaded lua 5.2 but need 5.1 |
|
Back to top |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
Posted: Mon 25 Jun '12 16:37 Post subject: |
|
|
Oops!!
Fixed it, and now getting the following many errors:
Code: | 41> Creating library .\Release/mod_socache_memcache.lib and object .\Release/mod_socache_memcache.exp
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_pstrdup@8 referenced in function _socache_mc_create
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_palloc@8 referenced in function _socache_mc_create
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_pstrcat referenced in function _socache_mc_init
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_memcache_add_server@8 referenced in function _socache_mc_init
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_parse_addr_port@20 referenced in function _socache_mc_init
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_memcache_server_create@32 referenced in function _socache_mc_init
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__ap_log_error_ referenced in function _socache_mc_init
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_memcache_create@16 referenced in function _socache_mc_init
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_strtok@12 referenced in function _socache_mc_init
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__ap_mpm_query@8 referenced in function _socache_mc_init
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_snprintf referenced in function _socache_mc_id2key
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_cpystrn@12 referenced in function _socache_mc_id2key
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_memcache_set@24 referenced in function _socache_mc_store
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_memcache_getp@24 referenced in function _socache_mc_retrieve
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__apr_memcache_delete@12 referenced in function _socache_mc_remove
41>mod_socache_memcache.obj : error LNK2019: unresolved external symbol __imp__ap_register_provider@20 referenced in function _register_hooks
41>.\Release\mod_socache_memcache.so : fatal error LNK1120: 16 unresolved externals
41>Build log was saved at "file://C:\z\httpd-2.4.2lua\modules\cache\Release\BuildLog.htm"
41>mod_socache_memcache - 17 error(s), 0 warning(s)
|
Tried every possible way I can reach, anyone has correct steps on how to compile apache 2.4 with mod_lua please? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 26 Jun '12 5:10 Post subject: |
|
|
the errors are all for mod_socache_memcache, not mod_lua
Looks like you're missing apr & apr-util |
|
Back to top |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
Posted: Tue 26 Jun '12 7:43 Post subject: |
|
|
Both apr & apr-util exists!
Additionally these errors only appears when including lua stuff!! Otherwise it's OK & build succeed!!!
Any suggestions? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 26 Jun '12 8:42 Post subject: |
|
|
You may have apr & apr-util, but if the libs do not build, then they cannot be linked to.
I do not know, seem wonky as I do not have a problem and considering each module is a separate project, mod_lua barfing shouldn't hurt anything else.
but if libhttpd, apr, apr-uril do not build, almost nothing will. I also see ap_* calls not being referenced either, so libhttpd project failed as well. This points me in the direction of believing you did not run the cvtdsp.pl on the source first.
but yet you say w/o mod_lua all is well.
What VC++ version you using? (looks like VC9 to me)
Another thing, you might want to set VC++ to only build one thing at a time, the default is 2 but I always change it to 1, it makes for easier reading of the build log and I have had troubles in the past with it set at 2 (something tried to build before a dependency was present, which shouldn't happen).
Here's an easy to read build log when set to 1 thing at a time:
https://www.apachehaus.net/misc/apache-242-buildlog.txt
Here's where the setting is:
https://www.apachehaus.net/misc/vc-parallel.gif |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 26 Jun '12 10:06 Post subject: |
|
|
glsmith wrote: |
What VC++ version you using? (looks like VC9 to me)
|
SolidSnakeGTI wrote: |
Trying to compile Apache 2.4.2 on Windows 7 using Visual Studio 9 2008,
|
I think you should clean the build before compiling again.
Next time, you can also compile lua yourself |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 26 Jun '12 10:51 Post subject: |
|
|
Ooops .. I missed that .. Express Version? It matters on a few things. |
|
Back to top |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
Posted: Tue 26 Jun '12 16:31 Post subject: |
|
|
Any suggestions ...?! |
|
Back to top |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 26 Jun '12 20:18 Post subject: |
|
|
ok, lua is barfing with
LINK : fatal error LNK1181: cannot open input file 'lua51.lib'
so it's not finding the lib
make sure there is a lua51.lib & lua51.dll located in
srclib/lua/src
If there is it could be corrupted or is an x64 binary since you're on Win7 and not a 32bit one. Cannot link 64 bit libs to 32 bit modules. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 26 Jun '12 23:19 Post subject: |
|
|
I think it is missing those file.
Quote: |
make sure there is a lua51.lib & lua51.dll located in
srclib/lua/src
|
I think they need to be in srclib/lua That is why I copy the files after compiling.
Code: |
etc\luavs
copy /y src\*.* .\
|
by the way. Do you use lua scripts? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 27 Jun '12 3:45 Post subject: |
|
|
James Blond wrote: | I think it is missing those file.
I think they need to be in srclib/lua That is why I copy the files after compiling.
|
No need for mod_lua, I used to do that (and still do, copy src folder to lua root) because of something else at the time forget what exactly, maybe when we were at 2.3.low_number.
from mod_lua.dsp these days;
cl: /I "../../srclib/lua/src"
link: /libpath:"../../srclib/lua/src"
I'm thinking it's an x64 lib since IIRC the command line wants to build x64 by default on an x64 machine. |
|
Back to top |
|