Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897820 - net-analyzer/ettercap-0.8.3.1 fails to compile (MUSL-CLANG-SYSTEM): ec_filter.c:516:14: error: call to undeclared function memmem; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: net-analyzer/ettercap-0.8.3.1 fails to compile (MUSL-CLANG-SYSTEM): ec_filter...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-26 08:04 UTC by Agostino Sarubbo
Modified: 2023-04-14 00:30 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,98.56 KB, text/plain)
2023-02-26 08:04 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-26 08:04:01 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-analyzer/ettercap-0.8.3.1 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-26 08:04:03 UTC
Created attachment 854722 [details]
build.log

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


FAILED: src/CMakeFiles/lib_ettercap.dir/ec_filter.c.o 
/var/tmp/portage/net-analyzer/ettercap-0.8.3.1/work/ettercap-0.8.3.1/src/ec_filter.c:516:14: error: call to undeclared function 'memmem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Larry the Git Cow gentoo-dev 2023-04-14 00:30:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5897af1453b6abf3f993d5b3a698c8184086b067

commit 5897af1453b6abf3f993d5b3a698c8184086b067
Author:     orbea <orbea@riseup.net>
AuthorDate: 2023-04-13 01:54:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-14 00:27:29 +0000

    net-analyzer/ettercap: Fix musl build
    
    Closes: https://bugs.gentoo.org/897820
    Upsream-PR: https://github.com/Ettercap/ettercap/pull/1220
    Uptream-Commit: https://github.com/Ettercap/ettercap/commit/f03a1174ffccf9343423498fa3c65bd9090d4ce0
    
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/30577
    Signed-off-by: Sam James <sam@gentoo.org>

 ....8.3.1-r2.ebuild => ettercap-0.8.3.1-r3.ebuild} |  1 +
 .../ettercap/files/ettercap-0.8.3.1-musl.patch     | 39 ++++++++++++++++++++++
 2 files changed, 40 insertions(+)