[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7892) LMDB OS X build issue: ESECT section attribute

batterseapower@hotmail.com wrote:
> Full_Name: Max Bolingbroke
> Version: HEAD
> OS: OS X
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> 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/