Hi
I'm writing an overlay which manipulates some attributes of objects and It is, somehow, leading to a segfault within slapd code.
In order to debug what's going on, I'm trying to compile a non-stripped slapd but I can't figure out how. I've read configure.in and Makefile.in to find out a fancy way to do it, but I have no idea.
I've also removed the STRIP option at the top level Makefile: no success. I've removed $(STRIP) at install-slapd target at Makefile on slapd's dir and did:
make install-slapd
No success.
I've googled around too!
How can I do that ?
regards Lucas Brasilino
Hi!
By the way, I've tried to compile slapd with:
CFLAGS="-ggdb -gdwarf-2" ./configure --prefix=blablabla CFLAGS="-ggdb -gdwarf-2" make depend CFLAGS="-ggdb -gdwarf-2" make make install
slapd gets stripped during installation.
regards Lucas Brasilino
2010/10/19 Lucas Brasilino lucas.brasilino@gmail.com:
Hi
I'm writing an overlay which manipulates some attributes of objects and It is, somehow, leading to a segfault within slapd code.
In order to debug what's going on, I'm trying to compile a non-stripped slapd but I can't figure out how. I've read configure.in and Makefile.in to find out a fancy way to do it, but I have no idea.
I've also removed the STRIP option at the top level Makefile: no success. I've removed $(STRIP) at install-slapd target at Makefile on slapd's dir and did:
make install-slapd
No success.
I've googled around too!
How can I do that ?
regards Lucas Brasilino
On Tue, 19 Oct 2010, Lucas Brasilino wrote:
I've read configure.in and Makefile.in to find out a fancy way to do it, but I have no idea.
It almost sounds like you're trying too hard. Using bash:
CFLAGS='-g' ./configure --enable-debug # --enable-debug=yes is default anyway LTCFLAGS='-g' export LTCFLAGS make depend make mkdir /tmp/buildforopenldaptechnical make install STRIP='' DESTDIR='/tmp/buildforopenldaptechnical' # unset LTCFLAGS
gives me: $ file /tmp/buildforopenldaptechnical/usr/local/libexec/slapd /tmp/buildforopenldaptechnical/usr/local/libexec/slapd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
I'm sure you can adjust for your favorite shell as needed...
Hi Aaron:
CFLAGS='-g' ./configure --enable-debug # --enable-debug=yes is default anyway LTCFLAGS='-g' export LTCFLAGS make depend make mkdir /tmp/buildforopenldaptechnical make install STRIP='' DESTDIR='/tmp/buildforopenldaptechnical' # unset LTCFLAGS
It worked for me. Thanks a lot!
regards Lucas Brasilino
openldap-technical@openldap.org