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