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

[microblaze-uclinux] Re: socket.h



Hi,

I've just checked. Petalinux-v0.4-rc3 compiles fine source

#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>



int main(int argc, char *argv[])
{

return 0;
}


But for some reason final version dont.


On Mon, Sep 21, 2009 at 8:19 PM, Darko Tasovac <tdarko@xxxxxxxxx> wrote:
Hi,

I have a small program which uses socket.h library (#include <sys/socket.h>.  I wanted to build it for Petalinux (spartan3e500, microblaze) but there are some problems.

After the make command, the output is

/home/username/petalinux-v0.40-final/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/../../../../microblaze-uclinux/include/bits/socket.h:305:24: asm/socket.h: No such file or directory

I tried with #include <asm-microblaze/socket.h>, even created in the include folder asm/socket.h, but nothing. The same error appears. I tried manually to build with microblaze-uclinux-gcc name.c -o name -lsocket, but again nothing.

Has anyone encountered similar problem?

Best regards,
Darko T.