Subject: Re: Building LPE.
To: Arto Huusko <arto.huusko@maailma.yok.utu.fi>
From: Nigel Reed <nigel@c643704-b.plano1.tx.home.com>
List: netbsd-help
Date: 10/11/2000 11:30:51
export CPPFLAGS=-I/usr/pkg/include
export LDFLAGS=-L/usr/pkg/lib
export LD_LIBRARY_PATH=/usr/pkg/lib
./configure
gmake

This got me a little further but then it complained about not being
able to find slang.h or something like that.

I went into the src directory and edit the Makefile. In the CPPFLAGS line
add the -I/usr/pkg/include

cd ..
gmake

The build completed, I was then able to 
gmake install

Regards
Nigel


On Mon, Oct 09, 2000 at 10:28:40PM +0300, Arto Huusko wrote:
> 
> Hi, I'm trying to compile the lpe, lightweight programmer's editor. This
> seems rather strange again.
> 
> I'm running 1.5_ALPHA, and this lpe needs SLang. I do have the slang
> installed.
> 
> At first, when I ran configure it bombed because it couldn't find SLang
> libraries and header files. So I do this:
> 
> setenv CPPFLAGS -I/usr/pkg/include
> setenv LDFLAGS -I/usr/pkg/lib
> 
> After this, configure works fine.
> 
> Next, I type gmake. I get (approx):
> 
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/pkg/include -g -O2 -c comp.c
> /bin/sh ../libtool --mode=link gcc -g -O2 -L/usr/pkg/lib -o comp.o -lslang -lintl
> mkdir .libs
> gcc -g -O2 -L/usr/pkg/lib -o comp comp.o -lslang -lintl
> ../data/comp init.sl
> Shared object "libslang.so.1" not found.
> 
> 
> So what's the problem, why libslang is not found. It most certainly is
> in /usr/pkg/lib. (I tried compiling lpe with 1.4.2 also, which ended up
> during the linking with something like this: unknown symbol _sin)
> 
> -- 
> Arto Huusko
> E-Mail : arto.huusko@maailma.yok.utu.fi
> WWW: http://maailma.yok.utu.fi/
> 

--