OpenLDAP
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest

Viewing Build/8697
Full headers

From: quanah@openldap.org
Subject: Remove refptr symbols from slapd.def
Compose comment
Download message
State:
0 replies:
0 followups:

Major security issue: yes  no

Notes:

Notification:


Date: Thu, 20 Jul 2017 18:23:21 +0000
From: quanah@openldap.org
To: openldap-its@OpenLDAP.org
Subject: Remove refptr symbols from slapd.def
Full_Name: Quanah Gibson-Mount
Version: 2.4.45
OS: Windows 10 64-bit
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (47.208.148.239)


When building OpenLDAP with a newer version of gcc, dlltool now exports a ton of
".refptr.FUNCTION" values out to the slapd.def file.  This breaks the build
process, as they aren't real functions.  This is due to this change to gcc:

https://gcc.gnu.org/ml/gcc-patches/2013-03/msg00858.html

Fix is simple enough, simply update our sed that we run against slapd.def:

quanah@ub16:~/git/openldap/openldap-head/servers/slapd$ git diff .
diff --git a/servers/slapd/Makefile.in b/servers/slapd/Makefile.in
index 177ad28..0327537 100644
--- a/servers/slapd/Makefile.in
+++ b/servers/slapd/Makefile.in
@@ -210,7 +210,7 @@ slapd.def: libbackends.a liboverlays.a version.o
        dlltool --exclude-symbols main,ServiceMain@8 --export-all-symbols \
                        --output-def $@.tmp $$objs;
        echo EXPORTS > $@
-       $(SED) -e 1,2d -e 's/ @ [0-9][0-9]*//' $@.tmp | sort >> $@
+       $(SED) -e 1,2d -e 's/ @ [0-9][0-9]*//' -e '/\.refptr\./d' $@.tmp | sort
>> $@
        $(RM) $@.tmp

 symdummy.c: slapd.def
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest


The OpenLDAP Issue Tracking System uses a hacked version of JitterBug

______________
© Copyright 2013, OpenLDAP Foundation, info@OpenLDAP.org