Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895036 - dev-libs/bglibs-2.04-r2 fails to compile (MUSL-CLANG-SYSTEM): bindu.c:31:3: error: call to undeclared library function strcpy with type char (char , const char ); ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declar
Summary: dev-libs/bglibs-2.04-r2 fails to compile (MUSL-CLANG-SYSTEM): bindu.c:31:3: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: patch
Keywords: PullRequest
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2023-02-17 08:13 UTC by Agostino Sarubbo
Modified: 2025-02-07 14:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,120.00 KB, text/plain)
2023-02-17 08:13 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-17 08:13:18 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/bglibs-2.04-r2 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-17 08:13:20 UTC
Created attachment 851948 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-17 08:13:22 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


crypto/md4.c:118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md4.c:164:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md4.c:193:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md4.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md4.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md4.c:82:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md5-crypt.c:216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md5-crypt.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md5.c:116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md5.c:173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md5.c:192:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md5.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md5.c:48:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md5.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
crypto/md5.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
net/bindu.c:31:3: error: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Larry the Git Cow gentoo-dev 2025-02-07 14:52:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15272e2ae7a2352e2829906ff57d970e37ac4f8a

commit 15272e2ae7a2352e2829906ff57d970e37ac4f8a
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2025-02-07 14:14:03 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2025-02-07 14:52:00 +0000

    dev-libs/bglibs: update EAPI 7 -> 8
    
      * Delay ${ED} substitution until src_install
      * Add a patch to fix the build on musl
      * Add a patch to fix feature detection
    
    This doesn't fix all of the problems with this package, but it's a
    start. We have at least two users working on this in addition to
    myself. No one has been able to get their patches merged because the
    other problems always prevent the reviewers from testing. So I am
    partially resolving the Catch 22.
    
    Closes: https://github.com/gentoo/gentoo/pull/33569
    Closes: https://github.com/gentoo/gentoo/pull/36116
    Closes: https://bugs.gentoo.org/836055
    Closes: https://bugs.gentoo.org/870550
    Closes: https://bugs.gentoo.org/895036
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 dev-libs/bglibs/bglibs-2.04-r3.ebuild              |  84 +++++++++
 .../bglibs/files/bglibs-2.04-feature-tests.patch   | 198 +++++++++++++++++++++
 dev-libs/bglibs/files/bglibs-2.04-musl.patch       | 100 +++++++++++
 3 files changed, 382 insertions(+)