Subject: Re: problems building several packages
To: Scott Presnell <srp@zgi.com>
From: Nick Hudson <nick@nthcliff.demon.co.uk>
List: tech-pkg
Date: 07/12/2001 21:44:33
Scott Presnell wrote:
> 
> Jukka Marin wrote:
> >
> > On Mon, Jul 09, 2001 at 03:58:24PM -0500, Frederick Bruckman wrote:
> > > > However, imlib _has_ been installed:
> > >
> > > More buildlink lossage. It looks like it's trying to run
> > > "imlib-config" in .../work/.buildlink/bin/imlib-config, which is
> > > indeed _not_ where the imlib package installed it. Is that error from
> > > building "glade", or some other package that depends on "glade"?
> >
> > I was trying to build "glade" directly.  I have seen similar problems with
> > other packages as well, however..
> >
> > > No. pkgsrc is broken. I don't understand this buildlink stuff enough
> > > to take a shot at fixing it, sorry. You could roll back a month or so
> > > to before all this started.
> >
> > Ouch. ;) :(
> >
> > > > I also have problems with installed programs not finding the shared libraries.
> > > > Before ELF, this was fixed by ld.so.conf, but now...  Don't the binaries know
> > > > the library search path?  No?
> > >
> > > I haven't seen that lately. Maybe more buildlink lossage. Which
> > > binaries?
> >
> > Well, I installed Opera on a vanilla 1.5 machine and it couldn't find some
> > of the libraries (can't check, the machine isn't here any more).  Also, I
> > couldn't run xpdf until I set LTDL_LIBRARY_PATH=/usr/X11R6/lib (xpdf first
> > found the libs it wanted, but then looked for them in /usr/lib and couldn't
> > find them there.. according to ktrace).
> >
> > I built kde2 (required a few patches to Makefiles, but seems to build now
> > (thanks, Tomasz!)) but some things don't work (like the screensavers, which
> > complain they can't find the libkcm_screensaver.a library, but it _is_
> > there)...
> >
> 
> libkcm_screensaver is looking for a shared version of libXdpms at build time
> find your relevant X source, unpack for Xdpms, adjust X11.tmpl accordingly
> 
> --- X11.tmpl.orig       Sat Jun 23 15:13:47 2001
> +++ X11.tmpl    Sat Jun 23 15:14:02 2001
> @@ -1024,7 +1024,7 @@
> 
>  #if BuildDPMSLibrary
>  #ifndef SharedLibXdpms
> -#define SharedLibXdpms         NO
> +#define SharedLibXdpms         YES
>  #endif
>  #ifndef NormalLibXdpms
>  #define NormalLibXdpms         YES
> 
> build and install libXdpms.so, rebuild libkcm_screensaver, and install.

We can't assume that anyone (let alone everyone) will do this...

> then also chmod 555 /usr/X11R6/bin/*.kss, for some reason they are
> installed setuid, but they refuse to run in with that mode (via compiled
> in setuid check).

I need to work out what is going on here..

> 
> (N.B. XF4 doesn't use Xdpms, so it shouldn't be a problem there).

This isn't strictly true, because the dpms support is in libXext in XF4.

-- 
aka skrll@netbsd.org, skrll@excite.co.uk