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

(ITS#8697) 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