Subject: Re: xpdf's configure does not recognize lesstif
To: None <dilmah@mail.nnov.ru>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-users
Date: 09/08/2003 09:07:41
On Mon, 8 Sep 2003 dilmah@mail.nnov.ru wrote:

> I am running NetBSD 1.6.1.  I try to compile xpdf:
>
> [dina@flamante (ttyp3) 18:07:58 /usr/src/alien/xpdf-2.01 0% ./configure --
> enable-a4-paper --enable-opi --enable-multithreaded --with-t1-
> library=/usr/local/lib --with-t1-includes=/usr/local/include --with-
> freetype2-library=/usr/local/lib --with-freetype2-
> includes=/usr/local/include --with-Xm-library=/usr/local/lib --with-Xm-
> includes=/usr/local/include CC=/usr/local/bin/gcc

> The lines under question are:
> checking whether to use Xm library... (cached) /usr/local/lib
> checking where to find the Xm header files... (cached) /usr/local/include
> checking Xm/XmAll.h usability... yes
> checking Xm/XmAll.h presence... yes
> checking for Xm/XmAll.h... yes
> checking for XmCreateForm in -lXm... no
> configure: WARNING: requested Xm library not found!
>
> But I have installed lesstif-0.93.49:
> [dina@flamante (ttyp4) 18:38:13 ~ 5% ll /usr/local/lib/libXm*
> -rwxr-xr-x 1 root wheel 819 Sep 7 17:17 /usr/local/lib/libXm.la
> lrwxr-xr-x 1 root wheel 12 Sep 7 17:17 /usr/local/lib/libXm.so ->
> libXm.so.2.1
> lrwxr-xr-x 1 root wheel 12 Sep 7 17:17 /usr/local/lib/libXm.so.2 ->
> libXm.so.2.1
> -rwxr-xr-x 1 root wheel 1919055 Sep 7 17:17 /usr/local/lib/libXm.so.2.1

> How to build xpdf??

Maybe "lesstif" isn't adequate? Try "nm /usr/local/lib/libXm.so | grep
XmCreateForm" to see if it has the required symbol. "lesstiff" is
a rather unnecessary project, now that Sun has released the source to
Motif:

    http://www.opengroup.org/openmotif/

(I won't even ask why you're not using pkgsrc.) Don't forget, if
you're building programs for NetBSD, to set the RPATH for shared
libraries. For your setup, possibly "export
LD_RUN_PATH=/usr/local/lib" before configuring and building would be
sufficient. LD_RUN_PATH is documented in the info file for "ld".

Frederick