[Playerstage-users] Player-mod

Hello all,
I've been attempting to add the player-mod to an automake project of
mine, and ran into an interesting little bug. It turns out that the
_init and _fini functions cause some problems and have been deprecated.
For more information check out:
http://www.dwheeler.com/program-library/Program-Library-HOWTO/miscellane
ous.html
The moral of the story is that you'll need to change
void _init(void)
void _fini(void)
to=20
void __attribute__ ((constructor)) example_init(void)
void __attribute__ ((destructor)) example_fini(void)
respectively. This may be something to consider adding to the
player-mod source.
This was a fun one to track down, so I figured I'd post it to the group
in case someone sees it down the road.
Cheers,
bk

Thread view

Hello all,
I've been attempting to add the player-mod to an automake project of
mine, and ran into an interesting little bug. It turns out that the
_init and _fini functions cause some problems and have been deprecated.
For more information check out:
http://www.dwheeler.com/program-library/Program-Library-HOWTO/miscellane
ous.html
The moral of the story is that you'll need to change
void _init(void)
void _fini(void)
to=20
void __attribute__ ((constructor)) example_init(void)
void __attribute__ ((destructor)) example_fini(void)
respectively. This may be something to consider adding to the
player-mod source.
This was a fun one to track down, so I figured I'd post it to the group
in case someone sees it down the road.
Cheers,
bk