Bug 411785 - musl system: build failure "implicit declaration of function"
Summary: musl system: build failure "implicit declaration of function"
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: All editors (other bugs)
Version First Reported In: 5.4.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-10 08:45 UTC by Bart Ribbers
Modified: 2020-08-24 09:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Ribbers 2019-09-10 08:45:03 UTC
SUMMARY
KDevelop fails to build currently with 2 errors:

cmListFileLexer.c: In function 'cmListFileLexer_yy_init_buffer':
cmListFileLexer.c:1802:48: error: implicit declaration of function 'fileno'; did you mean 'mblen'? [-Werror=implicit-function-declaration]
cmListFileLexer.in.l: In function 'cmListFileLexerSetToken':
cmListFileLexer.in.l:290:25: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Werror=implicit-function-declaration]

STEPS TO REPRODUCE
1. Get a Musl based system like Gentoo Musl or Alpine Linux
2. Try to compile KDevelop

OBSERVED RESULT

A build failure happens "implicit declaration of function 'fileno'" and "implicit declaration of function 'strdup'".

EXPECTED RESULT

The application to compile correctly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Alpine Linux
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.61.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION

This system is Musl based, which is most probably the reason it doesn't work.
Comment 1 Bart Ribbers 2020-08-24 09:05:09 UTC
This has been resolved in some previous version, not sure which but this bug report isn't relevant anymore.