[Buildroot] Problem compiling microperl package for a virtex ii pro xc2vp30 (using a ppc405 no fpu)

daniele_dll d.albano at gmail.com
Sun May 10 20:16:23 UTC 2009


i forgot to post the link where i founded the patch

http://osdir.com/ml/linux.lfs.hardened/2008-07/msg00017.html

2009/5/10 daniele_dll <d.albano at gmail.com>:
> In the end, i fixed all errors i got
>
> I got last problems with util-linux. Here there is a patch founded
> googling around and adapted to work with util linux 2.13 pre7
>
> http://bugs.gentoo.org/221939
> http://article.gmane.org/gmane.linux.utilities.util-linux-ng/1463
>
> --- a/text-utils/more.c
> +++ b/text-utils/more.c
> @@ -53,8 +53,7 @@
>  #include <sys/stat.h>
>  #include <sys/file.h>
>  #include <sys/wait.h>
> -#include <a.out.h>
>  #include <locale.h>
>  #include "xstrncpy.h"
>  #include "nls.h"
>  #include "widechar.h"
> @@ -546,9 +545,9 @@ magic(f, fs)
>
>        if (fread(twobytes, 2, 1, f) == 1) {
>                switch(twobytes[0] + (twobytes[1]<<8)) {
> -               case OMAGIC:    /* 0407 */
> -               case NMAGIC:    /* 0410 */
> -               case ZMAGIC:    /* 0413 */
> +               case 0407:      /* a.out obj */
> +               case 0410:      /* a.out exec */
> +               case 0413:      /* a.out demand exec */
>                case 0405:
>                case 0411:
>                case 0177545:


More information about the buildroot mailing list