tail problem (Was: hostap-driver-dev build problem on a 2.6.8.1 machine AND j2sdk)

Jerry Lundström prox at lunar-linux.org
Mon Aug 23 14:29:20 GMT 2004


Jerry Lundström wrote:
> vertigo at wi.rr.com wrote:
> 
>>> Building hostap-driver-dev
>>> tail: `-1' option is obsolete; use `-n 1'
>>> Try `tail --help' for more information.
> 
> 
> Dennis Veatch wrote:
>  > tail: cannot open `+7` for reading: No such file or directory.
>  > Error in check sum 1640625506 1987377779
>  > Problem with either License Agreement or j2sdk bianry.
> 
> The tail problem has been located, tail will not work with +/-<number> 
> if its compiled with NLS and linked to glibc 2.3.3 (it checks posix 
> version to invalidate old style options).
> 
> A global fix for this is in the works... no need to go sedit on makefiles.

After many tests and diffrent fixes this might be the one:

tail (and all coreutils programs) check for env variable _POSIX2_VERSION 
to determen their behaviour when dealing with parameters syntax etc.

_POSIX2_VERSION in glibc 2.3.2 is 199209
and in glibc 2.3.3 it is 200112

Solution to enable tail to use +/-<number> is to export 
_POSIX2_VERSION=199209 (or rather any value lower then 200112).

Ive already tested this with j2sdk and it seems to work, someone that 
use hostap-driver can test the attached patch.

We will have to take it one problem at a time now with the new glibc as 
standard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hostap-driver-tail.patch
Type: text/x-patch
Size: 751 bytes
Desc: not available
Url : http://lunar-linux.org/mailman/private/lunar-dev/attachments/20040823/a952127d/hostap-driver-tail.bin


More information about the Lunar-dev mailing list