Subject: Re: devel/flex dependencies
To: None <Gilles.Dauphin@enst.fr, segv@netctl.net>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: tech-pkg
Date: 11/07/2005 12:06:37
> From: segv@netctl.net
> 
> On Fri, 4 Nov 2005 18:12:22 +0100 (CET)
> Gilles Dauphin <Gilles.Dauphin@enst.fr> wrote:
> 
> > 
> > 
> > > From: segv@netctl.net
> > > 
> > > bash-3.00# ldd `which flex`
> > >         libintl.so.2 =>  (file not found)
> > >         libiconv.so.2 =>         (file not found)
> > >         libc.so.1 =>     /lib/libc.so.1
> > >         libm.so.2 =>     /lib/libm.so.2
> > >         /platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
> > > 
> > > flex was built with gcc-4.0.2 and devel/flex/Makefile does not cater for
> > > libintl and libiconv. Should flex be made to depend on those libraries? 
Why
> > > does this happen for gcc-4.0.2 and not gcc-3.3.x?
> > > 
> > > I modified mk/compiler/gcc.mk to include support for gcc-4.0.2, could that
> > > be that the above 2 libraries are not found?
> > 
> > I think you should set this in mk.conf
> > 
> > LDFLAGS+=  -R/usr/pkg/lib 
> > 
> No, that shouldn't be necessary, i.e. it should be handled automatically by
> pkgsrc.

Is your gcc-4.0.2 installed in /usr/pkg and libbiconv in /usr/pkg/lib ?

Gilles