Bug 78870 - missing openldap-devel dependency in sendmail-devel package
Summary: missing openldap-devel dependency in sendmail-devel package
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sendmail
Version: 7.3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2002-12-02 16:30 UTC by rm0
Modified: 2007-04-18 16:48 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2002-12-02 16:32:22 UTC

Attachments (Terms of Use)
conftest.c (276 bytes, text/plain)
2002-12-02 16:32 UTC, rm0
no flags Details

Description rm0 2002-12-02 16:30:57 UTC
Description of Problem:
At least one function contained in the libsmutil.a static lib
shipped with sendmail-devel neds the `ldap_err2string' function
When one tries to build some piece of software that needs
libsmutil.a, the link process fails.

Version-Release number of selected component (if applicable):

How Reproducible:

Steps to Reproduce:
1. install sendmail-devel package (if not present), uninstall openldap-devel 
(if present). Note that installation of the first does not require
the second.
2. Try to compile the attached test file (conftest.c borrowed from an autoconf
script) using something like:
$ gcc -o conftest -O2 -march=i386 -mcpu=i686 -pthread   conftest.c -lsmutil
3. Note that the build fails.

Actual Results:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsmutil.a(errstring.o): In 
function `errstring':
errstring.o(.text+0x25a): undefined reference to `ldap_err2string'
collect2: ld returned 1 exit status

Expected Results:
installation of sendmail-devel should have required previous
installation of openldap-devel

Additional Information:

This is the relevant part of a config.log file:
configure:2239: checking for errstring in -lsmutil
configure:2258: gcc -o conftest -O2 -march=i386 -mcpu=i686 -pthread   
conftest.c -lsmutil    1>&5
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsmutil.a(errstring.o): In 
function `errstring':
errstring.o(.text+0x25a): undefined reference to `ldap_err2string'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2247 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char errstring();

int main() {
; return 0; }

Comment 1 rm0 2002-12-02 16:32:15 UTC
Created attachment 87048 [details]

Comment 2 Florian La Roche 2002-12-02 21:54:22 UTC
openldap-devel is listed in the current rpm, so this seems to be

Thanks a lot,

Florian La Roche

Note You need to log in before you can comment on or make changes to this bug.