Static Library rdbsslib.lib linking problems in Kernel Network Redirector Driver

Hi,

I am currently having a lot of linking errors when trying to include RDBSS in my monolithic driver. I included the rdbsslib.lib as an additional dependency and when I build linking errors occur. I tried also including other files such as rxce.lib and copysup.lib and ksecded.lib but with no success. Can someone provide me with information on how to successfully build a monolithic driver that utilises RDBSS please (e.g Build type[win8_x86], Libraries to include, etc…)?

I even looked at samples but with no success.

Regards,
Matthew Muscat

What errors are you seeing?

Pete


Kernel Drivers
Windows File System and Device Driver Consulting
www.KernelDrivers.com http:</http:>
866.263.9295

------ Original Message ------
From: xxxxx@gmail.com
To: “Windows File Systems Devs Interest List”
Sent: 8/14/2015 4:29:54 AM
Subject: [ntfsd] Static Library rdbsslib.lib linking problems in Kernel
Network Redirector Driver

>Hi,
>
>I am currently having a lot of linking errors when trying to include
>RDBSS in my monolithic driver. I included the rdbsslib.lib as an
>additional dependency and when I build linking errors occur. I tried
>also including other files such as rxce.lib and copysup.lib and
>ksecded.lib but with no success. Can someone provide me with
>information on how to successfully build a monolithic driver that
>utilises RDBSS please (e.g Build type[win8_x86], Libraries to include,
>etc…)?
>
>I even looked at samples but with no success.
>
>Regards,
>Matthew Muscat
>
>—
>NTFSD is sponsored by OSR
>
>OSR is hiring!! Info at http://www.osr.com/careers
>
>For our schedule of debugging and file system seminars visit:
>http://www.osr.com/seminars
>
>To unsubscribe, visit the List Server section of OSR Online at
>http://www.osronline.com/page.cfm?name=ListServer

Hi Pete,

These are some of the errors:

Error 1 error LNK2019: unresolved external symbol _FsRtlCopyWrite2@36 referenced in function _RxFastIoWrite@32
Error 2 error LNK2019: unresolved external symbol _FsRtlCopyRead2@36 referenced in function _RxFastIoRead@32

Sry for the late response.

Regards,
Matthew

What OS version are you building/linking for? Those functions aren’t documented, so they are apparently something internal.

I found two points where this has been discussed previously: https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/b560a1f8-cf11-4894-861d-595e21d00242/mini-redirector-link-win8?forum=wdk and https://www.osronline.com/showthread.cfm?link=249215

So, it looks like it is a “known problem”.

Does this work with WDK 10?

Tony
OSR

I am currently using WDK 8.1 and trying to build for Windows 7 or 8 or 8.1 (32 bit versions) and I had already tried their solutions but with no success. I also have other linking errors such as:

Error 339 error LNK2019: unresolved external symbol _wcschr referenced in function _TranslateSisFsctlName@16
Error 158 error LNK2019: unresolved external symbol _memset referenced in function _RxDriverEntry@8
Error 348 error LNK2019: unresolved external symbol _memmove referenced in function _RxQueryDirectory@16
Error 172 error LNK2019: unresolved external symbol _memcpy referenced in function _RxLogEventWithAnnotation@28

Matthew

Any help with this issue?

Copy all ur lib files in your windows system directory and see how it be
haves. You need to link in your environments setting

Best wishes
Kumarjan5

Static libraries to link? to system32 dir???
“Kumar Rao” wrote in message news:xxxxx@ntfsd…
Copy all ur lib files in your windows system directory and see how it be haves. You need to link in your environments setting

Best wishes
Kumarjan5

Is libcnptr.lib included to the project?

wrote in message news:xxxxx@ntfsd…
>I am currently using WDK 8.1 and trying to build for Windows 7 or 8 or 8.1 (32 bit versions) and I had already tried their solutions but with no success. I also have other linking errors such as:
>
> Error 339 error LNK2019: unresolved external symbol _wcschr referenced in function _TranslateSisFsctlName@16
> Error 158 error LNK2019: unresolved external symbol _memset referenced in function _RxDriverEntry@8
> Error 348 error LNK2019: unresolved external symbol _memmove referenced in function _RxQueryDirectory@16
> Error 172 error LNK2019: unresolved external symbol _memcpy referenced in function _RxLogEventWithAnnotation@28
>
> Matthew
>
>

Thanks fixed. It was a problem in folder permissions in remote server. However, one has to build using Win7 due to missing copysup.lib in Win8 DDK lib directory.

Solution:
Run Visual Studio 2013 as administator
Open Project
Link the following libraries:
$(DDK_LIB_PATH)\rdbsslib.lib
$(DDK_LIB_PATH)\rxce.lib
$(DDK_LIB_PATH)\copysup.lib
$(DDK_LIB_PATH)\ksecdd.lib
Build using Win7 x32 configuration