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

Re: [ttylinux:17] Compilation stops while getting kernel headers



Damien Danneels wrote:
> Hello,
> 
> When trying to compile ttylinux i486 i encounter the following error
> in file "_log.3.kernel_headers" and the compilation stops here.
> Is there a patch available ?
> 
> Output is :
> "
> Building cross-development tool chain.
>   Host: x86_64-pc-linux-gnu
> Target: i486-generic-linux-gnu
>  Tools: binutils-2.19 gcc-4.2.4
>  GLIBC: glibc-2.9
> Kernel: i386 linux-2.6.20
> 
> Building binutils-2.19 ............ done [binutils-2.19 is complete]
> Building gcc-4.2.4 Stage 1 ........ done
> Getting linux-2.6.20 Headers ......
> "
> 
> Log file is :
> "
> Finding, uncompressing, untarring linux-2.6.20
> Using /home/damien/progs/ttylinux-src-mp4/cross-tools-2.9-2.6.20/_pkg-
> src/linux-2.6.20.tar.bz2
> Exporting i386 kernel header files (i486-generic-linux-gnu).
> scripts/basic/fixdep.c: In function 'traps':
> scripts/basic/fixdep.c:371: warning: dereferencing type-punned pointer
> will break strict-aliasing rules
> scripts/basic/fixdep.c:373: warning: dereferencing type-punned pointer
> will break strict-aliasing rules
> scripts/unifdef.c:209: error: conflicting types for 'getline'
> /usr/include/stdio.h:671: note: previous declaration of 'getline' was
> here
> make[2]: *** [scripts/unifdef] Error 1
> make[1]: *** [headers_install] Error 2
> "

Yes, I thought I fixed this problem once, but I couldn't find the
fix in any of the ttylinux source distributions. So I searched the
forum and found it there:

http://minimalinux.org/forum/viewtopic.php?id=431

It is a simple one-line command to change the "getline" in the
scripts/unifdef.c file so that it doesn't collide with the one
in /usr/include/stdio.h

This seems to happen only on some distributions. But I'll add this
fix-up in the next ttylinux release.