underlinking in libmu_auth/ldap.c

Eray Aslan <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <[email protected]>
In libmu_auth/ldap.c we are calling ber_memvfree, ber_memfree and
ber_set_option but are not linking against lber resulting in:

/var/tmp/portage/net-mail/mailutils-3.6/work/mailutils-3.6/libmu_auth/.libs/libmu_auth.so:
error: undefined reference to 'ber_memvfree'
/var/tmp/portage/net-mail/mailutils-3.6/work/mailutils-3.6/libmu_auth/.libs/libmu_auth.so:
error: undefined reference to 'ber_memfree'
/var/tmp/portage/net-mail/mailutils-3.6/work/mailutils-3.6/libmu_auth/.libs/libmu_auth.so:
error: undefined reference to 'ber_set_option' collect2: error: ld
returned 1 exit status

Adding -llber to LDFLAGS solves the issue.

-- 
Eray
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.