On Wed, Aug 5, 2009 at 5:05 PM, Claudio Jeker<je...@n-r-g.com> wrote:
> On Wed, Aug 05, 2009 at 04:48:04PM -0400, Edward Capriolo wrote:
>> My env is FreeBSD-7.2 x86-64
>>
>> Any ideas. I believe the standard build options should be ok for me.
>>
>
> Make sure you build with LDAP_DEPRECATED defined. Especially on 64bit
> archs the removal of the prototypes results in wrong call arguments.
>
> Try to add -DLDAP_DEPRECATED to the LDAPFLAGS or directly to conf-cc.
>
>> [r...@nymail1 /usr/local/src]# /var/qmail/bin/qmail-ldaplookup
>> Segmentation fault: 11 (core dumped)
>>
>> [r...@nymail1 /usr/local/src]# ldd /var/qmail/bin/qmail-ldaplookup
>> /var/qmail/bin/qmail-ldaplookup:
>>        libldap-2.4.so.6 => /usr/local/lib/libldap-2.4.so.6 (0x800642000)
>>        liblber-2.4.so.6 => /usr/local/lib/liblber-2.4.so.6 (0x800782000)
>>        libcrypt.so.4 => /lib/libcrypt.so.4 (0x800890000)
>>        libc.so.7 => /lib/libc.so.7 (0x8009a9000)
>>        libgssapi.so.9 => /usr/lib/libgssapi.so.9 (0x800bcd000)
>>        libssl.so.5 => /usr/lib/libssl.so.5 (0x800cd5000)
>>        libcrypto.so.5 => /lib/libcrypto.so.5 (0x800e1f000)
>>
>> [r...@nymail1 /usr/local/src]# gdb qmail-ldaplookup qmail-ldaplookup.core
>> GNU gdb 6.1.1 [FreeBSD]
>> Copyright 2004 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you are
>> welcome to change it and/or distribute copies of it under certain conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for details.
>> This GDB was configured as "amd64-marcel-freebsd"...(no debugging
>> symbols found)...
>> Core was generated by `qmail-ldaplookup'.
>> Program terminated with signal 11, Segmentation fault.
>> Reading symbols from /usr/local/lib/libldap-2.4.so.6...(no debugging
>> symbols found)...done.
>> Loaded symbols for /usr/local/lib/libldap-2.4.so.6
>> Reading symbols from /usr/local/lib/liblber-2.4.so.6...(no debugging
>> symbols found)...done.
>> Loaded symbols for /usr/local/lib/liblber-2.4.so.6
>> Reading symbols from /lib/libcrypt.so.4...(no debugging symbols 
>> found)...done.
>> Loaded symbols for /lib/libcrypt.so.4
>> Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
>> Loaded symbols for /lib/libc.so.7
>> Reading symbols from /usr/lib/libgssapi.so.9...(no debugging symbols
>> found)...done.
>> Loaded symbols for /usr/lib/libgssapi.so.9
>> Reading symbols from /usr/lib/libssl.so.5...(no debugging symbols 
>> found)...done.
>> Loaded symbols for /usr/lib/libssl.so.5
>> Reading symbols from /lib/libcrypto.so.5...(no debugging symbols 
>> found)...done.
>> Loaded symbols for /lib/libcrypto.so.5
>> Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols 
>> found)...done.
>> Loaded symbols for /libexec/ld-elf.so.1
>> #0  0x0000000800668f6f in ldap_set_option () from
>> /usr/local/lib/libldap-2.4.so.6
>> (gdb)
>
> --
> :wq Claudio
>

Great. That worked like a charm. Moving on. Thanks.

Reply via email to