Re: [gtk-list] problem with autogen on SGI/IRIX6.2



On Tue, 16 Feb 1999 13:23:36 -0500, gtk-list@redhat.com (Ronan Bourlier) wrote:
> I have a problem with gtk-engine CVS source.
> When I use autogen.sh,
> it create the following stuff :
> %.o: %.c
>         @echo '$(COMPILE) -c $<'; \
>         $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
>         @-cp .deps/$(*F).pp .deps/$(*F).P; \
>         tr ' ' '\012' < .deps/$(*F).pp \
>           | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>             >> .deps/$(*F).P; \
>         rm .deps/$(*F).pp
> 
> %.lo: %.c
>         @echo '$(LTCOMPILE) -c $<'; \
>         $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
>         @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
>           < .deps/$(*F).pp > .deps/$(*F).P; \
>         tr ' ' '\012' < .deps/$(*F).pp \
>           | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>             >> .deps/$(*F).P; \
>         rm -f .deps/$(*F).pp
> 
> But it's not working, bcause all the -Wp,-MD,.deps/$(*F).pp
> should be replaced by -Wp,-MDupdate,.deps/$(*F).pp
> 
> Is it coming from automake/autoconf or from the gtk-engine,
> or from my installation of automake ?

It's from automake. This has to do with the automatic dependency
generation, which only works correct with gcc. I reported this to the
automake maintainers, and also suggested that automake should use
-Wp,-MDupdate,.deps/$(*F).pp on IRIX with MipsPRO C. The remaining problem
is that not all versions of the MipsPRO C compiler seem to support the
-MDupdate feature, so now there has to be some kind of smart test for it.

As a workaround, edit the autogen.sh script and add the option
"--include-deps" to the automake line. This will switch off the automatic
dependency check, but you should be able to compile.

Another workaround is to use gcc 2.8.1 to compile GTK.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]