Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750104 - sys-auth/sssd-2.4.0 fails to compile: error: 'SOFTHSM2_PATH' undeclared
Summary: sys-auth/sssd-2.4.0 fails to compile: error: 'SOFTHSM2_PATH' undeclared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://github.com/SSSD/sssd/issues/5397
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-19 09:10 UTC by Agostino Sarubbo
Modified: 2021-02-21 02:33 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,50.53 KB, application/x-xz)
2020-10-19 09:10 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 2020-10-19 09:10:50 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-auth/sssd-2.4.0 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2020-10-19 09:10:53 UTC
Created attachment 666698 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2020-10-19 09:10:54 UTC
Possible context of error(s):

ls: cannot access 'br/*.xml': No such file or directory
ls: cannot access 'eu/*.xml': No such file or directory
ls: cannot access 'fi/*.xml': No such file or directory
ls: cannot access 'lv/*.xml': No such file or directory
ls: cannot access 'pt_BR/*.xml': No such file or directory
ls: cannot access 'ru/*.xml': No such file or directory
ls: cannot access 'tg/*.xml': No such file or directory
ls: cannot access 'zh_CN/*.xml': No such file or directory
ls: cannot access 'br/*.xml': No such file or directory
ls: cannot access 'eu/*.xml': No such file or directory
ls: cannot access 'fi/*.xml': No such file or directory
ls: cannot access 'lv/*.xml': No such file or directory
ls: cannot access 'pt_BR/*.xml': No such file or directory
ls: cannot access 'ru/*.xml': No such file or directory
ls: cannot access 'tg/*.xml': No such file or directory
ls: cannot access 'zh_CN/*.xml': No such file or directory
src/tests/cmocka/test_pam_srv.c:65:26: error: ‘SOFTHSM2_PATH’ undeclared (first use in this function)
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2021-02-21 02:23:32 UTC
Error is 

> In file included from ./src/tests/cmocka/common_mock.h:42,
>                  from src/tests/cmocka/test_pam_srv.c:27:
> src/tests/cmocka/test_pam_srv.c: In function ‘test_pam_cert_check_gdm_smartcard’:
> src/tests/cmocka/test_pam_srv.c:65:26: error: ‘SOFTHSM2_PATH’ undeclared (first use in this function)
>    65 | #define TEST_MODULE_NAME SOFTHSM2_PATH
>       |                          ^~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c:674:42: note: in expansion of macro ‘TEST_MODULE_NAME’
>   674 |                                 + sizeof(TEST_MODULE_NAME)
>       |                                          ^~~~~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c:65:26: note: each undeclared identifier is reported only once for each function it appears in
>    65 | #define TEST_MODULE_NAME SOFTHSM2_PATH
>       |                          ^~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c:674:42: note: in expansion of macro ‘TEST_MODULE_NAME’
>   674 |                                 + sizeof(TEST_MODULE_NAME)
>       |                                          ^~~~~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c: In function ‘test_pam_cert_check_ex’:
> src/tests/cmocka/test_pam_srv.c:65:26: error: ‘SOFTHSM2_PATH’ undeclared (first use in this function)
>    65 | #define TEST_MODULE_NAME SOFTHSM2_PATH
>       |                          ^~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c:741:37: note: in expansion of macro ‘TEST_MODULE_NAME’
>   741 |                                     TEST_MODULE_NAME,
>       |                                     ^~~~~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c:65:26: warning: initialization of ‘const char *’ from incompatible pointer type ‘const char **’ [-Wincompatible-pointer-types]
>    65 | #define TEST_MODULE_NAME SOFTHSM2_PATH
>       |                          ^~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c:750:38: note: in expansion of macro ‘TEST_MODULE_NAME’
>   750 |                                      TEST_MODULE_NAME,
>       |                                      ^~~~~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c:65:26: note: (near initialization for ‘check2_strings[2]’)
>    65 | #define TEST_MODULE_NAME SOFTHSM2_PATH
>       |                          ^~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c:750:38: note: in expansion of macro ‘TEST_MODULE_NAME’
>   750 |                                      TEST_MODULE_NAME,
>       |                                      ^~~~~~~~~~~~~~~~
> src/tests/cmocka/test_pam_srv.c:800:33: error: invalid operands to binary + (have ‘char *’ and ‘const char **’)
>   798 |             && strncmp((char *) body + rp + strlen(name) + 1
>       |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Should be fixed in >=2.4.1 via https://github.com/SSSD/sssd/commit/a06ce2107e0bad14e7313f218db514947d8cad2f
Comment 4 Larry the Git Cow gentoo-dev 2021-02-21 02:33:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93d64a2873ffdb410b976dc0f2201fd0c05c7eab

commit 93d64a2873ffdb410b976dc0f2201fd0c05c7eab
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-02-21 02:32:09 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-02-21 02:33:10 +0000

    sys-auth/sssd: bump to v2.4.2
    
    Closes: https://bugs.gentoo.org/728894
    Closes: https://bugs.gentoo.org/750104
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 sys-auth/sssd/Manifest          |   1 +
 sys-auth/sssd/sssd-2.4.2.ebuild | 287 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 288 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 3d9d7290ae3d084781b115d15a3e9c62959bc1ea
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-02-21 02:33:02 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-02-21 02:33:11 +0000

    sys-auth/sssd: drop old
    
    Not a stable candidate.
    
    Bug: https://bugs.gentoo.org/750104
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 sys-auth/sssd/Manifest          |   1 -
 sys-auth/sssd/sssd-2.4.0.ebuild | 286 ----------------------------------------
 2 files changed, 287 deletions(-)