Subject: pkg/28603: pkgsrc/mail/exim has problems finding libs
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 12/10/2004 22:03:00
>Number:         28603
>Category:       pkg
>Synopsis:       pkgsrc/mail/exim has problems finding libs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 10 22:03:00 +0000 2004
>Originator:     Georg Schwarz
>Release:        current pkgsrc
IRIX lorenz 5.3 08031225 IP20 mips
mail/exim has some problems finding includes and libs:

cc -c -OPT:Olimit=1500 -I/usr/local/pkg/include/db2 -o exim_dbmbuild.o exim_dbmbuild.c
cfe: Error: ./exim.h: 390: Cannot open file iconv.h for #include

local/pkg/etc/exim:'  -e 's:@EXIM_USER@:mail:'  -e 's:@EXIM_GROUP@:mail:'  -e 's:@EXIM_USE_DB_CONFIG@:USE_DB=yes:'  -e 's:@EXIM_DBMLIB@:DBMLIB=-Wl,-rpath,/lib32 -L/lib32 :'  -e 's:@EXIM_INCLUDE@:-I/include/db2:'  -e 's:@CHOWN@:/usr/local/bin/chown:'  -e 's:@CHGRP@:/sbin/chgrp:'  -e 's:@MV@:/sbin/mv:'  -e 's:@RM@:/sbin/rm:'  -e 's:@PERL5@:/usr/local/pkg/bin/perl:'  < /usr/people/schwarz/pkgsrc/mail/exim/work/exim-4.43/Local/Makefile.pkgsrc  > /usr/people/schwarz/pkgsrc/mail/exim/work/exim-4.43/Local/Makefile

Note the /include/lib2!
and after correcting this:

cc -c -OPT:Olimit=1500 -I/usr/local/pkg/include/db2 -o exim_dbmbuild.o exim_dbmbuild.c
cc -o exim_dbmbuild  exim_dbmbuild.o  -lmld  -Wl,-rpath,/usr/local/pkg/lib32 -L/usr/local/pkg/lib32

No idea where this /usr/local/pkg/lib32 comes from. Also a -ldb2 is missing.

The first issue can be overcome by adding to Makefile.common
.include "../../converters/libiconv/"

The second issue (and maybe the third one as well?) seems to be caused by ${BDBBASE} being empty (I do not know why).