On Aug 5, 2010, at 6:53 AM, Cyril Hrubis wrote:

> Hi!
>>>>> When trying to build ltp from tarball (ltp-full-20100630.bz2) using
>>>>> make-3.80 for some reason automake rules kicks in so you need either
>>>>> comment out some rules from include/mk/automake.mk or compile autotools
>>>>> by hand (there is no recent automake on system with make-3.80).
>> 
>> Ok, missed this line somehow in the previous email...
>> 
>>>>> # cat /etc/SuSE-release 
>>>>> SUSE Linux Enterprise Server 10 (x86_64)
>>>>> VERSION = 10
>>>>> PATCHLEVEL = 2
>>>>> 
>>>>> # make -v
>>>>> GNU Make 3.80
>>>>> Copyright (C) 2002  Free Software Foundation, Inc.
>>>>> This is free software; see the source for copying conditions.
>>>>> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
>>>>> PARTICULAR PURPOSE.
>>>>> 
>>>>> # tar xjf ltp-full-20100630.bz2 
>>>>> # cd ltp-full-20100630/
>>>>> # ./configure
>>>>> ...
>>>>> 
>>>>> # make
>>>>> make -C testcases/realtime autotools
>>>>> make[1]: Entering directory `/root/ltp-full-20100630/testcases/realtime'
>>>>> autoheader
>>>>> make[1]: autoheader: Command not found
>>>>> make[1]: *** [autoheader] Error 127
>>>>> make[1]: Leaving directory `/root/ltp-full-20100630/testcases/realtime'
>>>>> make: *** [testcases/realtime/configure] Error 2
>>>> 
>>>>    You're missing some autotools commands on the box (in this case 
>>>> autoheader). Make sure that autoconf is installed and/or all of the 
>>>> directions were followed as per INSTALL.
>>> 
>>> That's not the problem, see the second mail in this thread, make-3.80
>>> seems to be picking wrong default target (even when autotools are
>>> installed running 'make' just remakes autools related stuff.)
>> 
>> BTW... calling 1make' bareword never worked with 3.80; all of the the
>> directions in INSTALL say use make all [...]; make install. The reason
>> being is that make 3.80 didn't have a functional .DEFAULT_GOAL
>> equivalent until sometime around midway between make 3.80 and make
>> 3.81; so assuming that `make' will function the same as `make all'
>> isn't a good assumption to make :).
> 
> So ltp buildsystem is kind of a mine field ;). Anyway as make picks up
> first target and makes it default adding "default: all" to the beginning
> of env_pre.mk seems to fix that problem for me.

Seems like a decent workaround for cases when env_pre.mk is used, but this 
isn't possible with 3rd party Makefiles, so it might be kind of a moot point.

Just to be safe I'd stick with the directions unless you want to submit patches 
to fix every issue in the source tree :)...

Thanks,
-Garrett
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to