Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 25-04-2018, 10:54   #1
Registered User

Join Date: Apr 2018
Posts: 6
liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

Hi everybody,

since 2 weeks I try to compile OpenCPN and oesenc_pi from source under Ubuntu 32-bit.
The OpenCPN version 4.5.0 and all plugins which will be build with it run fine. But when I compile any version of the oesenc_pi from version 2.0 down to the first committed version I always get an error at load time:


undefined symbol: _ZTI23PlugInChartBaseExtended


Here is the extract from the logfile:


++++++++++++++++++++

18:56:10 CEST: 2018-04-25
18:56:10 CEST: ------- Starting OpenCPN -------
18:56:10 CEST: Version 4.5.0 Build 2016-07-19
18:56:10 CEST: wxWidgets version: wxWidgets 3.0.2 Linux 32 bit wxGTK
18:56:10 CEST: MemoryStatus: mem_total: 3971 mb, mem_initial: 31 mb
18:56:10 CEST: SData_Locn is /usr/local/share/opencpn/
18:56:10 CEST: PrivateDataDir is /home/klh/.opencpn
18:56:10 CEST: Using existing Config_File: /home/klh/.opencpn/opencpn.conf
18:56:10 CEST: Setting Viewpoint Lat/Lon 53.7543, 8.4657
18:56:10 CEST: Setting Ownship Lat/Lon 33.358, -79.282
18:56:10 CEST: Styles loading from /usr/local/share/opencpn/uidata/styles.xml
18:56:10 CEST: No styles found at: /home/klh/
18:56:10 CEST: No styles found at: /home/klh/.opencpn/
18:56:10 CEST: Using SVG Icons
18:56:10 CEST: Detected display size (horizontal): 338 mm
18:56:10 CEST: System default Language: de_DE
18:56:10 CEST: Opencpn language set to: en_US
18:56:10 CEST: Creating MyFrame...size(850, 868) position(65, 184)
18:56:10 CEST: Creating glChartCanvas
18:56:10 CEST: ChartDB Cache policy: Application target is 1024 MBytes
18:56:10 CEST: Loading chart db version: V018
18:56:10 CEST: Chartdb: Chart directory list follows
18:56:10 CEST: Chart directory #0: /home/klh/ENC_13-18
18:56:10 CEST: GPS Watchdog Timeout is: 6 sec.
18:56:10 CEST: ChartSymbols loaded from /usr/local/share/opencpn/s57data/chartsymbols.xml
18:56:10 CEST: Using s57data in /usr/local/share/opencpn/s57data
18:56:10 CEST: Initializing Chart /home/klh/ENC_13-18/ENC_ROOT/DE221000.000
18:56:11 CEST: Unable to initialize background world map. No GSHHS datafiles found in /usr/local/share/opencpn/gshhs/
18:56:11 CEST: Loading World Chart Q=0 in 0 ms.
18:56:11 CEST: GSHHS World chart files have wrong version. Found 2058996090, expected 210-220.
18:56:11 CEST: Loading World Chart Q=0 in 0 ms.
18:56:11 CEST: OpenCPN Initialized in 1341 ms.
18:56:11 CEST: Loading World Chart Q=0 in 0 ms.
18:56:11 CEST: Looking for UserIcons at /home/klh/.opencpn/UserIcons
18:56:11 CEST: Loading navobjects from navobj.xml
18:56:11 CEST: Done loading navobjects
18:56:11 CEST: Loading World Chart Q=0 in 0 ms.
18:56:11 CEST: Loading World Chart Q=0 in 0 ms.
18:56:11 CEST: PlugInManager searching for PlugIns in location /usr/local/lib/opencpn
18:56:11 CEST: PlugInManager: Loading PlugIn: /usr/local/lib/opencpn/libchartdldr_pi.so
18:56:11 CEST: /usr/local/lib/opencpn/libchartdldr_pi.so
API Version detected: 113
PlugIn Version detected: 102
18:56:11 CEST: Opencpn language reload for: en_US
18:56:11 CEST: Loading catalog for: opencpn-chartdldr_pi
18:56:11 CEST: Loading catalog for opencpn core.
18:56:11 CEST: chartdldr_pi: /home/klh/Charts
18:56:11 CEST: chartdldr_pi: /home/klh/Charts
18:56:11 CEST: PlugInManager: Loading PlugIn: /usr/local/lib/opencpn/libwmm_pi.so
18:56:11 CEST: /usr/local/lib/opencpn/libwmm_pi.so
API Version detected: 108
PlugIn Version detected: 101
18:56:11 CEST: Opencpn language reload for: en_US
18:56:11 CEST: Loading catalog for: opencpn-chartdldr_pi
18:56:11 CEST: Loading catalog for: opencpn-wmm_pi
18:56:11 CEST: Loading catalog for opencpn core.
18:56:11 CEST: WMM: WMM model data loaded from file /usr/local/share/opencpn/plugins/wmm_pi/data//WMM.COF.
18:56:11 CEST: Loading World Chart Q=0 in 0 ms.
18:56:12 CEST: Loading World Chart Q=0 in 0 ms.
18:56:12 CEST: Loading World Chart Q=0 in 0 ms.
18:56:13 CEST: Loading World Chart Q=0 in 0 ms.
18:56:13 CEST: Detected display size (horizontal): 338 mm
18:56:14 CEST: PlugInManager searching for PlugIns in location /usr/local/lib/opencpn
18:56:14 CEST: PlugInManager: Loading PlugIn: /usr/local/lib/opencpn/libdashboard_pi.so
18:56:14 CEST: /usr/local/lib/opencpn/libdashboard_pi.so
API Version detected: 106
PlugIn Version detected: 102
18:56:14 CEST: PlugInManager: Loading PlugIn: /usr/local/lib/opencpn/liboesenc_pi.so
18:56:14 CEST: Error: /usr/local/lib/opencpn/liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended
18:56:14 CEST: PlugInManager: Cannot load library: /usr/local/lib/opencpn/liboesenc_pi.so
18:56:14 CEST: PlugInManager: Loading PlugIn: /usr/local/lib/opencpn/libgrib_pi.so
18:56:14 CEST: /usr/local/lib/opencpn/libgrib_pi.so
API Version detected: 112
PlugIn Version detected: 401
19:20:09 CEST: Loading World Chart Q=0 in 0 ms.
19:20:10 CEST: Loading World Chart Q=0 in 0 ms.
19:20:10 CEST: ***GPS Watchdog timeout at Lat:33.358 Lon: -79.282
19:20:10 CEST: LOGBOOK: 2018-04-25 17:20:10 UTC DR Lat 33.35800 Lon -79.28200
19:20:10 CEST: PlugInManager: Deactivating PlugIn: /usr/local/lib/opencpn/libchartdldr_pi.so
19:20:10 CEST: chartdldr_pi: DeInit
19:20:10 CEST: PlugInManager: Deactivating PlugIn: /usr/local/lib/opencpn/libwmm_pi.so
19:20:10 CEST: opencpn::MyFrame exiting cleanly.
19:20:10 CEST: Chart cache PlugIn purge
19:20:10 CEST: PlugInManager: UnLoading PlugIn: /usr/local/lib/opencpn/libchartdldr_pi.so
19:20:10 CEST: PlugInManager: UnLoading PlugIn: /usr/local/lib/opencpn/libwmm_pi.so
19:20:10 CEST: PlugInManager: UnLoading PlugIn: /usr/local/lib/opencpn/libdashboard_pi.so
19:20:10 CEST: PlugInManager: UnLoading PlugIn: /usr/local/lib/opencpn/libgrib_pi.so
19:20:10 CEST: Chart cache purge
19:20:10 CEST: opencpn::MyApp starting exit.
19:20:10 CEST: LOGBOOK: 2018-04-25 17:20:10 UTC OFF: Lat 33.35800 Lon -79.28200
19:20:10 CEST: opencpn::MyApp exiting cleanly...
19:30:59 CEST: +

+++++++++++++++++++++

Any idea what is going wrong?

Arno
__________________

Arno is offline   Reply With Quote
Old 25-04-2018, 11:25   #2
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,710
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

Why use an old version of OpenCPN. Probably to old.
Upgrade to latest stable version 4.8.4 and you'll be fine.
Thomas
__________________

cagney is offline   Reply With Quote
Old 25-04-2018, 13:15   #3
Registered User

Join Date: Apr 2018
Posts: 6
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

Thanks for your answer.

Unfortunately this is not a solution. I compiled version 4.8.2 which is the newest available version in the git repository. This version results in incompatible plugins. Here an extract from the logfile:


22:02:59 CEST: 2018-04-25
22:02:59 CEST: ------- Starting OpenCPN -------
22:02:59 CEST: Version 4.8.2 Build 2018-02-06
22:02:59 CEST: wxWidgets version: wxWidgets 3.0.2 Linux 32 bit wxGTK
22:02:59 CEST: MemoryStatus: mem_total: 3971 mb, mem_initial: 28 mb
22:02:59 CEST: SData_Locn is /usr/local/share/opencpn/
...
22:03:11 CEST: Loading World Chart Q=4 in 0 ms.
22:03:12 CEST: PlugInManager searching for PlugIns in location /usr/local/lib/opencpn
22:03:13 CEST: Incompatible plugin detected: /usr/local/lib/opencpn/libdashboard_pi.so
22:03:23 CEST: Incompatible plugin detected: /usr/local/lib/opencpn/libchartdldr_pi.so
22:03:33 CEST: Incompatible plugin detected: /usr/local/lib/opencpn/libwmm_pi.so
22:03:36 CEST: Incompatible plugin detected: /usr/local/lib/opencpn/libgrib_pi.so
22:03:38 CEST: Opencpn language load for: en_US
22:03:38 CEST: Loading catalog for opencpn core.
22:03:38 CEST: Getting DefaultSystemLocale...

Only version 4.5 compiles without any problems.

The missing symbol is due to an exported class in the oesenc plugin which will be dynamically loaded from OpenCPN. Therefore I think it depends not on the OpenCPN version, but I dont know why it is missing.

Arno
Arno is offline   Reply With Quote
Old 25-04-2018, 13:38   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 5,228
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

Arno...
Current oesenc plugin will not work with OpenCPN as old as 4.5. Build at least 4.8.4 and better invest your time into debugging why it is considered the plugins incompatible on your system, which does not happen on any of our testing machines. You may start looking at https://github.com/OpenCPN/OpenCPN/b...nager.cpp#L940

Pavel
nohal is offline   Reply With Quote
Old 26-04-2018, 04:31   #5
Registered User

Join Date: Apr 2018
Posts: 6
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

Thanks for the advice.
I will try a new compilation on a different hardware platform...
Arno
Arno is offline   Reply With Quote
Old 26-04-2018, 04:43   #6
Registered User

Join Date: Jun 2015
Posts: 371
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

Did you do
sudo make install
after compiling 4.8.2? From the errors it looks like you trying to run a newer opencpn with a previously installed older one.
did-g is offline   Reply With Quote
Old 26-04-2018, 04:54   #7
Registered User

Join Date: Apr 2018
Posts: 6
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

Yes, I did a sudo make install and I also checked that there is no old installation at /usr/local...

By the way, opencpn will be installed to /usr/local and oesenc_pi will be installed to /usr if I use sudo make install. So I have the choice to change the prefix in the makefile of oescenc or to copy the installed folders by hand to put oesenc_pi in the right place.
Arno is offline   Reply With Quote
Old 26-04-2018, 06:08   #8
Registered User

Join Date: Jun 2015
Posts: 371
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

Quote:
Originally Posted by Arno View Post
Yes, I did a sudo make install and I also checked that there is no old installation at /usr/local...

By the way, opencpn will be installed to /usr/local and oesenc_pi will be installed to /usr if I use sudo make install. So I have the choice to change the prefix in the makefile of oescenc or to copy the installed folders by hand to put oesenc_pi in the right place.
Which Ubuntu version? Are you using libelf?

For oesenc, yes some plugins default to /usr rather than /usr/local/, you can use:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local
for choosing where to install them
.
did-g is offline   Reply With Quote
Old 26-04-2018, 06:30   #9
Registered User

Join Date: Apr 2018
Posts: 6
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

It's a 32-bit machine therefore it runs version 15.04. That is the reason why I will try to switch to another hardware (64-bit) with a newer Ubuntu version.

libelf is installed but not linked to opencpn as far as I can see.

Thanks for the remark on the prefix define...

Arno
Arno is offline   Reply With Quote
Old 26-04-2018, 06:49   #10
Registered User

Join Date: Jun 2015
Posts: 371
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

Quote:
Originally Posted by Arno View Post
It's a 32-bit machine therefore it runs version 15.04. That is the reason why I will try to switch to another hardware (64-bit) with a newer Ubuntu version.

libelf is installed but not linked to opencpn as far as I can see.

Thanks for the remark on the prefix define...

Arno
In this case you should have
Quote:
Did not found LibELF, plugin compatibility check will be simplified.
in cmake output and it could be a false positive.
If it's not installed try to install libelf dev
could be libelf-dev
or libelfg0-dev
actual name is distribution and version dependent.
If it' already there on your box with 15.04 I'm afraid you're on your own.
did-g is offline   Reply With Quote
Old 26-04-2018, 08:12   #11
Registered User

Join Date: Apr 2018
Posts: 6
Re: liboesenc_pi.so: undefined symbol: _ZTI23PlugInChartBaseExtended

did-g thanks a lot!

libelf-dev was the key to the solution. This lib must be installed. Now opencpn 4.8.2 is running without any problems and also the oesenc_pi plugin is working.

Thanks again
Arno
__________________

Arno is offline   Reply With Quote
Reply

Tags
enc, plug

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error on TinyXML while compiling 2.5.0 (undefined reference to `TiXmlString..etc) manuprenlair OpenCPN 5 07-06-2012 05:16
Chart Symbol polarpete Navigation 3 06-03-2008 11:05
CHART SYMBOL jezza Navigation 2 08-09-2007 13:54

Advertise Here


All times are GMT -7. The time now is 22:45.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.