chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.38k stars 467 forks source link

linux: link error 'undefined symbol: lens::OpenLensRegionSearchInstructions' #3759

Closed JCYang closed 1 week ago

JCYang commented 3 months ago

Describe the bug Fetch and build the master branch following the instructions in https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart The build will finally failed in the linking of libcef.so, with error indicated "undefined symbol: lens::OpenLensRegionSearchInstructions"

To Reproduce Steps to reproduce the behavior:

  1. Follow the https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart to build the master branch
  2. Wait hours for the build to complete
  3. You can see the link error when linking libcef.so

ld.lld: error: undefined symbol: lens::OpenLensRegionSearchInstructions(Browser*, base::OnceCallback<void ()>, base::OnceCallback<void ()>)

referenced by lens_region_search_controller.cc:74 (../../chrome/browser/lens/region_search/lens_region_search_controller.cc:74) region_search/lens_region_search_controller.o:(lens::LensRegionSearchController::Start(content::WebContents*, bool, bool, lens::AmbientSearchEntryPoint)) in archive obj/chrome/browser/lens/region_search/libregion_search.a

Expected behavior Build successfully.

Versions (please complete the following information):

Fix PR is coming.

JCYang commented 3 months ago

This problem is root down to the on-going effort of modularize //chrome/browser https://issues.chromium.org/issues/353628440 It's been reported in that issue thread. May we submit the patch to chromium but better we do it here since it break our build.

JCYang commented 3 months ago

https://bitbucket.org/chromiumembedded/cef/pull-requests/790

magreenblatt commented 1 week ago

Seems to be fixed with M131. https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=20036