Re: Linker error from tstclnt

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Linker error from tstclnt

muni.pratap
On Thursday, May 25, 2017 at 10:14:05 PM UTC+5:30, Ernie Kovak wrote:

> Hello -
>
> I'm trying to build NSS 3.30.2 on Windows 10, following the instructions at https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Building.
>
> I get the following linker error:
>
> kernel32.lib(KERNEL32.dll) : error LNK2005: ReadFile already defined in tstclnt.obj
> WIN954.0_x86_64_64_OPT.OBJ/tstclnt.exe : fatal error LNK1169: one or more multiply defined symbols found
> make[2]: *** [WIN954.0_x86_64_64_OPT.OBJ/tstclnt.exe] Error 2
> make[2]: Leaving directory `/c/nss-source/nss/cmd/tstclnt'
> make[1]: *** [libs] Error 2
> make[1]: Leaving directory `/c/nss-source/nss/cmd'
> make: *** [libs] Error 2
>
> If I remove tstclnt from the nss\cmd manifest the build completes - but I don't get tstclnt.exe, of course.
>
> Any suggestions?
>
> Here are my build options:
>
> OS_TARGET="WIN95"
> BUILD_OPT=0
> USE_64=1
> USE_ASAN=0
> USE_STATIC_RTL=1
>
> Thanks!
> Ernie



I am also facing same issue. Please some one answer the issue.

Thanks
Muni
--
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|

Re: Linker error from tstclnt

Kai Engert-4
On 10.11.2017 10:16, [hidden email] wrote:
>> USE_STATIC_RTL=1

I haven't seen this symbol before, maybe it's no longer supported.

Does it work if you don't define it?

Kai
--
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|

Re: Linker error from tstclnt

Robert Relyea
On 11/22/2017 07:24 AM, Kai Engert wrote:
> On 10.11.2017 10:16, [hidden email] wrote:
>>> USE_STATIC_RTL=1
> I haven't seen this symbol before, maybe it's no longer supported.
>
> Does it work if you don't define it?

The symbol means build the test binaries with static libraries. That
hasn't been officially supported by NSS for quite some time (though it
may accidentally work on some platforms). Only certain low level test
apps whould use the static run time, and they explicitly set the value
in their makefiles.

bob
>
> Kai


--
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto