Issue 8697 - Remove refptr symbols from slapd.def
Summary: Remove refptr symbols from slapd.def
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: build (show other issues)
Version: 2.4.45
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-20 18:23 UTC by Quanah Gibson-Mount
Modified: 2018-03-22 19:24 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 Quanah Gibson-Mount 2017-07-20 18:23:21 UTC
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
Comment 1 Quanah Gibson-Mount 2017-07-21 00:12:38 UTC
changed notes
changed state Open to Test
moved from Incoming to Build
Comment 2 Quanah Gibson-Mount 2017-09-12 23:28:32 UTC
changed notes
changed state Test to Release
Comment 3 OpenLDAP project 2018-03-22 19:24:00 UTC
Fixed in master (50d1588b2e1d5204356576666b4f2f34651f8902)
fixed in RE24 (2.4.46)
Comment 4 Quanah Gibson-Mount 2018-03-22 19:24:00 UTC
changed notes
changed state Release to Closed