[PD] flext externals

Thomas Grill t.grill at gmx.net
Sat Mar 29 13:19:05 CET 2003


mprims at skynet.be wrote:

>hi
>
>since some time i have been having a strange problem with thomas grill's
>flext externals. as soon as one of the externals (at startup) has been
>loaded, no other can be. that is to say, it seems to get loaded, but then
>the information of the external or library already loaded appears and the
>second external/library is not usable.
>example: fftease has been loaded and then it's vasp's turn -> fftease's
>loading information is shown for the second time and no vasp objects in pd.
>
>  
>

Hi Mik, hi all,

i found the bug. It's a name clash in PDs shared library name space.
That's a generally rather dangerous issue maybe also for other externals.

there are two libraries e.g. xsample and vasp

The setup functions both call a non-static extern function "lib_setup" 
which is defined in each of the libraries

xsample loading: xsample_setup -> lib_setup
vasp loading: vasp_setup -> lib_setup

Note that in the second case, the lib_setup function of xsample is 
called....


greetings,
Thomas








More information about the Pd-list mailing list