Paul Menzel:
> Dear Wietse,
> 
> 
> Thank you very much for the quick reply.
> 
> 
> Am 19.04.21 um 19:48 schrieb Wietse Venema:
> > Paul Menzel:
> 
> >> Building Berkeley DB from source, and building Postfix according to
> >> *Postfix Berkeley DB Howto* [1] with
> >>
> >>       make makefiles CCARGS="-DHAS_DB 
> >> -I/scratch/local2/berkeley-db/include" 
> >> AUXLIBS="-L/scratch/local2/berkeley-db/lib -ldb"
> > 
> > This expects /scratch/local2/berkeley-db/lib/libdb.so*
> 
> It?s present:
> 
>      $ ls -l /scratch/local2/berkeley-db/lib/
>      total 1956
>      -rw-rw---- 1 user user     935 Apr 19 17:04 libdb-5.3.la
>      -rwxrwx--- 1 user user 1996184 Apr 19 17:04 libdb-5.3.so
>      lrwxrwxrwx 1 user user      12 Apr 19 17:04 libdb-5.so -> 
> libdb-5.3.so
>      lrwxrwxrwx 1 user user      12 Apr 19 17:04 libdb.so -> libdb-5.3.so
> 
> >> bin/postconf: error while loading shared libraries: libdb-5.3.so: cannot
> >> open shared object file: No such file or directory

So where does the -5.3 in the complaint comne from? If it wasn't
specified at Postfix build time, where else can it be?

> > You may need to specify -ldb-5.3, given that your file is in
> > a non-default place.
> > 
> > make makefiles CCARGS="-DHAS_DB -I/scratch/local2/berkeley-db/include" \
> >   AUXLIBS="-L/scratch/local2/berkeley-db/lib -ldb-5.3"
> 
> That results in the same issue. At least from other software, I now, 
> that the runtime library path needs to be set either by 
> `LD_LIBRARY_PATH` or `-rpath`.

And, surprise, the Postfix 3.x build for Linux specifies -rpath.
You override the Postfix build system at your own risk. 

        Wietse

Reply via email to