logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Unable to compile radius module on Windows

 
Post new topic   Reply to topic    Apache Forum Index -> Apache Building & Member Downloads



View previous topic :: View next topic  
Author Message
ktsun



Joined: 07 Feb 2007
Posts: 2

PostPosted: Wed 07 Feb '07 6:06    Post subject: Unable to compile radius module on Windows Reply with quote

I would like to compile the radius module for Apache 2.2 on Windows and I have the following message:

C:\Program Files\Apache Software Foundation\Apache2.2\bin>apxs -c mod_auth_radius-2.0.c
cl /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG -I"C:\PROGRA~1\APACHE~1\Apache2.2\include" /c /Fomod_auth_radius-2.0.lo mod_auth_radius-2.0.c mod_auth_radius-2.0.c
c:\program files\apache software foundation\apache2.2\include\apr.h(361) : warning C4142: benign redefinition of type
c:\program files\apache software foundation\apache2.2\include\apr.h(362) : warning C4142: benign redefinition of type
mod_auth_radius-2.0.c(1143) : warning C4101: 'buf' : unreferenced local variable

link kernel32.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"C:\PROGRA~1\APACHE~1\Apache2.2\lib" /out:mod_auth_radius-2.0.so mod_auth_radius-2.0.lo
Creating library mod_auth_radius-2.0.lib and object mod_auth_radius-2.0.exp
mod_auth_radius-2.0.lo : error LNK2001: unresolved external symbol _ap_set_flag_slot
mod_auth_radius-2.0.lo : error LNK2019: unresolved external symbol __imp__apr_palloc@8 referenced in function _create_radius_server_config
mod_auth_radius-2.0.lo : error LNK2019: unresolved external symbol _win32_gethostbyname referenced in function _get_ip_addr
mod_auth_radius-2.0.lo : error LNK2019: unresolved external symbol __imp__apr_pstrdup@8 referenced in function _add_auth_radius
mod_auth_radius-2.0.so : fatal error LNK1120: 4 unresolved externals
apxs:Error: Command failed with rc=6291456

Could anyone help?

Thx in advance!
Back to top
ktsun



Joined: 07 Feb 2007
Posts: 2

PostPosted: Fri 09 Feb '07 5:52    Post subject: Reply with quote

I changed the apxs command, it solved most of the unresolved symbols. However, it still have one left. Do I miss any lib file?

C:\Program Files\Apache Software Foundation\Apache2.2\bin>apxs -c -i -a mod_auth_radius.c libapr-1.lib libaprutil-1.lib libapriconv-1.lib libhttpd.lib perl58.lib apr-1.lib aprutil-1.lib
cl /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG -I"C:\PROGRA~1\APACHE~
1\Apache2.2\include" /c /Fomod_auth_radius.lo mod_auth_radius.c
mod_auth_radius.c
c:\program files\apache software foundation\apache2.2\include\apr.h(361) : warning C4142: benign redefinition of type
c:\program files\apache software foundation\apache2.2\include\apr.h(362) : warning C4142: benign redefinition of type
mod_auth_radius.c(1146) : warning C4101: 'buf' : unreferenced local variable mod_auth_radius.c(1237) : warning C4013: 'ap_hook_check_user_id' undefined; assuming extern returning int
link kernel32.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"C:\PROGRA~1\APACHE~1\Apache2.2\lib" /out:mod_auth_radius.so mod_auth_radius.lo libapr-1.lib libaprutil-1.lib libapriconv-1.lib libhttpd.lib perl58.lib apr-1.lib ap
rutil-1.lib
Creating library mod_auth_radius.lib and object mod_auth_radius.exp
mod_auth_radius.lo : error LNK2019: unresolved external symbol _ap_hook_check_user_id referenced in function _register_hooks
mod_auth_radius.so : fatal error LNK1120: 1 unresolved externals
apxs:Error: Command failed with rc=6291456
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache Building & Member Downloads
Page 1 of 1