Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the internal build with recent SDKs - InspectorBackendDispatcher::getPropertyValue() is a weak external symbol #24667

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

aprotyas
Copy link
Member

@aprotyas aprotyas commented Feb 17, 2024

790c37c

Fix the internal build with recent SDKs - InspectorBackendDispatcher::getPropertyValue() is a weak external symbol
https://bugs.webkit.org/show_bug.cgi?id=269622
rdar://123120005

Unreviewed build fix.

With recent SDKs, we were getting this build error on multiple
platforms:

```
ERROR: A weak external symbol is generated when a symbol is defined in multiple compilation units and is also marked as being exported from the library.
ERROR: A common cause of weak external symbols is when an inline function is listed in the linker export file.
ERROR: symbol __ZN9Inspector17BackendDispatcher16getPropertyValueINSt3__18optionalIbEEEET_PN3WTF8JSONImpl6ObjectERKNS6_6StringEbNS2_8functionIFS5_RNS7_5ValueEEEEPKc
ERROR: symbol __ZN9Inspector17BackendDispatcher16getPropertyValueINSt3__18optionalIdEEEET_PN3WTF8JSONImpl6ObjectERKNS6_6StringEbNS2_8functionIFS5_RNS7_5ValueEEEEPKc
ERROR: symbol __ZN9Inspector17BackendDispatcher16getPropertyValueINSt3__18optionalIiEEEET_PN3WTF8JSONImpl6ObjectERKNS6_6StringEbNS2_8functionIFS5_RNS7_5ValueEEEEPKc
```

This patch adresses the issue by specifying hidden visibility for said
symbol.

* Source/JavaScriptCore/inspector/InspectorBackendDispatcher.h:

Canonical link: https://commits.webkit.org/274901@main

7b13914

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe   πŸ›  wincairo
βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug   πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2   πŸ§ͺ api-mac   πŸ§ͺ api-wpe
  πŸ§ͺ ios-wk2-wpt   πŸ§ͺ mac-wk1 βœ… πŸ›  gtk
  πŸ›  πŸ§ͺ jsc   πŸ§ͺ api-ios   πŸ§ͺ mac-wk2   πŸ§ͺ gtk-wk2
βœ… πŸ›  πŸ§ͺ jsc-arm64   πŸ›  tv   πŸ§ͺ mac-AS-debug-wk2   πŸ§ͺ api-gtk
  πŸ›  tv-sim βœ… πŸ›  jsc-armv7
βœ… πŸ›  πŸ§ͺ merge   πŸ›  watch βœ… πŸ§ͺ jsc-armv7-tests
  πŸ›  watch-sim

@aprotyas aprotyas self-assigned this Feb 17, 2024
@aprotyas aprotyas added the WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore). label Feb 17, 2024
@aprotyas
Copy link
Member Author

I'll merge-queue out of caution. Only a few of us have hit this at-desk, so it's better to not break the existing build in rush to land this.

@aprotyas aprotyas added the merge-queue Applied to send a pull request to merge-queue label Feb 17, 2024
…:getPropertyValue() is a weak external symbol

https://bugs.webkit.org/show_bug.cgi?id=269622
rdar://123120005

Unreviewed build fix.

With recent SDKs, we were getting this build error on multiple
platforms:

```
ERROR: A weak external symbol is generated when a symbol is defined in multiple compilation units and is also marked as being exported from the library.
ERROR: A common cause of weak external symbols is when an inline function is listed in the linker export file.
ERROR: symbol __ZN9Inspector17BackendDispatcher16getPropertyValueINSt3__18optionalIbEEEET_PN3WTF8JSONImpl6ObjectERKNS6_6StringEbNS2_8functionIFS5_RNS7_5ValueEEEEPKc
ERROR: symbol __ZN9Inspector17BackendDispatcher16getPropertyValueINSt3__18optionalIdEEEET_PN3WTF8JSONImpl6ObjectERKNS6_6StringEbNS2_8functionIFS5_RNS7_5ValueEEEEPKc
ERROR: symbol __ZN9Inspector17BackendDispatcher16getPropertyValueINSt3__18optionalIiEEEET_PN3WTF8JSONImpl6ObjectERKNS6_6StringEbNS2_8functionIFS5_RNS7_5ValueEEEEPKc
```

This patch adresses the issue by specifying hidden visibility for said
symbol.

* Source/JavaScriptCore/inspector/InspectorBackendDispatcher.h:

Canonical link: https://commits.webkit.org/274901@main
@webkit-commit-queue
Copy link
Collaborator

Committed 274901@main (790c37c): https://commits.webkit.org/274901@main

Reviewed commits have been landed. Closing PR #24667 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 790c37c into WebKit:main Feb 17, 2024
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Feb 17, 2024
@aprotyas aprotyas deleted the eng/269622 branch February 17, 2024 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore).
Projects
None yet
3 participants