Project

General

Profile

Actions

Support #12319

closed

Problems while executing compiled binary with wt

Added by Sven Alisch 4 months ago. Updated 4 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/08/2024
Due date:
% Done:

0%

Estimated time:

Description

Hello all,

Happy New Year. I have the problem, that I can not start my application. Since 1 year I did not compile and started the app. I also upgraded all libraries, the compiler. I work under MacOS. The app compiles and links without any error. But if I start the app with:

./waverider --approot=../approot --docroot=../docroot --http-listen 0.0.0.0:9090

The result is:
dyld[89619]: Symbol not found: __ZN2Wt10SignalBaseC2Ev
Referenced from: / /build/waverider
Expected in: unknown

It seems, the problem has to do with WtSignalBase Instance/Class, but why? BTW: This happens with wt versions 4.8 / 4.9 / 4.10.

How to locate the error?

Thanks,
Sven

Actions #1

Updated by Sven Alisch 4 months ago

I have found out, that the libs were not found while executing the binary (assembly). Strange, but while my app compiles, all the libs were found.

If such a strange behavior occurs, I recommend to do following:

  1. Start your app with: DYLD_PRINT_SEARCHING=1 ./waverider ...
  2. Look in the messages, if there occurs a line like:
dyld[5439]: find path "@rpath/libwthttp.4.10.3.dylib"
dyld[5439]:   not found: "@rpath/libwthttp.4.10.3.dylib"

  1. If so, check your DYLD_LIBRARY_PATH with:

echo $DYLD_LIBRARY_PATH
  1. If "/usr/local/lib" is missing, add with:

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib

After adding "/usr/local/lib" it works.

regards,
Sven

Actions #2

Updated by Sven Alisch 4 months ago

BTW: You can close this ticket. Thank you very much!

Actions #3

Updated by Matthias Van Ceulebroeck 4 months ago

  • Tracker changed from Bug to Support
  • Status changed from New to Rejected

Hi Sven,

A very happy new year to you too. I'm glad you were able to resolve the issue.

Generally speaking, if an application is able to compile correctly, but fails to find symbols during executing that points to a missing dynamic library.

Best regards,
Matthias

Actions

Also available in: Atom PDF