Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 896056 - net-libs/libesmtp-1.1.0-r1 fails to compile (MUSL-CLANG-SYSTEM): smtp-api.c:1183:7: error: call to undeclared function strlcpy; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: net-libs/libesmtp-1.1.0-r1 fails to compile (MUSL-CLANG-SYSTEM): smtp-api.c:1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-23 16:13 UTC by Agostino Sarubbo
Modified: 2023-10-08 08:20 UTC (History)
0 users

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


Attachments
build.log (build.log,73.43 KB, text/plain)
2023-02-23 16: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-23 16:13:32 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/libesmtp-1.1.0-r1 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-23 16:13:34 UTC
Created attachment 854118 [details]
build.log

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


FAILED: libesmtp.so.6.2.0.p/smtp-api.c.o 
FAILED: libesmtp.so.6.2.0.p/smtp-tls.c.o 
../libESMTP-1.1.0/smtp-api.c:1183:7: error: call to undeclared function 'strlcpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Larry the Git Cow gentoo-dev 2023-10-08 08:20:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c55e3cb057abcb3846ef119189ceee2669f1ff1

commit 6c55e3cb057abcb3846ef119189ceee2669f1ff1
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-10-01 16:56:31 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-10-08 08:19:56 +0000

    net-libs/libesmtp: Fix call to undeclared function strlcpy
    
    And update EAPI 7 -> 8
    
    Closes: https://bugs.gentoo.org/896056
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/33149
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../libesmtp-1.1.0-fix-build-with-clang16.patch    | 21 ++++++++++
 net-libs/libesmtp/libesmtp-1.1.0-r2.ebuild         | 46 ++++++++++++++++++++++
 2 files changed, 67 insertions(+)