Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#18040 closed bug (fixed)

missing symbol _ZN8BPrivate10HashStringD1Ev

Reported by: Nexus-6 Owned by: axeld
Priority: normal Milestone: R1/beta4
Component: Network & Internet/Stack Version: R1/Development
Keywords: Cc:
Blocked By: Blocking: #18041
Platform: x86-64

Description

Hi, with hrev56575 WebPositive and Weather stopped working firing these erros:

~> /boot/system/apps/WebPositive runtime_loader: /boot/system/lib/libWebKitLegacy.so.1.8.4: Could not resolve symbol '_ZN8BPrivate10HashStringD1Ev' resolve symbol "_ZN8BPrivate10HashStringD1Ev" returned: -2147478780 runtime_loader: /boot/system/lib/libWebKitLegacy.so.1.8.4: Troubles relocating: Symbol not found ~> /boot/system/apps/Weather runtime_loader: /boot/system/apps/Weather: Could not resolve symbol '_ZN8BPrivate10HashStringD1Ev' resolve symbol "_ZN8BPrivate10HashStringD1Ev" returned: -2147478780 runtime_loader: /boot/system/apps/Weather: Troubles relocating: Symbol not found

I presume it is a problem with apps using libnetservices, other services/apps are not affected (e.g. Epiphany, Telegram, Vision).

Change History (17)

comment:1 by X512, 18 months ago

Probably libshared.a need to be added to these apps link dependencies. See https://git.haiku-os.org/haiku/commit/?id=16081dd2fa89fbc51c11ad907bed751a8a2b36ab.

comment:2 by madmax, 18 months ago

It went the other way for me. Got that from WebPositive while doing some tests in hrev56574, and then updating to hrev56575 got rid of it. The symbols are now in WebPositive's text section, whereas before they were just referenced and provided from libbnetapi.

comment:3 by Nexus-6, 18 months ago

I can’t tell about WebPositive but Weather already links against libshared.a. It also does not compile under the latest nightly, the problem is the same missing symbol but the culprit seems to be libnetservices where the symbol is referenced.

in reply to:  3 comment:4 by augiedoggie, 18 months ago

Replying to Nexus-6:

I can’t tell about WebPositive but Weather already links against libshared.a. It also does not compile under the latest nightly, the problem is the same missing symbol but the culprit seems to be libnetservices where the symbol is referenced.

You just need to change the link order to move libshared later in the list of libs

diff --git a/Makefile b/Makefile
index b68d086..6a3d3c7 100644
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@ RSRCS = \
 #	- 	if your library does not follow the standard library naming scheme,
 #		you need to specify the path to the library and it's name.
 #		(e.g. for mylib.a, specify "mylib.a" or "path/mylib.a")
-LIBS = be bnetapi localestub shared translation netservices $(STDCPPLIBS)
+LIBS = be bnetapi localestub translation netservices shared $(STDCPPLIBS)
 
 #	Specify additional paths to directories following the standard libXXX.so
 #	or libXXX.a naming scheme. You can specify full paths or paths relative

in reply to:  3 comment:5 by madmax, 18 months ago

Replying to Nexus-6:

I can’t tell about WebPositive but Weather already links against libshared.a. It also does not compile under the latest nightly, the problem is the same missing symbol but the culprit seems to be libnetservices where the symbol is referenced.

It's not really WebPositive, but webkit. It also doesn't compile under hrev56578, and adding libshared fixes it and makes WebPositive run.

comment:6 by Nexus-6, 18 months ago

Thank you! Weather now works and I committed the fix to GitHub.

comment:7 by waddlesplash, 18 months ago

Blocking: 18041 added

comment:8 by davidkaroly, 18 months ago

same issue with WebPositive on hrev56580

comment:9 by win8linux, 18 months ago

Can confirm that the issue is still present as of hrev56584.

comment:10 by tojoko, 18 months ago

can confirm that the issue is still present as of hrev56580 as well as hrev56582.

comment:11 by tojoko, 18 months ago

webpositiv in hrev56555 however still works like charm

comment:12 by nick.lindert, 18 months ago

I can confirm this issue on hrev56584.

comment:13 by pulkomandy, 18 months ago

We don't need everyone to list every revision of Haiku here. Especially as this is not to be solved at Haiku side, we will update all affected apps on Haikuports.

comment:14 by pamen, 18 months ago

Well, in the latest (56584) BePdf and Web Positive and some more native apps are all failing with "Symbol not found" which hints at a missing library in the builds for at least 7 builds. They are not installable from Haikuports as they are not ported.

comment:15 by waddlesplash, 18 months ago

BePDF is built at HaikuPorts. WebPositive's missing symbol error comes from HaikuWebKit which is also built at HaikuPorts.

comment:16 by waddlesplash, 18 months ago

Milestone: R1/beta4
Resolution: fixed
Status: newclosed

There is now a ticket at HaikuPorts to track these problems: https://github.com/haikuports/haikuports/issues/7383

comment:17 by pamen, 18 months ago

All clear, Thank you waddlesplash.

Note: See TracTickets for help on using tickets.