Unable To Compile/Link The Radius Custom Module (Doc ID 759270.1)

Last updated on SEPTEMBER 15, 2016

Applies to:

Oracle Communications Billing and Revenue Management - Version: 7.3.1.0
Microsoft Windows XP

Symptoms

While trying to compile the radius custom module in Windows platform we are getting linking errors even though there is no custom code added. All the library paths are set and the steps are followed as per documentation.

Steps To Reproduce:
1. Install Radius server 7.3.1.
2. Copy C:/portal/source/apps/radius and rename to my folder radius_myfolder.
3. Copy all folders from C:\Portal\source\apps\radius_myfolder\include to C:\Portal\include.
4. In moddef.cpp, removed the extern definitions except RadiusModuleExample_create and added new entry in module_config structure.
5. Rename mod_example.h as mod_usrauth.h. In class RadiusModuleExample, added declaration for newConfig.
6. Rename mod_example.cpp as mod_usrauth.cpp. Added new method as newConfig().
7. In make file, Changed TOPDIR variable to point to our location. Commented entry for make.inlcude and added CC, LINK and MAKE variable. Added new obj usrauth.obj in OBJS.
8. Added C:\Portal\source\apps\radius_myfolder\lib;C:\Portal\lib; in environment variable LIB to confirm that while linking linker gets all necessary lib files.
Set the Env Variables:

LIB: C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\;C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\lib;C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Lib;C:\Portal\lib;C:\Portal\source\apps\radius_myfolder\lib;



Snippet of the linking error is -

*****cl /nologo /MD /W3 /GX /O2 /D "WINDOWS" /D "WIN32" /D "i386" /D "MSDOS"
/D "PIN_USE_ANSI_HDRS" /D "NDEBUG" /I ..\..\..\include -Iinclude -I..\..\..\inc
lude -c moddef.cpp
moddef.cpp
cl /nologo /MD /W3 /GX /O2 /D "WINDOWS" /D "WIN32" /D "i386" /D "MSDOS"
/D "PIN_USE_ANSI_HDRS" /D "NDEBUG" /I ..\..\..\include -Iinclude -I..\..\..\inc
lude -c mod_usrauth.cpp
mod_usrauth.cpp
link -libpath:lib -libpath:C:\Portal\source\apps\radius_witribe\lib -out
:radiusd.exe -include:_main moddef.obj mod_usrauth.obj pcm.lib pcp.lib pinlog.l ib pinsys.lib advapi32.lib wsock32.lib server.lib modules.lib radpin.lib radius
.lib general.lib ******



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms