Issue 8772 - Build fail: thr_posix.c:329:16: error: only weak aliases are supported on darwin
Summary: Build fail: thr_posix.c:329:16: error: only weak aliases are supported on darwin
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: 2.5.0
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-15 16:59 UTC by minfrin@sharp.fm
Modified: 2020-10-14 21:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description minfrin@sharp.fm 2017-11-15 16:59:57 UTC
Full_Name: Graham Leggett
Version: git master
OS: MacOS Sierra
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (5.56.169.82)


Hi all,

I am seeing a build failure when trying to build openldap master on MacOS
Sierra:

 cc -g -O2 -I../../include -I../../include -DLDAP_R_COMPILE -I./../libldap
-DLDAP_LIBRARY -c thr_posix.c  -fno-common -DPIC -o .libs/thr_posix.o
thr_posix.c:329:16: error: only weak aliases are supported on darwin
        LDAP_GCCATTR((alias("ldap_pvt_thread_mutex_destroy")));
                      ^
thr_posix.c:331:16: error: only weak aliases are supported on darwin
        LDAP_GCCATTR((alias("ldap_pvt_thread_mutex_lock")));
                      ^
thr_posix.c:333:16: error: only weak aliases are supported on darwin
        LDAP_GCCATTR((alias("ldap_pvt_thread_mutex_trylock")));
                      ^
thr_posix.c:335:16: error: only weak aliases are supported on darwin
        LDAP_GCCATTR((alias("ldap_pvt_thread_mutex_unlock")));
                      ^
4 errors generated.
make[2]: *** [thr_posix.lo] Error 1
make[1]: *** [all-common] Error 1
make: *** [all-common] Error 1

Regards,
Graham
--
Comment 1 Ondřej Kuzník 2018-06-22 13:28:03 UTC
On Wed, Nov 15, 2017 at 04:59:57PM +0000, minfrin@sharp.fm wrote:
> Hi all,
> 
> I am seeing a build failure when trying to build openldap master on MacOS
> Sierra:

Hi Graham,
a proposed patch series is available here:
https://github.com/mistotebe/openldap/tree/its8772

Does it fix the build issues for you?

Thanks,

-- 
Ondřej Kuzník
Senior Software Engineer
Symas Corporation                       http://www.symas.com
Packaged, certified, and supported LDAP solutions powered by OpenLDAP

Comment 2 OpenLDAP project 2018-11-01 18:11:10 UTC
Fixed in master
Comment 3 Quanah Gibson-Mount 2018-11-01 18:11:10 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 4 Quanah Gibson-Mount 2020-04-22 18:49:27 UTC
Commits:
82c8d3eb by Ryan Tandy at 2020-04-22T16:18:50+00:00
ITS#8772 Remove --with-threads=mach option