Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836705

Summary: net-libs/libssh-0.9.6 fails to compile: cmdline.c:(.text+0x55): undefined reference to argp_parse
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: build.log
net-libs/libssh: fix musl build with USE="test"

Description Agostino Sarubbo gentoo-dev 2022-04-03 18:16:28 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/libssh-0.9.6 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-04-03 18:16:31 UTC
Created attachment 768613 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-04-03 18:16:31 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- Could NOT find ABIMap (missing: ABIMAP_EXECUTABLE) (Required is at least version "0.3.1")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Could not find `abimap` in PATH. It can be found in PyPI as `abimap` (try `pip install abimap`)
FAILED: tests/unittests/torture_channel 
FAILED: tests/unittests/torture_pki_dsa 
FAILED: tests/unittests/torture_pki_ecdsa 
FAILED: tests/unittests/torture_pki_ed25519 
FAILED: tests/unittests/torture_rand 
FAILED: tests/unittests/torture_threads_init 
cmdline.c:(.text+0x55): undefined reference to `argp_parse'
collect2: error: ld returned 1 exit status
Comment 3 CFuga 2022-06-27 19:30:45 UTC
Created attachment 788096 [details, diff]
net-libs/libssh: fix musl build with USE="test"

This patch makes the following changes:

* adds sys-libs/argp-standalone as dependency
* forces cmake to lookup for the argp library
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-27 23:02:55 UTC
(In reply to CFuga from comment #3)
> Created attachment 788096 [details, diff] [details, diff]
> net-libs/libssh: fix musl build with USE="test"
> 
> This patch makes the following changes:
> 
> * adds sys-libs/argp-standalone as dependency
> * forces cmake to lookup for the argp library

Thanks! I've also synced live.
Comment 5 Larry the Git Cow gentoo-dev 2022-06-27 23:11:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3feebf96ee8ee9375f291bf2d9c128c1fa758052

commit 3feebf96ee8ee9375f291bf2d9c128c1fa758052
Author:     Cristian Othón Martínez Vera <cfuga@cfuga.mx>
AuthorDate: 2022-06-27 19:23:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-27 23:03:08 +0000

    net-libs/libssh: fix musl build with USE="test"
    
    * add sys-libs/argp-standalone as dependency
    * force cmake to lookup for the argp library
    
    Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
    Bug: https://bugs.gentoo.org/836705
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libssh/libssh-0.9.6.ebuild |  9 ++++++++-
 net-libs/libssh/libssh-9999.ebuild  | 11 +++++++++--
 2 files changed, 17 insertions(+), 3 deletions(-)