Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937134 - net-vpn/pptpd-1.4.0-r4 fails to compile: pptpd-logwtmp.c:53:3: error: implicit declaration of function logwtmp [-Wimplicit-function-declaration]
Summary: net-vpn/pptpd-1.4.0-r4 fails to compile: pptpd-logwtmp.c:53:3: error: implici...
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: musl
Keywords: PullRequest
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-08-02 14:06 UTC by Agostino Sarubbo
Modified: 2025-02-10 09:35 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,66.23 KB, text/plain)
2024-08-02 14:06 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 2024-08-02 14:06:22 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-vpn/pptpd-1.4.0-r4 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0002
Comment 1 Agostino Sarubbo gentoo-dev 2024-08-02 14:06:23 UTC
Created attachment 898814 [details]
build.log

build log and emerge --info
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2024-11-18 22:29:10 UTC
Musl-only problem...
Comment 3 Larry the Git Cow gentoo-dev 2025-02-10 09:18:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6301f2d6885ad169092a232c26fc29040612942a

commit 6301f2d6885ad169092a232c26fc29040612942a
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-01-05 09:43:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-10 09:16:40 +0000

    net-vpn/pptpd: fix compile on MUSL
    
    Add conditional compilation to build system, so on systems lacking
    logwtmp, we don't build plugin that uses logwtmp
    
    Bug: https://bugs.gentoo.org/937134
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/39985
    Signed-off-by: Sam James <sam@gentoo.org>

 net-vpn/pptpd/files/pptpd-1.4.0-logwtmp.patch | 25 ++++++++
 net-vpn/pptpd/pptpd-1.4.0-r5.ebuild           | 83 +++++++++++++++++++++++++++
 2 files changed, 108 insertions(+)