HI Microsoft Engineer:

After installed the "Roll-up QEF to 2007", the Kerberos.dll was not created
from sysgen. So I checked the build.log found the "kerberos.dll" link error
LNK1120: 2 unresolved externals. NetApiBufferFree, and DsGetDcNameW was not
refered from lib list.

The Link statement from build.

link /LARGEADDRESSAWARE
-out:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.dll -dll -machine:x86 @DllLinkOpt2.txt
Microsoft (R) Incremental Linker Version 7.10.4017
Copyright (C) Microsoft Corporation. All rights reserved.

-nodefaultlib
-entry:DllMain
-pdb:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.pdb
/opt:ref
-debug -debugtype:cv -incremental:no
-map:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.map
-savebaserelocations:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.rel
-MERGE:.rdata=.text -ignore:4001,4070,4078,4086,4089,4096,4099,4108,4229
/STACK:65536,4096
-subsystem:windowsce,5.00
/base:0x10000000
C:\WINCE500\public\common\oak\lib\x86\retail\kerberos.lib
C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\msasn1.lib
C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\cryptdll.lib
C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\sdk\lib\x86\retail\winsock.lib
C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\sdk\lib\x86\retail\coredll.lib C:\WINCE500\public\common\sdk\lib\x86\retail\corelibc.lib
C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\kerberos.exp
kerberos.lib(rpcutil.obj) : error LNK2019: unresolved external symbol
_NetApiBufferFree referenced in function "long __cdecl CE_DiscoverDC(unsigned
short const *,unsigned short * *,unsigned long *,unsigned long *)"
(?CE_DiscoverDC@@YAJPBGPAPAGPAK2@Z)
kerberos.lib(rpcutil.obj) : error LNK2019: unresolved external symbol
__imp__DsGetDcNameW referenced in function "long __cdecl
CE_DiscoverDC(unsigned short const *,unsigned short * *,unsigned long
*,unsigned long *)" (?CE_DiscoverDC@@YAJPBGPAPAGPAK2@Z
C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.dll : fatal error LNK1120: 2 unresolved externals
The inline file
-nodefaultlib
-entry:DllMai
-pdb:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.pdb
/opt:ref
-debug -debugtype:cv -incremental:n
-map:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.ma
-savebaserelocations:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.rel
-MERGE:.rdata=.text -ignore:4001,4070,4078,4086,4089,4096,4099,4108,4229
/STACK:65536,4096
-subsystem:windowsce,5.00
/base:0x10000000


Please help! What went wrong about the Roll-up update?
Thanks
Lu

Re: NetApiBufferFree and DsGetDcNameW missing when build Kerberos.dll by Michel

Michel
Fri Apr 18 22:24:51 PDT 2008

Are you doing a "Build and Sysgen"? If so, please search this NG for
"Build and Sysgen" to find out what went wrong...

Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

YDLU wrote:
> HI Microsoft Engineer:
>
> After installed the "Roll-up QEF to 2007", the Kerberos.dll was not created
> from sysgen. So I checked the build.log found the "kerberos.dll" link error
> LNK1120: 2 unresolved externals. NetApiBufferFree, and DsGetDcNameW was not
> refered from lib list.
>
> The Link statement from build.
>
> link /LARGEADDRESSAWARE
> -out:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.dll -dll -machine:x86 @DllLinkOpt2.txt
> Microsoft (R) Incremental Linker Version 7.10.4017
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> -nodefaultlib
> -entry:DllMain
> -pdb:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.pdb
> /opt:ref
> -debug -debugtype:cv -incremental:no
> -map:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.map
> -savebaserelocations:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.rel
> -MERGE:.rdata=.text -ignore:4001,4070,4078,4086,4089,4096,4099,4108,4229
> /STACK:65536,4096
> -subsystem:windowsce,5.00
> /base:0x10000000
> C:\WINCE500\public\common\oak\lib\x86\retail\kerberos.lib
> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\msasn1.lib
> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\cryptdll.lib
> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\sdk\lib\x86\retail\winsock.lib
> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\sdk\lib\x86\retail\coredll.lib C:\WINCE500\public\common\sdk\lib\x86\retail\corelibc.lib
> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\kerberos.exp
> kerberos.lib(rpcutil.obj) : error LNK2019: unresolved external symbol
> _NetApiBufferFree referenced in function "long __cdecl CE_DiscoverDC(unsigned
> short const *,unsigned short * *,unsigned long *,unsigned long *)"
> (?CE_DiscoverDC@@YAJPBGPAPAGPAK2@Z)
> kerberos.lib(rpcutil.obj) : error LNK2019: unresolved external symbol
> __imp__DsGetDcNameW referenced in function "long __cdecl
> CE_DiscoverDC(unsigned short const *,unsigned short * *,unsigned long
> *,unsigned long *)" (?CE_DiscoverDC@@YAJPBGPAPAGPAK2@Z)
> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.dll : fatal error LNK1120: 2 unresolved externals
> The inline file
> -nodefaultlib
> -entry:DllMain
> -pdb:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.pdb
> /opt:ref
> -debug -debugtype:cv -incremental:no
> -map:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.map
> -savebaserelocations:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.rel
> -MERGE:.rdata=.text -ignore:4001,4070,4078,4086,4089,4096,4099,4108,4229
> /STACK:65536,4096
> -subsystem:windowsce,5.00
> /base:0x10000000
>
>
> Please help! What went wrong about the Roll-up update?
> Thanks
> Lu

Re: NetApiBufferFree and DsGetDcNameW missing when build Kerberos by YDLU

YDLU
Mon Apr 21 08:43:00 PDT 2008

Hi:
After "Build and Sysgen", still got same "fatal error" as previous post!
Those two functions come from where?

Thanks
Lu
"Michel Verhagen (eMVP)" wrote:

> Are you doing a "Build and Sysgen"? If so, please search this NG for
> "Build and Sysgen" to find out what went wrong...
>
> Good luck,
>
> Michel Verhagen, eMVP
> Check out my blog: http://GuruCE.com/blog
>
> GuruCE Ltd.
> Microsoft Embedded Partner
> http://GuruCE.com
> Consultancy, training and development services.
>
> YDLU wrote:
> > HI Microsoft Engineer:
> >
> > After installed the "Roll-up QEF to 2007", the Kerberos.dll was not created
> > from sysgen. So I checked the build.log found the "kerberos.dll" link error
> > LNK1120: 2 unresolved externals. NetApiBufferFree, and DsGetDcNameW was not
> > refered from lib list.
> >
> > The Link statement from build.
> >
> > link /LARGEADDRESSAWARE
> > -out:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.dll -dll -machine:x86 @DllLinkOpt2.txt
> > Microsoft (R) Incremental Linker Version 7.10.4017
> > Copyright (C) Microsoft Corporation. All rights reserved.
> >
> > -nodefaultlib
> > -entry:DllMain
> > -pdb:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.pdb
> > /opt:ref
> > -debug -debugtype:cv -incremental:no
> > -map:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.map
> > -savebaserelocations:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.rel
> > -MERGE:.rdata=.text -ignore:4001,4070,4078,4086,4089,4096,4099,4108,4229
> > /STACK:65536,4096
> > -subsystem:windowsce,5.00
> > /base:0x10000000
> > C:\WINCE500\public\common\oak\lib\x86\retail\kerberos.lib
> > C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\msasn1.lib
> > C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\cryptdll.lib
> > C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\sdk\lib\x86\retail\winsock.lib
> > C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\sdk\lib\x86\retail\coredll.lib C:\WINCE500\public\common\sdk\lib\x86\retail\corelibc.lib
> > C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\kerberos.exp
> > kerberos.lib(rpcutil.obj) : error LNK2019: unresolved external symbol
> > _NetApiBufferFree referenced in function "long __cdecl CE_DiscoverDC(unsigned
> > short const *,unsigned short * *,unsigned long *,unsigned long *)"
> > (?CE_DiscoverDC@@YAJPBGPAPAGPAK2@Z)
> > kerberos.lib(rpcutil.obj) : error LNK2019: unresolved external symbol
> > __imp__DsGetDcNameW referenced in function "long __cdecl
> > CE_DiscoverDC(unsigned short const *,unsigned short * *,unsigned long
> > *,unsigned long *)" (?CE_DiscoverDC@@YAJPBGPAPAGPAK2@Z)
> > C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.dll : fatal error LNK1120: 2 unresolved externals
> > The inline file
> > -nodefaultlib
> > -entry:DllMain
> > -pdb:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.pdb
> > /opt:ref
> > -debug -debugtype:cv -incremental:no
> > -map:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.map
> > -savebaserelocations:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.rel
> > -MERGE:.rdata=.text -ignore:4001,4070,4078,4086,4089,4096,4099,4108,4229
> > /STACK:65536,4096
> > -subsystem:windowsce,5.00
> > /base:0x10000000
> >
> >
> > Please help! What went wrong about the Roll-up update?
> > Thanks
> > Lu
>

Re: NetApiBufferFree and DsGetDcNameW missing when build Kerberos by Michel

Michel
Mon Apr 21 20:31:59 PDT 2008

Did you actually search the NG for "Build and Sysgen"? Did you read the
part about "NEVER EVER DO A BUILD AND SYSGEN!!!"?

Now that you've done a Build and Sysgen all bets are off. There's a
million strange errors that will prove to be unsolvable after doing a
build and sysgen. Your installation is now officially corrupt and nobody
will want to help you before you uninstall and reinstall it all again, so:

Uninstall CE 5.0, reinstall, then download and install all QFE's in the
right order from oldest to newest (use the QFEInstaller from my website
for that) and try again.


For your convenience I will repeat myself for the 16 million'th time:

Here's my when-to-build-what "build shortcut" list:

Change something in Platform Settings: do a makeimg

Change something in a driver in the BSP: Build the driver, do makeimg

Change several things in the BSP: Build the BSP, do makeimg

Change something in the BSP and/or the config files (eg platform.reg):
Build & sysgen *the BSP* (*SO ONLY THE BSP* see below), then Copy Files
to RelDir, then Build All Projects and Makeimg.

Change something in the workspace configuration (add or delete a
component): Sysgen the platform (and sometimes a clean sysgen is needed,
eg when changing from RAM based registry to Hive based Registry).

...and since I can't seem to repeat this enough...

*Never ever* do a build and sysgen on the build menu. Better yet, right
click the menu bar, choose Customize, then click the Build OS menu,
select Build & sysgen and *delete* that option from the build menu.



Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

YDLU wrote:
> Hi:
> After "Build and Sysgen", still got same "fatal error" as previous post!
> Those two functions come from where?
>
> Thanks
> Lu
> "Michel Verhagen (eMVP)" wrote:
>
>> Are you doing a "Build and Sysgen"? If so, please search this NG for
>> "Build and Sysgen" to find out what went wrong...
>>
>> Good luck,
>>
>> Michel Verhagen, eMVP
>> Check out my blog: http://GuruCE.com/blog
>>
>> GuruCE Ltd.
>> Microsoft Embedded Partner
>> http://GuruCE.com
>> Consultancy, training and development services.
>>
>> YDLU wrote:
>>> HI Microsoft Engineer:
>>>
>>> After installed the "Roll-up QEF to 2007", the Kerberos.dll was not created
>>> from sysgen. So I checked the build.log found the "kerberos.dll" link error
>>> LNK1120: 2 unresolved externals. NetApiBufferFree, and DsGetDcNameW was not
>>> refered from lib list.
>>>
>>> The Link statement from build.
>>>
>>> link /LARGEADDRESSAWARE
>>> -out:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.dll -dll -machine:x86 @DllLinkOpt2.txt
>>> Microsoft (R) Incremental Linker Version 7.10.4017
>>> Copyright (C) Microsoft Corporation. All rights reserved.
>>>
>>> -nodefaultlib
>>> -entry:DllMain
>>> -pdb:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.pdb
>>> /opt:ref
>>> -debug -debugtype:cv -incremental:no
>>> -map:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.map
>>> -savebaserelocations:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.rel
>>> -MERGE:.rdata=.text -ignore:4001,4070,4078,4086,4089,4096,4099,4108,4229
>>> /STACK:65536,4096
>>> -subsystem:windowsce,5.00
>>> /base:0x10000000
>>> C:\WINCE500\public\common\oak\lib\x86\retail\kerberos.lib
>>> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\msasn1.lib
>>> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\cryptdll.lib
>>> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\sdk\lib\x86\retail\winsock.lib
>>> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\sdk\lib\x86\retail\coredll.lib C:\WINCE500\public\common\sdk\lib\x86\retail\corelibc.lib
>>> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\lib\x86\retail\kerberos.exp
>>> kerberos.lib(rpcutil.obj) : error LNK2019: unresolved external symbol
>>> _NetApiBufferFree referenced in function "long __cdecl CE_DiscoverDC(unsigned
>>> short const *,unsigned short * *,unsigned long *,unsigned long *)"
>>> (?CE_DiscoverDC@@YAJPBGPAPAGPAK2@Z)
>>> kerberos.lib(rpcutil.obj) : error LNK2019: unresolved external symbol
>>> __imp__DsGetDcNameW referenced in function "long __cdecl
>>> CE_DiscoverDC(unsigned short const *,unsigned short * *,unsigned long
>>> *,unsigned long *)" (?CE_DiscoverDC@@YAJPBGPAPAGPAK2@Z)
>>> C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.dll : fatal error LNK1120: 2 unresolved externals
>>> The inline file
>>> -nodefaultlib
>>> -entry:DllMain
>>> -pdb:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.pdb
>>> /opt:ref
>>> -debug -debugtype:cv -incremental:no
>>> -map:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.map
>>> -savebaserelocations:C:\WINCE500\PBWorkspaces\CIVLUCESTB\WINCE500\CIVLU_x86\cesysgen\oak\target\x86\retail\kerberos.rel
>>> -MERGE:.rdata=.text -ignore:4001,4070,4078,4086,4089,4096,4099,4108,4229
>>> /STACK:65536,4096
>>> -subsystem:windowsce,5.00
>>> /base:0x10000000
>>>
>>>
>>> Please help! What went wrong about the Roll-up update?
>>> Thanks
>>> Lu

Re: NetApiBufferFree and DsGetDcNameW missing when build Kerberos by Mauricio

Mauricio
Wed May 21 08:11:03 PDT 2008

Hi YDLU and Michel,

I posted this information in another post in this forum but I am
repeatinf here

I had exactly the same problem that YDLU (error in kerberos module
after install the 2007 rollup QFE), after many tests, I found the
problem.

After apply the 2007 rollup QFE the build system of Kerberos module in
makefile is faulting the netapi32 library

kerberos::cryptdll winsock msasn1
@set TARGETLIBS=3D$(OWNLIB) $(SG_OUTPUT_OAKLIB)\msasn1.lib $
(SG_OUTPUT_OAKLIB)\cryptdll.lib $(SG_OUTPUT_SDKLIB)\winsock.lib

=2E..and so, NetApiBufferFree and DsGetDcNameW functions there aren=B4t to
generate the kerberos module, because netapi32 library provides these
functions.

To solve this problem change the kerberos build system im makefile,

kerberos::cryptdll winsock msasn1 NETAPI32
@set TARGETLIBS=3D$(OWNLIB) $(SG_OUTPUT_OAKLIB)\msasn1.lib $
(SG_OUTPUT_OAKLIB)\cryptdll.lib $(SG_OUTPUT_SDKLIB)\winsock.lib $
(SG_OUTPUT_SDKLIB)\NETAPI32.lib

After that, I did the a "Clean Before Build" and "Build and Sysgen"
and IT WORKS FINE.

I hope be helpfull
Mauricio de Sousa Coelho
Windows CE R&D Team
www.connec.com.br

Re: NetApiBufferFree and DsGetDcNameW missing when build Kerberos by Mauricio

Mauricio
Wed May 21 08:15:38 PDT 2008

The path of makefile file is

C:\WINCE500\PUBLIC\COMMON\CESYSGEN


Regards
Mauricio de Sousa Coelho
Windows CE R&D Team
www.connec.com.br

Re: NetApiBufferFree and DsGetDcNameW missing when build Kerberos by Paul

Paul
Wed May 21 08:49:44 PDT 2008

You NEVER want to do 'Build and Sysgen'. That's been talked about a lot in
the past here. You can search the old messages to see why this is a
terrible idea. You should, in fact, use the PB customization capabilities
to *remove that menu item*, so that you don't do it by accident. I think
that a simple 'Clean Before Build' and 'Sysgen' operation would have taken
care of this problem.

Paul T.

"Mauricio Sousa (Connec Brasil)" <mauricio.scoelho1@gmail.com> wrote in
message
news:f8067242-6905-4fc2-802b-a57f84f03bed@c65g2000hsa.googlegroups.com...
Hi YDLU and Michel,

I posted this information in another post in this forum but I am
repeatinf here

I had exactly the same problem that YDLU (error in kerberos module
after install the 2007 rollup QFE), after many tests, I found the
problem.

After apply the 2007 rollup QFE the build system of Kerberos module in
makefile is faulting the netapi32 library

kerberos::cryptdll winsock msasn1
@set TARGETLIBS=$(OWNLIB) $(SG_OUTPUT_OAKLIB)\msasn1.lib $
(SG_OUTPUT_OAKLIB)\cryptdll.lib $(SG_OUTPUT_SDKLIB)\winsock.lib

...and so, NetApiBufferFree and DsGetDcNameW functions there aren´t to
generate the kerberos module, because netapi32 library provides these
functions.

To solve this problem change the kerberos build system im makefile,

kerberos::cryptdll winsock msasn1 NETAPI32
@set TARGETLIBS=$(OWNLIB) $(SG_OUTPUT_OAKLIB)\msasn1.lib $
(SG_OUTPUT_OAKLIB)\cryptdll.lib $(SG_OUTPUT_SDKLIB)\winsock.lib $
(SG_OUTPUT_SDKLIB)\NETAPI32.lib

After that, I did the a "Clean Before Build" and "Build and Sysgen"
and IT WORKS FINE.

I hope be helpfull
Mauricio de Sousa Coelho
Windows CE R&D Team
www.connec.com.br