Re: [hypermail] Question about GDBM, hypermail 2.1.2 and Solaris 8

From: <Paul.Haldane_at_newcastle.ac.uk_at_hypermail-project.org>
Date: Thu, 21 Jun 2001 15:07:26 +0100 (GMT)
Message-ID: <Pine.SOL.4.30.0106211505210.4516-100000_at_carr6.ncl.ac.uk>

On Thu, 21 Jun 2001, Peter van Dijk wrote:

...
> We have successfully compiled hypermail 2.1.2 on Solaris with GDBM support
>
> gcc -o hypermail -g -O2 -I/usr/local/include -Ipcre -L/usr/local/lib -Lpcre
...
> -lgdbm -lm -lpcre
>
> When trying to run hypermail we get
>
> ld.so.1: /opt/hypermail/2.1.2/bin/hypermail: fatal: libgdbm.so.2: open failed:
> No such file or directory
>
> libgdbm.so.2 has been linked from /usr/local/lib

You need to add -R/usr/local/lib to the link command line, ie

 gcc -o hypermail -g -O2 -I/usr/local/include -Ipcre   -L/usr/local/lib -R/usr/local/lib
   ...
  -lgdbm -lm -lpcre

See man page for ld(1)

Paul

-- 
Paul Haldane
Computing Service
University of Newcastle
Received on Thu 21 Jun 2001 04:13:05 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:53 PM GMT GMT