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

Bug 655676

Summary: media-gfx/exiv2-0.26_p20180319: (fbsd) error: ‘PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP’ was not declared in this scope
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 655666    
Attachments: media-gfx:exiv2-0.26_p20180319:20180513-183834.log
e-info.txt

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-05-13 18:44:07 UTC
Created attachment 531254 [details]
media-gfx:exiv2-0.26_p20180319:20180513-183834.log

[ 59%] Building CXX object src/CMakeFiles/exiv2.dir/actions.cpp.o                
cd /var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131-abi_x86_64.amd64_fbsd/src && /usr/lib/ccache/bin/x86_64-gentoo-freebsd11.1-g++ -DEXV_HAVE_DLL -DEXV_HAVE_STDINT_H -DEXV_LOCALEDIR=\"share/locale\" -I/var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131/src -I/var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131/include -I/var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131/include/exiv2 -I/var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131-abi_x86_64.amd64_fbsd -I/var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131/xmpsdk/include -I/var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131-abi_x86_64.amd64_fbsd/src   -DNDEBUG -O2 -pipe -march=native   -Wall -Wcast-align -Wpointer-arith -Wformat-security -Wmissing-format-attribute -Woverloaded-virtual -W -std=gnu++98 -o CMakeFiles/exiv2.dir/actions.cpp.o -c /var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131/src/actions.cpp
/var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131/src/actions.cpp:2063:32: error: ‘PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP’ was not declared in this scope
   static pthread_mutex_t cs =  PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;          
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~           
/var/tmp/portage/media-gfx/exiv2-0.26_p20180319/work/Exiv2-exiv2-876b131/src/actions.cpp:2063:32: note: suggested alternative: ‘PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP’
   static pthread_mutex_t cs =  PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;          
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~           
                                PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP            


This is gcc-7.3.0 on amd64-fbsd.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-05-13 18:44:27 UTC
Created attachment 531256 [details]
e-info.txt
Comment 2 Larry the Git Cow gentoo-dev 2018-09-21 10:33:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a849dfab49026cce7d988e8a043eb1aaa9da8fd

commit 4a849dfab49026cce7d988e8a043eb1aaa9da8fd
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-09-21 10:32:27 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-09-21 10:33:03 +0000

    media-gfx/exiv2: Fix build with musl libc and on amd64-fbsd
    
    Closes: https://bugs.gentoo.org/655676
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 media-gfx/exiv2/Manifest                       | 2 +-
 media-gfx/exiv2/exiv2-0.26_p20180811-r1.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)