Skip to content

shutdown () function causes undefined symbol error with 2.0.13 #13393

@vargaz

Description

@vargaz

Testcase:

#include <sys/socket.h>

void main ()
{
	shutdown (0, 0);
}

To reproduce: emcc bug.c
Expected result: compiles
Actual result:

error: undefined symbol: __sys_shutdown (referenced by top-level compiled C/C++ code)
warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
warning: ___sys_shutdown may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors

Probably caused by: d7c7aed

Metadata

Metadata

Assignees

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