[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4435) Error installing OpenLDAP during make



On Sat, 2006-03-25 at 20:47 +0000, quanah@stanford.edu wrote:
> 
> --On Saturday, March 25, 2006 2:25 PM +0000 ando@sys-net.it wrote:
> 
> > I've solved it with this patch:
> >
> > diff -u -r1.1.1.4 Makefile.in
> > --- libraries/liblunicode/Makefile.in   3 Mar 2006 10:09:53 -0000
> > 1.1.1.4
> > +++ libraries/liblunicode/Makefile.in   25 Mar 2006 14:07:20 -0000
> > @@ -15,7 +15,7 @@
> >
> >  LIBRARY = liblunicode.a
> >
> > -XXDIR = $(srcdir)/*/
> > +XXDIR = $(srcdir)/ucdata/
> >  XXHEADERS = ucdata.h ure.h uctable.h
> >
> >  XXSRCS = ucdata.c ucgendat.c ure.c urestubs.c
> > @@ -41,7 +41,8 @@
> >  .links :
> >         @for i in $(XXSRCS) $(XXHEADERS); do \
> >                 $(RM) $$i ; \
> > -               $(LN_S) $(XXDIR)$$i . ; \
> > +               ii=`find . -name $$i` ; \
> > +               $(LN_S) $$ii . ; \
> >         done
> >         touch .links
> >
> > Apparently there's something in Sun's make that doesn't like wildcards
> > (or, conversely, GNU's make is too liberal).
> 
> Hm, I've built OpenLDAP several times with Sun's compiler without problem. 
> I was thinking the problem here was more likely due to ITS#4415, since we 
> didn't have any errors building OpenLDAP 2.3 from people before this.

I'm not an expert at building with Sun's stuff, but I'm using gcc 3.2-
ish on Solaris 8 with the rest of the build environment made of Sun
stuff, including make.  I'm pretty sure that "XXDIR = $(srcdir)/*/" was
not being handled correctly, because the links to the .c and .h required
for liblunicode were not created correctly.  This happened since 2.3.20,
because up to 2.3.19 everything was working fine.  In any case, I think
an even better fix would be to remove all subdirs of liblunicode and
move their contents into liblunicode itself.

p.




Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------