Including NSS in CEF build

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Including NSS in CEF build

Postby rdowdall » Thu Dec 05, 2013 2:32 pm

Hello

I am working on a port of CEF to a new target. I have the build setup. I am able to compile and produce a cefclient executable. However when I run that executable I get the following error:

undefined symbol: _ZN3net15X509Certificate13GetDEREncodedEP18CERTCertificateStrPSs

That symbol is contained in the x509_certificate_nss.cc file. I have tried to get that file in to my build, but I can't seem to get it to be included during the build. I am using ninja, and I have set the following in the common.gypi file for my port:

'use_nss%': 1,
'use_openssl%': 0,

I have desktop_linux turned off, so I tried commenting out this line in base.gyp :

['exclude', '_nss\\.cc$'],

but that did not work. I also tried adding in something similar to the IOS port in net.gyp file which is:

['OS == "ios"', {
'sources/': [
['include', '^base/network_change_notifier_mac\\.cc$'],
['include', '^base/network_config_watcher_mac\\.cc$'],
['include', '^base/platform_mime_util_mac\\.mm$'],
# The iOS implementation only partially uses NSS and thus does not
# defines |use_nss|. In particular the |USE_NSS| preprocessor
# definition is not used. The following files are needed though:
['include', '^cert/cert_verify_proc_nss\\.cc$'],
['include', '^cert/cert_verify_proc_nss\\.h$'],
['include', '^cert/test_root_certs_nss\\.cc$'],
['include', '^cert/x509_certificate_nss\\.cc$'],
['include', '^cert/x509_util_nss\\.cc$'],
['include', '^cert/x509_util_nss\\.h$'],
['include', '^dns/notify_watcher_mac\\.cc$'],
['include', '^proxy/proxy_resolver_mac\\.cc$'],
['include', '^proxy/proxy_server_mac\\.cc$'],
['include', '^ocsp/nss_ocsp\\.cc$'],
['include', '^ocsp/nss_ocsp\\.h$'],
],
But that did not get the file I needed included either. A quick grep through the gyp and gypi files show no other place where the nss files are excluded, so I am not really sure why I cannot get those files to be included in my build.

Any ideas would be appreciated.

Thanks,
Rodney
rdowdall
Newbie
 
Posts: 4
Joined: Wed May 22, 2013 1:26 pm

Re: Including NSS in CEF build

Postby magreenblatt » Thu Dec 05, 2013 2:46 pm

x509_certificate_nss.cc is being excluded because you have desktop_linux turned off. See https://code.google.com/p/chromium/code ... gyp&l=1401.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Including NSS in CEF build

Postby rdowdall » Thu Dec 05, 2013 3:36 pm

Hello

Thanks for the reply. I thought that might be the case as well, so I commented out that else and it is still being excluded. Also I thought that this comment implied that be adding in a target specification that the files that I needed would be added back in:

# These source files are excluded by default platform rules, but they
# are needed in specific cases on other platforms. Re-including them can
# only be done in target_conditions as it is evaluated after the
# platform rules.

That comment is taken from line 1536.

Thanks,
Rodney
rdowdall
Newbie
 
Posts: 4
Joined: Wed May 22, 2013 1:26 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 157 guests