[gccsdk] GLIb build error

Jan-Jaap van der Geer jjvdgeer at inbox.com
Mon Sep 28 14:17:47 PDT 2009


I tried to build GLib today, but it fails, errors below.

Although I didn't dig very deep, I found a definition of the struct
"msghdr" in socket.h within the glib sources, but I think this is not
used, but I suspect it uses the definition of the struct in the file
~/cross/arm-unknown-riscos/include/libunixlib/bits/socket.h instead.
This one does not contain the fields for msg_control or msg_controllen.
So if my theory is correct, this would explain the compile-errors, or at
least some of them.

Any ideas how to resolve this issue?

Here is the last part of the buildlog:

libtool: compile:  /home/jjvdgeer/cross/bin/arm-unknown-riscos-gcc
-DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I.. -I../glib
-I../gmodule -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED
-DGIO_COMPILATION -DGIO_MODULE_DIR=\"/home/jjvdgeer/env/lib/gio/modules
\" -isystem /home/jjvdgeer/env/include -DG_DISABLE_SINGLE_INCLUDES
-pthread -O3 -Wall -MT gsocket.lo -MD -MP -MF .deps/gsocket.Tpo -c
gsocket.c  -fPIC -DPIC -o .libs/gsocket.o
arm-unknown-riscos-gcc: unrecognized option '-pthread'
gsocket.c: In function 'IA__g_socket_send_message':
gsocket.c:2673: error: 'struct msghdr' has no member named
'msg_controllen'
gsocket.c:2675: error: 'struct msghdr' has no member named
'msg_controllen'
gsocket.c:2675: warning: implicit declaration of function 'CMSG_SPACE'
gsocket.c:2677: error: 'struct msghdr' has no member named 'msg_control'
gsocket.c:2677: error: 'struct msghdr' has no member named
'msg_controllen'
gsocket.c:2679: warning: implicit declaration of function
'CMSG_FIRSTHDR'
gsocket.c:2679: warning: assignment makes pointer from integer without a
cast
gsocket.c:2682: error: dereferencing pointer to incomplete type
gsocket.c:2683: error: dereferencing pointer to incomplete type
gsocket.c:2684: error: dereferencing pointer to incomplete type
gsocket.c:2684: warning: implicit declaration of function 'CMSG_LEN'
gsocket.c:2686: warning: implicit declaration of function 'CMSG_DATA'
gsocket.c:2686: warning: passing argument 2 of
'IA__g_socket_control_message_serialize' makes pointer from integer
without a cast
gsocket.c:2687: warning: implicit declaration of function 'CMSG_NXTHDR'
gsocket.c:2687: warning: assignment makes pointer from integer without a
cast
gsocket.c: In function 'IA__g_socket_receive_message':
gsocket.c:2964: error: 'struct msghdr' has no member named 'msg_control'
gsocket.c:2965: error: 'struct msghdr' has no member named
'msg_controllen'
gsocket.c:3022: error: 'struct msghdr' has no member named 'msg_control'
gsocket.c:3023: error: 'struct msghdr' has no member named
'msg_controllen'
gsocket.c:3025: warning: assignment makes pointer from integer without a
cast
gsocket.c:3025: warning: assignment makes pointer from integer without a
cast
gsocket.c:3029: error: dereferencing pointer to incomplete type
gsocket.c:3030: error: dereferencing pointer to incomplete type
gsocket.c:3031: error: dereferencing pointer to incomplete type
gsocket.c:3032: warning: passing argument 4 of
'IA__g_socket_control_message_deserialize' makes pointer from integer
without a cast

Cheers,
Jan-Jaap

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
Check it out at http://www.inbox.com/marineaquarium



More information about the gcc mailing list