Quoth muskala magda:
> 
> im trying to cross - compile uclinux against uclibc.
> but it seems, that the i'm missing uclibc-includes in
> -I... i'm not sure what is wrong and what should i
> modify to be able to include sys/socket.h...
[...]
> make[3]: Entering directory
> `/ext3/p/uClinux-dist/linux-2.4.x/arch/h8300/lib'
> h8300-elf-gcc -fno-builtin -DNO_CACHE -D__KERNEL__
> -I/ext3/p/uClinux-dist/linux-2.4.x/include  -Wall
> -Wstrict-prototypes -Wno-trigraphs -O1 -g
> -fno-strict-aliasing -fno-common -pipe -DNO_MM
> -DNO_FPU -DNO_CACHE -ms -mint32 -D__ELF__ -DNO_FORGET
> -DUTS_SYSNAME="uClinux" -D__linux__ -DTARGET=edosk2674
>   -nostdinc -iwithprefix include
> -DKBUILD_BASENAME=checksum  -c -o checksum.o
> checksum.c

You appear to be compiling the kernel.  The kernel doesn't get linked
against any libc, so you can't include sys/socket.h (that's a user-mode
header file, not a kernel header).



_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to