Skip to content

modules that use spd_pthread_create and module_loop togeather will get multiple definition errors when linking. #1111

Description

@jsett

Steps to reproduce

You can easily recreate this issue by adding a function for module_debug into dummy.c.

int module_debug(int enable, const char *file)
{
	return 0;
}

The other way you can recreate this bug is by adding spd_pthread_create into one of the skeleton0_ modules.

Obtained behavior

multiple definition errors when linking.

Expected behavior

As spd_pthread_create is a common function it should work in all locations.

spd_pthread_create is necessary to create new threads that play nice with the existing module_loop. module_* functions are need to handle to protocol details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions