Re: /libexec/ld-elf.so.1: ... Undefined symbol "_ZN7TMinuitC1Ei"

From: Christian Holm Christensen <cholm_at_nbi.dk>
Date: Thu, 26 May 2005 18:41:57 +0200


Hi Pierre-Luc,

On Thu, 2005-05-26 at 12:00 -0400, Pierre-Luc Drouin wrote:
> I have some code that uses Root classes and that I load in Root as a
> shared library with command gSystem->Load("libqsigex.so"). When I use some
> of my classes it works fine but it crashes with the following error when
> another of my classes tries to use Minuit:
>
> /libexec/ld-elf.so.1: /home/pldrouin/work/qsigex_new/lib/libqsigex.so:
> Undefined symbol "_ZN7TMinuitC1Ei"

This is a reference to `TMinuit::TMinuit(int)' (try doing `c++filt _ZN7TMinuitC1Ei'). Are you sure you have `libMinuit' loaded?

If `libMiniut' is loaded, check that you can create an object using the above CTOR. Also check that the symbol is defined by doing

        nm -C libMinuit.so | grep TMinuit::TMinuit

> I get this error with FreeBSD 5.4-STABLE. I compile Root with gcc 3.4.2. I
> get the error with the current CVS Root code and also with Root 4.04.02. I
> don't get this error on a RedHat Linux box running gcc 3.2

The reason you do not see it on GNU/Linux is perhaps that your library pulls in libMinut on its own (your library is linked against libMinut - which it shouldn't be btw. as libMinuit is really a plugin.)

Yours,

-- 
 ___  |  Christian Holm Christensen 
  |_| |  -------------------------------------------------------------
    | |  Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
     _|           DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
    _|            Denmark                    Office: (+45) 353  25 404
 ____|   Email:   cholm_at_nbi.dk               Web:    www.nbi.dk/~cholm
 | |
Received on Thu May 26 2005 - 18:43:00 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:08 MET