
Maybe the class is not being built or not being linked into the executable? Can you see updatemanager.o in the list of object files in the Scribus executable or see it on the linker command line? If you examine updatemanager.o with nm does it contain the _ZTI13UpdateMemento symbol? The fact that there's no typeinfo for UpdateMemento is VERY weird. _ZN14ScActionPlugin16staticMetaObjectE : ScActionPlugin::staticMetaObject _ZTI13UpdateMemento : typeinfo for UpdateMemento Rpath issue? It would be maybe interesting to know what nm and readelf report on a working (Linux?) box. I wonder if this is not caused by using cmake instead of libtool. This is the "standard" gcc as distributed with NetBSD (note that, owning to a bad feeling for the GPL v3, the future of GCC as the standard BSD C compiler is uncertain).īSD binutils are the same. There is a _ZN14ScActionPlugin16staticMetaObjectEv, it is undefined in plugins but of the 'T' (text) type in the main code, so there is no problem with dlopen ().Ĭonfigured with: /usr/src/tools/gcc/././gnu/dist/gcc4/configure -enable-long-long -disable-multilib -enable-threads -disable-symvers -build=x86_64-unknown-netbsd4.99.52 -host=i386-netbsdelf -target=i386-netbsdelf -enable-_cxa_atexit I've tried to locate the same symbols, but they don't exist. Maybe a weak symbol cannot be associated at runtime with an undefined? I tried to cancel the SCRIBUS_API attribute but to no avail, so I guess (as readelf shows) this is not a symbol visibility issue. dlopen (…) in pluginmanager seems all right. I have no explanation for the other symbol, though. I suspect that 'const ScActionPlugin::staticMetaObject () const', returning a const pointer on a const object is optimized away as a const value and directly assigned or inlined.

Nm /usr/pkg/scribus135/bin/scribus | grep _ZN14ScActionPlugin16staticMetaObjectEĠ896c714 R _ZN14ScActionPlugin16staticMetaObjectE The other cannot be found by readelf, but nm locates it as being of a "read only" type: Symbol table '.symtab' contains 18824 entries:ġ1236: 089bc8e0 8 OBJECT WEAK DEFAULT 15 _ZTI13UpdateMemento

Both objects are (hopefully) defined in the scribus binary, one if of the WEAK symbol type, as readelf reveals: When trying for the first time to run the 1.3.5svn version of Scribus, I found that no plugin would load: all report an undefined symbol, either 0006897: Plugin load fails with undefined symbols (for all plugins)
