Issue 7892 - LMDB OS X build issue: ESECT section attribute
Summary: LMDB OS X build issue: ESECT section attribute
Status: VERIFIED FIXED
Alias: None
Product: LMDB
Classification: Unclassified
Component: liblmdb (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-08 22:34 UTC by batterseapower@hotmail.com
Modified: 2020-03-12 15:54 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 Howard Chu 2014-07-08 21:44:48 UTC
changed notes
changed state Open to Test
moved from Incoming to Build
Comment 1 batterseapower@hotmail.com 2014-07-08 22:34:35 UTC
Full_Name: Max Bolingbroke
Version: HEAD
OS: OS X
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (81.111.197.81)


Basically this line of mdb.c doesn't work on OS X:

#define	ESECT	__attribute__ ((section("text_env")))

You just get an error: "argument to 'section' attribute is not valid for this
target: mach-o section specifier requires a segment and section separated by a
comma"

I think you need to use this instead on this platform:

#define	ESECT	__attribute__ ((section("__TEXT,text_env")))
Comment 2 Howard Chu 2014-07-08 23:38:18 UTC
batterseapower@hotmail.com wrote:
> Full_Name: Max Bolingbroke
> Version: HEAD
> OS: OS X
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (81.111.197.81)
>
>
> Basically this line of mdb.c doesn't work on OS X:

Fixed in mdb.master
>
> #define	ESECT	__attribute__ ((section("text_env")))
>
> You just get an error: "argument to 'section' attribute is not valid for this
> target: mach-o section specifier requires a segment and section separated by a
> comma"
>
> I think you need to use this instead on this platform:
>
> #define	ESECT	__attribute__ ((section("__TEXT,text_env")))
>
>


-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 3 OpenLDAP project 2014-08-01 21:04:08 UTC
fixed in mdb.master
Comment 4 Quanah Gibson-Mount 2015-06-18 21:25:41 UTC
changed state Test to Closed